mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
## Why Closed agent channels can retain stale in-progress turns, which can incorrectly block `/cd` or cause unnecessary background-terminal checks. ## What changed - Mark agents closed whenever a `thread/closed` notification is routed, including for inactive event channels. - Exclude closed agents from running-turn detection and background-terminal checks during working-directory changes. ## Testing Cover directory-change recovery with both a routed close notification and a replay-only closed thread that contains a stale in-progress turn. GitOrigin-RevId: 1072456056f8c1a1b751a52635470b0be160d76c