Refresh animated terminal titles without redrawing the TUI (#40618)

## Why

Terminal title animations only need to update the title, but each animation tick
previously requested a full TUI frame.

## What changed

- Track the next terminal title refresh deadline on `ChatWidget`.
- Have the foreground event loop refresh the title when that deadline expires.
- Clear the deadline when title animations are disabled or the configured title is
  empty.

## Testing

- Verify spinner and action-required animations set the expected refresh deadlines.
- Verify refreshing an animated title does not enqueue a TUI draw request.

GitOrigin-RevId: 269347cd48de4ad9ba9a0aef9ed105c25d1a7dae
This commit is contained in:
Tamir Duberstein authored and copyberry committed 2026-08-25 14:24:18 +00:00
1 parent ed42068c45
commit 6525b95dae
5 files changed
+56 -12

No files matched your search

@@ -234,6 +234,7 @@ impl ChatWidget {
last_terminal_title_requires_action: false,
terminal_title_setup_original_items: None,
terminal_title_animation_origin: Instant::now(),
terminal_title_next_refresh: None,
status_line_project_root_name_cache: None,
status_line_branch: None,
status_line_branch_cwd: None,