mirror of
https://github.com/openai/codex.git
synced 2026-12-01 00:20:48 +00:00
Review watcher task shutdown
This commit is contained in:
@@ -139,8 +139,10 @@ impl UnifiedExecProcessManager {
|
||||
let mut store = self.process_store.lock().await;
|
||||
store.remove(process_id)
|
||||
};
|
||||
if let Some(mut entry) = removed {
|
||||
Self::abort_all_watcher_tasks(&mut entry);
|
||||
if let Some(entry) = removed {
|
||||
// Intentionally do not abort watcher tasks here. In attached flows
|
||||
// (for example network denial), stream/exit watchers must finish so
|
||||
// ExecCommandEnd is still emitted after forced termination.
|
||||
Self::unregister_network_attempt_for_entry(&entry).await;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user