Delete extinct Codex bridge crate
This commit is contained in:
parent
5f6f2441c8
commit
e5766b668a
16 changed files with 41 additions and 312 deletions
|
|
@ -333,7 +333,6 @@ use codex_thread_store::ThreadStoreError;
|
|||
use codex_thread_store::UpdateThreadMetadataParams as StoreUpdateThreadMetadataParams;
|
||||
use codex_utils_absolute_path::AbsolutePathBuf;
|
||||
use codex_utils_pty::DEFAULT_OUTPUT_BYTES_CAP;
|
||||
use epiphany_codex_bridge::invalidation::EpiphanyInvalidationManager;
|
||||
use std::collections::HashMap;
|
||||
use std::collections::HashSet;
|
||||
use std::io::Error as IoError;
|
||||
|
|
@ -389,7 +388,6 @@ pub(crate) struct CodexMessageProcessor {
|
|||
pending_thread_unloads: Arc<Mutex<HashSet<ThreadId>>>,
|
||||
thread_state_manager: ThreadStateManager,
|
||||
thread_watch_manager: ThreadWatchManager,
|
||||
epiphany_invalidation_manager: EpiphanyInvalidationManager,
|
||||
command_exec_manager: CommandExecManager,
|
||||
pending_fuzzy_searches: Arc<Mutex<HashMap<String, Arc<AtomicBool>>>>,
|
||||
fuzzy_search_sessions: Arc<Mutex<HashMap<String, FuzzyFileSearchSession>>>,
|
||||
|
|
@ -502,7 +500,6 @@ impl CodexMessageProcessor {
|
|||
pending_thread_unloads: Arc::new(Mutex::new(HashSet::new())),
|
||||
thread_state_manager: ThreadStateManager::new(),
|
||||
thread_watch_manager: ThreadWatchManager::new_with_outgoing(outgoing),
|
||||
epiphany_invalidation_manager: EpiphanyInvalidationManager::new(),
|
||||
command_exec_manager: CommandExecManager::default(),
|
||||
pending_fuzzy_searches: Arc::new(Mutex::new(HashMap::new())),
|
||||
fuzzy_search_sessions: Arc::new(Mutex::new(HashMap::new())),
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@ pub(crate) struct ListenerTaskContext {
|
|||
pub(crate) analytics_events_client: AnalyticsEventsClient,
|
||||
pub(crate) general_analytics_enabled: bool,
|
||||
pub(crate) thread_watch_manager: ThreadWatchManager,
|
||||
pub(crate) epiphany_invalidation_manager: EpiphanyInvalidationManager,
|
||||
pub(crate) fallback_model_provider: String,
|
||||
pub(crate) codex_home: PathBuf,
|
||||
}
|
||||
|
|
@ -210,9 +209,6 @@ impl CodexMessageProcessor {
|
|||
self.thread_state_manager
|
||||
.remove_thread_state(thread_id)
|
||||
.await;
|
||||
self.epiphany_invalidation_manager
|
||||
.remove_thread(&thread_id.to_string())
|
||||
.await;
|
||||
self.thread_watch_manager
|
||||
.remove_thread(&thread_id.to_string())
|
||||
.await;
|
||||
|
|
@ -224,7 +220,6 @@ impl CodexMessageProcessor {
|
|||
pending_thread_unloads: Arc<Mutex<HashSet<ThreadId>>>,
|
||||
thread_state_manager: ThreadStateManager,
|
||||
thread_watch_manager: ThreadWatchManager,
|
||||
epiphany_invalidation_manager: EpiphanyInvalidationManager,
|
||||
thread_id: ThreadId,
|
||||
thread: Arc<CodexThread>,
|
||||
) {
|
||||
|
|
@ -236,27 +231,18 @@ impl CodexMessageProcessor {
|
|||
.cancel_requests_for_thread(thread_id, /*error*/ None)
|
||||
.await;
|
||||
thread_state_manager.remove_thread_state(thread_id).await;
|
||||
epiphany_invalidation_manager
|
||||
.remove_thread(&thread_id.to_string())
|
||||
.await;
|
||||
|
||||
tokio::spawn(async move {
|
||||
match Self::wait_for_thread_shutdown(&thread).await {
|
||||
ThreadShutdownResult::Complete => {
|
||||
if thread_manager.remove_thread(&thread_id).await.is_none() {
|
||||
info!("thread {thread_id} was already removed before teardown finalized");
|
||||
epiphany_invalidation_manager
|
||||
.remove_thread(&thread_id.to_string())
|
||||
.await;
|
||||
thread_watch_manager
|
||||
.remove_thread(&thread_id.to_string())
|
||||
.await;
|
||||
pending_thread_unloads.lock().await.remove(&thread_id);
|
||||
return;
|
||||
}
|
||||
epiphany_invalidation_manager
|
||||
.remove_thread(&thread_id.to_string())
|
||||
.await;
|
||||
thread_watch_manager
|
||||
.remove_thread(&thread_id.to_string())
|
||||
.await;
|
||||
|
|
@ -361,7 +347,6 @@ impl CodexMessageProcessor {
|
|||
analytics_events_client: self.analytics_events_client.clone(),
|
||||
general_analytics_enabled: self.config.features.enabled(Feature::GeneralAnalytics),
|
||||
thread_watch_manager: self.thread_watch_manager.clone(),
|
||||
epiphany_invalidation_manager: self.epiphany_invalidation_manager.clone(),
|
||||
fallback_model_provider: self.config.model_provider_id.clone(),
|
||||
codex_home: self.config.codex_home.to_path_buf(),
|
||||
},
|
||||
|
|
@ -480,7 +465,6 @@ impl CodexMessageProcessor {
|
|||
analytics_events_client: self.analytics_events_client.clone(),
|
||||
general_analytics_enabled: self.config.features.enabled(Feature::GeneralAnalytics),
|
||||
thread_watch_manager: self.thread_watch_manager.clone(),
|
||||
epiphany_invalidation_manager: self.epiphany_invalidation_manager.clone(),
|
||||
fallback_model_provider: self.config.model_provider_id.clone(),
|
||||
codex_home: self.config.codex_home.to_path_buf(),
|
||||
},
|
||||
|
|
@ -530,7 +514,6 @@ impl CodexMessageProcessor {
|
|||
analytics_events_client: _,
|
||||
general_analytics_enabled: _,
|
||||
thread_watch_manager,
|
||||
epiphany_invalidation_manager,
|
||||
fallback_model_provider,
|
||||
codex_home,
|
||||
} = listener_task_context;
|
||||
|
|
@ -644,7 +627,6 @@ impl CodexMessageProcessor {
|
|||
pending_thread_unloads.clone(),
|
||||
thread_state_manager.clone(),
|
||||
thread_watch_manager.clone(),
|
||||
epiphany_invalidation_manager.clone(),
|
||||
conversation_id,
|
||||
conversation.clone(),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@ impl CodexMessageProcessor {
|
|||
analytics_events_client: self.analytics_events_client.clone(),
|
||||
general_analytics_enabled: self.config.features.enabled(Feature::GeneralAnalytics),
|
||||
thread_watch_manager: self.thread_watch_manager.clone(),
|
||||
epiphany_invalidation_manager: self.epiphany_invalidation_manager.clone(),
|
||||
fallback_model_provider: self.config.model_provider_id.clone(),
|
||||
codex_home: self.config.codex_home.to_path_buf(),
|
||||
};
|
||||
|
|
|
|||
Reference in a new issue