Hide TUI status details for read-only history (#61219)

## What changed

Track whether a thread is being viewed without a live attachment. Hide the status line and context usage for saved history and unavailable conversations, even when token usage updates arrive. Restore these displays when the thread resumes interactively, including sessions using read-only permissions.

Avoid a leading separator before the Vim mode indicator when context usage is hidden.

## Testing

Add regression coverage for history viewing, token updates, and interactive resume. Update unavailable-conversation snapshots to omit the status line.

GitOrigin-RevId: 14dfd2ee0f232001814b7fc45a5ac8a5d755669b
This commit is contained in:
Joe Savona
2026-11-13 01:07:44 +00:00
committed by copyberry
parent 1111483b48
commit fdad70ba5d
34 changed files with 160 additions and 22 deletions
@@ -246,6 +246,7 @@ impl ChatWidget {
active_side_conversation: false,
blocks_direct_input: false,
external_writer_view: false,
read_only_history: false,
provider_error: None,
fork_in_progress: false,
misalignment_policy_violation: None,