Wrap built-in TUI status lines within the footer row budget (#60682)

## Why

Long built-in status lines were truncated to a single row even when the footer had room for more content.

## What changed

- Wrap status text to the available width and row budget, preserving styles and hyperlink targets across rows.
- Show an unlinked ellipsis when content exceeds the available space.
- Refresh wrapped content when the status text, agent label, or width changes.
- Keep reasoning-effort transitions on one row and restore wrapping after the final animation frame.

## Testing

Add coverage for wrapping and hyperlink boundaries across footer layouts, content and agent-label updates, resizing, and wrapping restoration after an effort transition. Update transcript and startup snapshots for multiline status text.

GitOrigin-RevId: 30e0795c473efd62fc4d0dca4deb6029b625a9e8
This commit is contained in:
Joe Savona
2026-11-10 23:35:28 +00:00
committed by copyberry
parent 192e2ef3ce
commit 65dbdb5f03
17 changed files with 380 additions and 45 deletions
@@ -40,8 +40,8 @@ expression: "normalize_snapshot_paths(normalize_agent_center_snapshot(snapshots.
› Ask Codex to do anything
GPT-5.6-Sol default · /tmp/pr…
GPT-5.6-Sol default · /tmp/
project
? for shortcuts
@@ -41,6 +41,8 @@ async fn owned_startup_hides_tip_in_transcript() -> Result<()> {
];
let mut tui = crate::tui::test_support::make_test_tui()?;
tui.set_owned_screen(/*owned*/ true)?;
app.chat_widget
.set_status_line(Some("GPT-5.6-Sol default · /tmp/project".into()));
let mut snapshots = Vec::new();
for width in [80, 32] {
let size = Size::new(width, /*height*/ 20);