mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:50:52 +00:00
Report terminal completion states and blocking reasons (#54114)
## Why Terminal status previously collapsed completed and failed turns into `idle` and reported blocking prompts without a reason. Blocking detection also depended on terminal title settings. ## What changed - Emit `done` and `error` through OSC 7501 for live turn results, retaining them until deliberate keyboard, paste, or mouse input acknowledges them. Mouse movement does not acknowledge results. - Classify blocking requests with `kind=permission`, `kind=question`, or `kind=auth`, including requests hidden behind another view or delayed while typing, independently of terminal title settings. - Keep pending follow-up work and active goals `working`. Treat interrupted turns and replayed results as `idle` rather than new results. - Preserve the existing iTerm2 OSC 21337 labels and indicators, mapping `done` and `error` to `Idle`. ## Testing Add lifecycle and input-acknowledgment tests covering approvals, completion, failure, interruption, replay, pending follow-ups, and active goals. Extend blocking-request assertions and terminal protocol snapshots for the new states and reasons. GitOrigin-RevId: 90bad1d54d8b3b9e3cec66fbd3bf3df0c42b995b
This commit is contained in:
committed by
copyberry
parent
e1e2257e29
commit
dec54912f9
@@ -275,6 +275,8 @@ mod plan_mode;
|
||||
#[path = "tests/plugin_catalog_tests.rs"]
|
||||
mod plugin_catalog;
|
||||
mod popups_and_settings;
|
||||
#[path = "tests/program_status.rs"]
|
||||
mod program_status;
|
||||
#[path = "tests/rate_limit_recovery_tests.rs"]
|
||||
mod rate_limit_recovery_tests;
|
||||
#[path = "tests/reasoning_status_tests.rs"]
|
||||
|
||||
Reference in New Issue
Block a user