Lightweight coding agent that runs in your terminal
Rust
Update /statusline and /title snapshots (#18909)
canvrno-oai37701d4654bc
diff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__status_line_setup_popup_hardcoded_only.snap b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__status_line_setup_popup_hardcoded_only.snapindex ccab3ca7d1..f1aca37043 100644--- a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__status_line_setup_popup_hardcoded_only.snap+++ b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__status_line_setup_popup_hardcoded_only.snap@@ -7,14 +7,14 @@ expression: status_line_popup_snapshot(&mut chat)Type to search>-› [x] project-root Project root directory (omitted when unavailable)+› [x] project-name Project name (omitted when unavailable)[x] git-branch Current Git branch (omitted when unavailable)- [x] thread-title Current thread title (omitted unless changed by user)- [ ] model-name Current model name+ [x] thread-title Current thread title (omitted when unavailable)+ [ ] model Current model name[ ] model-with-reasoning Current model name with reasoning level[ ] current-dir Current working directory+ [ ] run-state Compact session run-state text (Ready, Working, Thinking)[ ] context-remaining Percentage of context window remaining (omitted when unknown)- [ ] context-used Percentage of context window used (omitted when unknown)my-project · feat/awesome-feature · thread titleUse ↑↓ to navigate, ←→ to move, space to select, enter to confirm, esc to cancel.diff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__status_line_setup_popup_live_only.snap b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__status_line_setup_popup_live_only.snapindex 273e175114..a5bb631fa4 100644--- a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__status_line_setup_popup_live_only.snap+++ b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__status_line_setup_popup_live_only.snap@@ -7,14 +7,14 @@ expression: status_line_popup_snapshot(&mut chat)Type to search>-› [x] project-root Project root directory (omitted when unavailable)+› [x] project-name Project name (omitted when unavailable)[x] git-branch Current Git branch (omitted when unavailable)- [x] thread-title Current thread title (omitted unless changed by user)- [ ] model-name Current model name+ [x] thread-title Current thread title (omitted when unavailable)+ [ ] model Current model name[ ] model-with-reasoning Current model name with reasoning level[ ] current-dir Current working directory+ [ ] run-state Compact session run-state text (Ready, Working, Thinking)[ ] context-remaining Percentage of context window remaining (omitted when unknown)- [ ] context-used Percentage of context window used (omitted when unknown)preview-live-root · feature/live-preview-branch · Live preview threadUse ↑↓ to navigate, ←→ to move, space to select, enter to confirm, esc to cancel.diff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__status_line_setup_popup_mixed.snap b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__status_line_setup_popup_mixed.snapindex 0f0bfdd24a..e44459c729 100644--- a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__status_line_setup_popup_mixed.snap+++ b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__status_line_setup_popup_mixed.snap@@ -7,14 +7,14 @@ expression: status_line_popup_snapshot(&mut chat)Type to search>-› [x] project-root Project root directory (omitted when unavailable)+› [x] project-name Project name (omitted when unavailable)[x] git-branch Current Git branch (omitted when unavailable)- [x] thread-title Current thread title (omitted unless changed by user)- [ ] model-name Current model name+ [x] thread-title Current thread title (omitted when unavailable)+ [ ] model Current model name[ ] model-with-reasoning Current model name with reasoning level[ ] current-dir Current working directory+ [ ] run-state Compact session run-state text (Ready, Working, Thinking)[ ] context-remaining Percentage of context window remaining (omitted when unknown)- [ ] context-used Percentage of context window used (omitted when unknown)my-project · feature/mixed-preview · Mixed preview threadUse ↑↓ to navigate, ←→ to move, space to select, enter to confirm, esc to cancel.diff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__terminal_title_setup_popup_hardcoded_only.snap b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__terminal_title_setup_popup_hardcoded_only.snapindex b1c1cf5aed..8dbfffe294 100644--- a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__terminal_title_setup_popup_hardcoded_only.snap+++ b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__terminal_title_setup_popup_hardcoded_only.snap@@ -7,14 +7,14 @@ expression: terminal_title_popup_snapshot(&mut chat)Type to search>-› [x] thread Current thread title (omitted until available)+› [x] thread-title Current thread title (omitted when unavailable)[x] git-branch Current Git branch (omitted when unavailable)[x] task-progress Latest task progress from update_plan (omitted until available)[ ] app-name Codex app name- [ ] project Project name (falls back to current directory name)+ [ ] project-name Project name (falls back to current directory name)+ [ ] current-dir Current working directory[ ] spinner Animated task spinner (omitted while idle or when animations are off)[ ] run-state Compact session run-state text (Ready, Working, Thinking)- [ ] model Current model namethread title | feat/awesome-feature | Tasks 0/0Use ↑↓ to navigate, ←→ to move, space to select, enter to confirm, esc to cancel.diff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__terminal_title_setup_popup_live_only.snap b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__terminal_title_setup_popup_live_only.snapindex 9842d8eca8..a6726dbe23 100644--- a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__terminal_title_setup_popup_live_only.snap+++ b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__terminal_title_setup_popup_live_only.snap@@ -7,14 +7,14 @@ expression: terminal_title_popup_snapshot(&mut chat)Type to search>-› [x] project Project name (falls back to current directory name)- [x] thread Current thread title (omitted until available)+› [x] project-name Project name (falls back to current directory name)+ [x] thread-title Current thread title (omitted when unavailable)[x] git-branch Current Git branch (omitted when unavailable)[x] task-progress Latest task progress from update_plan (omitted until available)[ ] app-name Codex app name+ [ ] current-dir Current working directory[ ] spinner Animated task spinner (omitted while idle or when animations are off)[ ] run-state Compact session run-state text (Ready, Working, Thinking)- [ ] model Current model namepreview-live-root | Live preview thread | feature/live-preview-branch | Tasks 2/5Use ↑↓ to navigate, ←→ to move, space to select, enter to confirm, esc to cancel.diff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__terminal_title_setup_popup_mixed.snap b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__terminal_title_setup_popup_mixed.snapindex d75306617c..2d995ce9ab 100644--- a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__terminal_title_setup_popup_mixed.snap+++ b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__terminal_title_setup_popup_mixed.snap@@ -7,14 +7,14 @@ expression: terminal_title_popup_snapshot(&mut chat)Type to search>-› [x] project Project name (falls back to current directory name)- [x] thread Current thread title (omitted until available)+› [x] project-name Project name (falls back to current directory name)+ [x] thread-title Current thread title (omitted when unavailable)[x] task-progress Latest task progress from update_plan (omitted until available)[ ] app-name Codex app name+ [ ] current-dir Current working directory[ ] spinner Animated task spinner (omitted while idle or when animations are off)[ ] run-state Compact session run-state text (Ready, Working, Thinking)[ ] git-branch Current Git branch (omitted when unavailable)- [ ] model Current model nameproject | Mixed preview thread | Tasks 0/0Use ↑↓ to navigate, ←→ to move, space to select, enter to confirm, esc to cancel.diff --git a/codex-rs/tui/src/chatwidget/tests/status_surface_previews.rs b/codex-rs/tui/src/chatwidget/tests/status_surface_previews.rsindex b5ef67dd60..b13c735041 100644--- a/codex-rs/tui/src/chatwidget/tests/status_surface_previews.rs+++ b/codex-rs/tui/src/chatwidget/tests/status_surface_previews.rs@@ -91,7 +91,7 @@ async fn status_line_setup_popup_live_only_snapshot() {chat.status_line_branch = Some("feature/live-preview-branch".to_string());chat.thread_name = Some("Live preview thread".to_string());chat.config.tui_status_line = Some(vec![- "project-root".to_string(),+ "project-name".to_string(),"git-branch".to_string(),"thread-title".to_string(),]);@@ -127,7 +127,7 @@ async fn status_surface_preview_lines_hardcoded_only_snapshot() {async fn status_line_setup_popup_hardcoded_only_snapshot() {let (mut chat, _rx, _op_rx) = make_chatwidget_manual(/*model_override*/ None).await;chat.config.tui_status_line = Some(vec![- "project-root".to_string(),+ "project-name".to_string(),"git-branch".to_string(),"thread-title".to_string(),]);@@ -167,7 +167,7 @@ async fn status_line_setup_popup_mixed_snapshot() {chat.status_line_branch = Some("feature/mixed-preview".to_string());chat.thread_name = Some("Mixed preview thread".to_string());chat.config.tui_status_line = Some(vec![- "project-root".to_string(),+ "project-name".to_string(),"git-branch".to_string(),"thread-title".to_string(),]);@@ -186,8 +186,8 @@ async fn terminal_title_setup_popup_live_only_snapshot() {chat.thread_name = Some("Live preview thread".to_string());chat.last_plan_progress = Some((2, 5));chat.config.tui_terminal_title = Some(vec![- "project".to_string(),- "thread".to_string(),+ "project-name".to_string(),+ "thread-title".to_string(),"git-branch".to_string(),"task-progress".to_string(),]);@@ -202,7 +202,7 @@ async fn terminal_title_setup_popup_live_only_snapshot() {async fn terminal_title_setup_popup_hardcoded_only_snapshot() {let (mut chat, _rx, _op_rx) = make_chatwidget_manual(/*model_override*/ None).await;chat.config.tui_terminal_title = Some(vec![- "thread".to_string(),+ "thread-title".to_string(),"git-branch".to_string(),"task-progress".to_string(),]);@@ -218,8 +218,8 @@ async fn terminal_title_setup_popup_mixed_snapshot() {let (mut chat, _rx, _op_rx) = make_chatwidget_manual(/*model_override*/ None).await;chat.thread_name = Some("Mixed preview thread".to_string());chat.config.tui_terminal_title = Some(vec![- "project".to_string(),- "thread".to_string(),+ "project-name".to_string(),+ "thread-title".to_string(),"task-progress".to_string(),]);