Fix TUI status visibility around streamed output (#33105)

## What changed

- Hide the working-status indicator when finalized assistant output is committed to the transcript, including single-line final answers.
- Restore the indicator when image generation begins during a running task after its streamed preamble has been flushed.

## Testing

- Add snapshot coverage for a single-line final answer and for image generation following a single-line preamble.

GitOrigin-RevId: e294a11cda3f0ce46f2bbed1be2a1380c9c73085
This commit is contained in:
rakan-oai authored and copyberry committed 2026-07-14 16:29:54 +00:00
1 parent effd58d750
commit fca8c00f11
6 files changed
+96

No files matched your search

@@ -0,0 +1,11 @@
---
source: tui/src/chatwidget/tests/exec_flow.rs
expression: normalized_backend_snapshot(terminal.backend())
---
" "
"• Working (0s • esc to interrupt) "
" "
" "
"› Ask Codex to do anything "
" "
" gpt-5.6-sol default · /tmp/project "
@@ -0,0 +1,14 @@
---
source: tui/src/chatwidget/tests/status_and_layout.rs
expression: normalize_snapshot_paths(terminal.backend().vt100().screen().contents())
---
› count to 1
• 1
› Ask Codex to do anything
gpt-5 default · /tmp/project