Files
codex/codex-rs/tui/tests
Eric Traut 372947d936 Report pending startup dialogs through terminal program status (#64384)
## Why

Terminal hosts need to know when Codex is waiting for a startup decision, including while a chat status record is active.

## What changed

Emit a separate `OSC 7501` blocked record while waiting for directory trust, startup hook review, or an update decision. Report trust and hook review as permission prompts and the update prompt as a question.

Clear the dialog record when the prompt closes or Codex suspends. Report it again if Codex resumes waiting for input. Dialog records can coexist with the chat status record.

## Testing

Extend the connected directory trust PTY test to check blocked and clear records for consent and hook review. Exercise Ctrl-Z in a PTY without a controlling terminal and verify that the pending trust record stays active until the prompt is answered.

GitOrigin-RevId: 9801e03b28a19b75f62a09e3e927de0dd59c5448
2026-11-27 20:48:50 +00:00
..