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

@@ -25,6 +25,9 @@ impl ChatWidget {
pub(super) fn on_image_generation_begin(&mut self) {
self.record_visible_turn_activity();
self.flush_answer_stream_with_separator();
if self.bottom_pane.is_task_running() {
self.bottom_pane.ensure_status_indicator();
}
}
pub(super) fn on_image_generation_end(