mirror of
https://github.com/openai/codex.git
synced 2026-12-01 00:20:48 +00:00
Fix watcher abort handling
This commit is contained in:
@@ -430,10 +430,11 @@ impl UnifiedExecProcessManager {
|
||||
let process_id = entry.process_id.clone();
|
||||
|
||||
if entry.process.has_exited() {
|
||||
let Some(mut entry) = store.remove(&process_id) else {
|
||||
let Some(entry) = store.remove(&process_id) else {
|
||||
return ProcessStatus::Unknown;
|
||||
};
|
||||
Self::abort_all_watcher_tasks(&mut entry);
|
||||
// Do not abort watcher tasks on natural exit detection here.
|
||||
// The exit watcher emits ExecCommandEnd after output draining.
|
||||
ProcessStatus::Exited {
|
||||
exit_code,
|
||||
entry: Box::new(entry),
|
||||
|
||||
Reference in New Issue
Block a user