Keep the active goal clock current in the TUI (#40622)

## Why

The active goal's elapsed-time label could become stale while the TUI was idle because it was refreshed only as part of a redraw.

## What changed

- Refresh the goal status indicator when the terminal-title timer fires.
- Request a redraw only when the displayed elapsed-time label changes.

## Testing

- Add a regression test covering the minute transition and confirming that an unchanged label does not trigger another redraw.

GitOrigin-RevId: f10a1c2334cf7a5f1d2ee90d7138114479998c8d
This commit is contained in:
Tamir Duberstein authored and copyberry committed 2026-08-25 14:47:53 +00:00
1 parent e16d098c00
commit c395364915
3 files changed
+61 -1

No files matched your search

+1
View File
@@ -808,6 +808,7 @@ See the Codex keymap documentation for supported actions and examples."
None => std::future::pending().await,
}
} => {
app.chat_widget.refresh_goal_status_indicator_for_time_tick();
app.chat_widget.refresh_terminal_title();
AppRunControl::Continue
}