diff --git a/codex-rs/tui/src/app/agent_center/navigation.rs b/codex-rs/tui/src/app/agent_center/navigation.rs index 8a8185432e..2fdd42a84b 100644 --- a/codex-rs/tui/src/app/agent_center/navigation.rs +++ b/codex-rs/tui/src/app/agent_center/navigation.rs @@ -3,6 +3,10 @@ use super::*; use ratatui::layout::Position; +use std::ops::Range; + +// The list leaves one column of padding at its right edge. +pub(super) const STATUS_COLUMNS_MIN_WIDTH: u16 = 57; pub(super) enum TaskListRow { Group(usize), @@ -27,11 +31,34 @@ impl TaskListRow { } } +pub(super) fn visible_page( + entries: &[TaskListRow], + selected_index: usize, + state: &mut AgentsOverviewViewState, +) -> (usize, Range) { + let selected = entries + .iter() + .position(|row| row.selection_index() == Some(selected_index)) + .unwrap_or_default(); + let height = state.page_height.max(1); + let mut start = state.scroll.min(entries.len().saturating_sub(height)); + if selected <= start { + start = selected; + if height > 1 && selected > 0 && matches!(entries[selected - 1], TaskListRow::Group(_)) { + start -= 1; + } + } + let context = height > 1 && matches!(entries.get(selected + 1), Some(TaskListRow::Context(_))); + start = start.max((selected + 1 + usize::from(context)).saturating_sub(height)); + state.scroll = start; + (selected, start..(start + height).min(entries.len())) +} + impl AgentsOverviewView { pub(super) fn center_rows( &self, indices: &[usize], - grouping: AgentsOverviewGrouping, + state: &AgentsOverviewViewState, ) -> Vec { let mut entries = Vec::new(); let mut previous = None; @@ -41,14 +68,14 @@ impl AgentsOverviewView { entries.push(TaskListRow::ShowMore); continue; } - if previous.is_none_or(|previous| !self.same_group(grouping, previous, index)) { + if previous.is_none_or(|previous| !self.same_group(state.grouping, previous, index)) { if previous.is_some() { entries.push(TaskListRow::Gap); } entries.push(TaskListRow::Group(index)); } entries.push(TaskListRow::Task(index)); - if self.dock_focused.is_some() { + if state.list_width < STATUS_COLUMNS_MIN_WIDTH && state.page_height > 1 { entries.push(TaskListRow::Context(index)); } previous = Some(index); @@ -64,7 +91,7 @@ impl AgentsOverviewView { return; } let indices = self.selectable_indices(); - let entries = self.center_rows(&indices, self.state().grouping); + let entries = self.center_rows(&indices, &self.state()); let mut sections = Vec::new(); let mut current = None; for row in entries { @@ -129,43 +156,47 @@ impl AgentsOverviewView { if state.rename_target.is_some() || indices.is_empty() { return; } - let forward = action == ListAction::PageDown; - let entries = self.center_rows(&indices, state.grouping); - let tasks = entries + let entries = self.center_rows(&indices, &state); + let (selected, page) = visible_page(&entries, self.selected, &mut state); + let page_size = entries[page.clone()] .iter() - .enumerate() - .filter_map(|(position, row)| Some((position, row.selection_index()?))) - .collect::>(); - let current = tasks - .iter() - .find(|(_, index)| *index == self.selected) - .map(|(position, _)| *position) - .unwrap_or(tasks[0].0); - let height = state.page_height.max(/*other*/ 1); - let target = if forward { - current.saturating_add(height) + .filter_map(TaskListRow::selection_index) + .count() + .max(1); + let next = if action == ListAction::PageDown { + let end = (page.end + page.len()).min(entries.len()); + // Keep a task's detail row with it when the next page ends at its title. + let end = end - usize::from(matches!(entries.get(end), Some(TaskListRow::Context(_)))); + entries[selected + 1..end] + .iter() + .filter_map(TaskListRow::selection_index) + .take(page_size) + .last() + .or_else(|| entries[end..].iter().find_map(TaskListRow::selection_index)) } else { - current.saturating_sub(height) + // Leave one row of overlap in case the destination needs its heading. + let start = page + .start + .saturating_sub(state.page_height.saturating_sub(1)); + entries[start..selected] + .iter() + .rev() + .filter_map(TaskListRow::selection_index) + .take(page_size) + .last() + .or_else(|| { + entries[..start] + .iter() + .rev() + .find_map(TaskListRow::selection_index) + }) }; - let selected = if forward { - tasks - .partition_point(|(position, _)| *position < target) - .min(tasks.len() - 1) - } else { - tasks - .partition_point(|(position, _)| *position <= target) - .saturating_sub(1) - }; - let selected = tasks[selected].1; - let scroll = state.scroll; - state.scroll = (if forward { - scroll.saturating_add(height) - } else { - scroll.saturating_sub(height) - }) - .min(entries.len().saturating_sub(height)); - drop(state); - self.selected = selected; - self.state().show_more_selected = selected == usize::MAX; + if let Some(next) = next { + // A second page key may arrive before we paint this selection. + visible_page(&entries, next, &mut state); + state.show_more_selected = next == usize::MAX; + drop(state); + self.selected = next; + } } } diff --git a/codex-rs/tui/src/app/agent_center/rows.rs b/codex-rs/tui/src/app/agent_center/rows.rs index 7d7efd7d8a..12c1b76f76 100644 --- a/codex-rs/tui/src/app/agent_center/rows.rs +++ b/codex-rs/tui/src/app/agent_center/rows.rs @@ -1,8 +1,10 @@ //! Grouped live tasks with shared identity colors and stable title, status and age columns. -//! Full titles use the flexible column; metadata drops at narrow widths. +//! Narrow lists put status and branch on a second row. //! The final cell stays blank inside the full-width selection highlight. +use super::navigation::STATUS_COLUMNS_MIN_WIDTH; use super::navigation::TaskListRow; +use super::navigation::visible_page; use super::render::line; use super::render::row; use super::*; @@ -10,27 +12,26 @@ use crate::bottom_pane::selection_style; use crate::resume_picker::format_relative_time; use crate::status::format_directory_display; -fn columns(area: Rect) -> (Rect, Rect, Rect) { - let metadata = if area.width >= 56 { 24 } else { 0 }; +fn columns(area: Rect, widths: Option<(u16, u16)>) -> (Rect, Rect, Rect) { let gutter = area.width.min(/*other*/ 4); - let title = Rect::new( - area.x + gutter, - area.y, - area.width - gutter - metadata, - area.height, - ); + let (status_width, updated_width, gap) = match widths { + Some((status, updated)) => (status, updated, 2), + None => (0, 0, 0), + }; let updated = Rect::new( - area.right() - metadata.min(/*other*/ 9), + area.right() - updated_width, area.y, - metadata.min(/*other*/ 9), + updated_width, area.height, ); let status = Rect::new( - title.right() + metadata.min(/*other*/ 2), + updated.x - gap - status_width, area.y, - if metadata == 24 { 11 } else { 0 }, + status_width, area.height, ); + let title_x = area.x + gutter; + let title = Rect::new(title_x, area.y, status.x - gap - title_x, area.height); (title, status, updated) } @@ -41,11 +42,15 @@ impl AgentsOverviewView { width: row_width.saturating_sub(/*rhs*/ 1), ..area }; + let indices = self.selectable_indices(); + let mut state = self.state(); + let padding = u16::from(area.height >= 3); + let viewport = row(area, padding, area.height - padding * 2); + state.list_width = viewport.width; + state.page_height = usize::from(viewport.height); if area.is_empty() { return; } - let indices = self.selectable_indices(); - let mut state = self.state(); if indices.is_empty() { line( if state.connection_notice.is_some() { @@ -72,46 +77,35 @@ impl AgentsOverviewView { } else { selection_style() }; - let entries = self.center_rows(&indices, state.grouping); - let selected = entries - .iter() - .position(|row| row.selection_index() == Some(self.selected)) - .unwrap_or_default(); - let padding = u16::from(area.height >= 3); - let viewport = row(area, padding, area.height - padding * 2); + let entries = self.center_rows(&indices, &state); + let reference = chrono::Utc::now(); + let age = |task: &AgentsOverviewRow| { + format_relative_time( + reference, + chrono::DateTime::from_timestamp(task.thread.updated_at, /*nsecs*/ 0), + ) + }; + let widths = (state.list_width >= STATUS_COLUMNS_MIN_WIDTH).then(|| { + let mut status_width = "Status".width(); + let mut updated_width = "Updated".width(); + for task in indices.iter().filter_map(|&index| self.rows.get(index)) { + status_width = status_width.max(Self::status(task).0.width()); + updated_width = updated_width.max(age(task).width()); + } + (status_width.min(11) as u16, updated_width.min(9) as u16) + }); if padding > 0 && self.dock_focused.is_none() { - let (title, status, updated) = columns(row(area, /*offset*/ 0, /*height*/ 1)); + let (title, status, updated) = columns(row(area, /*offset*/ 0, /*height*/ 1), widths); line("Tasks".dim(), title, buf); line("Status".dim(), status, buf); Line::from("Updated".dim()) .right_aligned() .render(updated, buf); } - let reference = chrono::Utc::now(); - let height = usize::from(viewport.height); - state.page_height = height; - let mut start = state.scroll.min(entries.len().saturating_sub(height)); - if selected < start { - start = if height > 1 - && selected > 0 - && matches!(entries[selected - 1], TaskListRow::Group(_)) - { - selected - 1 - } else { - selected - }; - } - let last_selected_row = - if height > 1 && matches!(entries.get(selected + 1), Some(TaskListRow::Context(_))) { - selected + 1 - } else { - selected - }; - if last_selected_row >= start + height { - start = last_selected_row.saturating_add(1).saturating_sub(height); - } - state.scroll = start; - for (offset, entry) in entries.iter().skip(start).take(height).enumerate() { + let (_, page) = visible_page(&entries, self.selected, &mut state); + let has_previous = page.start > 0; + let has_next = page.end < entries.len(); + for (offset, entry) in entries[page].iter().enumerate() { let rect = row(viewport, offset as u16, /*height*/ 1); let background = Rect { width: row_width, @@ -258,7 +252,7 @@ impl AgentsOverviewView { ), buf, ); - let (mut title, status_area, updated) = columns(rect); + let (mut title, status_area, updated) = columns(rect, widths); if task.has_voice && title.width >= 8 { let badge = Rect::new( title.right() - 8, @@ -295,11 +289,7 @@ impl AgentsOverviewView { line(task_title, title, buf); line(Line::from(status).style(style), status_area, buf); if !updated.is_empty() { - let age = format_relative_time( - reference, - chrono::DateTime::from_timestamp(task.thread.updated_at, /*nsecs*/ 0), - ); - Line::from(age) + Line::from(age(task)) .style(if index == self.selected { style } else { @@ -309,10 +299,10 @@ impl AgentsOverviewView { .render(updated, buf); } } - if padding > 0 && start > 0 { + if padding > 0 && has_previous { line("↑".dim(), row(area, /*offset*/ 0, /*height*/ 1), buf); } - if padding > 0 && start + height < entries.len() { + if padding > 0 && has_next { line( "↓".dim(), row( diff --git a/codex-rs/tui/src/app/agent_center_tests.rs b/codex-rs/tui/src/app/agent_center_tests.rs index d6a0a48a98..8a8a72c518 100644 --- a/codex-rs/tui/src/app/agent_center_tests.rs +++ b/codex-rs/tui/src/app/agent_center_tests.rs @@ -471,7 +471,9 @@ async fn live_center_pages_visible_rows_without_wrapping() { ); thread.updated_at -= index as i64; if index >= 10 { - thread.cwd = test_path_buf("/tmp/second-project").abs().into(); + thread.cwd = test_path_buf(&format!("/tmp/second-project-{index:02}")) + .abs() + .into(); } thread }) @@ -498,10 +500,17 @@ async fn live_center_pages_visible_rows_without_wrapping() { assert!(view.selected_index().unwrap() < page_down); view.handle_key_event(KeyCode::PageUp.into()); assert_eq!(view.rows[view.selected_index().unwrap()].thread_id, first); - // Repeated pages eventually reach the last filtered task and stay there. + // Page through a dense group followed by one-task groups in both layouts. + let mut pages = screen(&view, /*width*/ 110, /*height*/ 18); for _ in 0..count { view.handle_key_event(KeyEvent::new(KeyCode::Char('f'), KeyModifiers::CONTROL)); - screen(&view, /*width*/ 110, /*height*/ 18); + pages.push_str(&screen(&view, /*width*/ 110, /*height*/ 18)); + } + for index in 0..count { + assert!( + pages.contains(&format!("Paging task {index:02}")), + "skipped task {index} paging down" + ); } let last = view.rows[view.selected_index().unwrap()].thread_id; view.handle_key_event(KeyCode::PageDown.into()); @@ -509,15 +518,58 @@ async fn live_center_pages_visible_rows_without_wrapping() { (last, view.rows[view.selected_index().unwrap()].thread_id), (ThreadId::from_u128(100 + count - 1), last) ); - view.handle_key_event(KeyCode::Down.into()); - assert!( - screen(&view, /*width*/ 110, /*height*/ 18) - .lines() - .any(|line| line.trim_start().starts_with("/tmp/project")) - ); + let mut pages = screen(&view, /*width*/ 48, /*height*/ 18); + for _ in 0..count { + view.handle_key_event(KeyCode::PageUp.into()); + pages.push_str(&screen(&view, /*width*/ 48, /*height*/ 18)); + } + assert_eq!(view.rows[view.selected_index().unwrap()].thread_id, first); + for index in 0..count { + assert!( + pages.contains(&format!("Paging task {index:02}")), + "skipped task {index} paging up" + ); + } } } +#[tokio::test] +async fn live_center_pages_full_task_rows_and_restores_the_first_heading() { + let app = make_test_app().await; + let ids = (100..130).map(ThreadId::from_u128).collect::>(); + let threads = ids + .iter() + .enumerate() + .map(|(index, &id)| { + let mut thread = overview_thread( + id, + /*parent_thread_id*/ None, + &format!("Paging task {}", index + 1), + ThreadStatus::Idle, + ); + thread.updated_at -= index as i64; + thread + }) + .collect::>(); + let selected = |view: &AgentsOverviewView| view.rows[view.selected_index().unwrap()].thread_id; + let mut view = app.agents_overview_view(threads.clone(), Some(ids[9])); + let first_page = screen(&view, /*width*/ 80, /*height*/ 16); + assert!(first_page.contains("Paging task 1 ")); + assert!(first_page.contains("Paging task 10 ")); + for expected in [ids[19], ids[29]] { + view.handle_key_event(KeyCode::PageDown.into()); + assert_eq!(selected(&view), expected); + } + + let mut view = app.agents_overview_view(threads, Some(ids[0])); + let initial = screen(&view, /*width*/ 80, /*height*/ 16); + view.handle_key_event(KeyCode::PageDown.into()); + assert!(screen(&view, /*width*/ 80, /*height*/ 16).contains('↑')); + view.handle_key_event(KeyCode::PageUp.into()); + assert_eq!(selected(&view), ids[0]); + assert_eq!(screen(&view, /*width*/ 80, /*height*/ 16), initial); +} + #[tokio::test] async fn live_center_navigates_sections() { let mut app = make_test_app().await; diff --git a/codex-rs/tui/src/app/agents_overview_tests.rs b/codex-rs/tui/src/app/agents_overview_tests.rs index 5a35dca365..7f6dd422db 100644 --- a/codex-rs/tui/src/app/agents_overview_tests.rs +++ b/codex-rs/tui/src/app/agents_overview_tests.rs @@ -1401,7 +1401,7 @@ async fn check_hidden_thread_does_not_refresh_shared_overview(source: &str) { } #[tokio::test] -async fn agents_overview_details_show_available_attention_without_expanding_rows() -> Result<()> { +async fn agents_overview_details_show_available_attention() -> Result<()> { let mut app = make_test_app_with_chat().await; let app_server = crate::start_embedded_app_server_for_picker(&app.config).await?; let [root, failed_agent, child, unloaded] = std::array::from_fn(|_| ThreadId::new()); diff --git a/codex-rs/tui/src/app/agents_overview_view.rs b/codex-rs/tui/src/app/agents_overview_view.rs index f7e679c335..6e532ba63a 100644 --- a/codex-rs/tui/src/app/agents_overview_view.rs +++ b/codex-rs/tui/src/app/agents_overview_view.rs @@ -172,6 +172,7 @@ pub(super) struct AgentsOverviewViewState { row_hits: Vec<(RowTarget, Rect)>, scroll: usize, page_height: usize, + list_width: u16, status_filter: usize, help: bool, pub(super) input: TextArea, diff --git a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__actions__archive_task_confirmation.snap b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__actions__archive_task_confirmation.snap index 595ac77642..5017079685 100644 --- a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__actions__archive_task_confirmation.snap +++ b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__actions__archive_task_confirmation.snap @@ -1,13 +1,13 @@ --- source: tui/src/app/agents_overview_actions_tests.rs -expression: "render_bottom_popup(&app.chat_widget, 80)" +expression: "normalize_agent_center_snapshot(render_bottom_popup(&app.chat_widget, 80))" --- Agent command center Group: Project g All 1 Needs you 0 Working 0 Ready 1 Inactive 0 ──────────────────────────────────────────────────────────────────────────── - Tasks Status Updated + Tasks Status Updated /tmp/project 1 - › ○ Current task Ready 2m ago + › ○ Current task Ready 2m ago Archive “Current task”? diff --git a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__actions__delete_task_confirmation.snap b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__actions__delete_task_confirmation.snap index 62bfaa89a5..5f47920e6c 100644 --- a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__actions__delete_task_confirmation.snap +++ b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__actions__delete_task_confirmation.snap @@ -5,9 +5,9 @@ expression: "normalize_agent_center_snapshot(render_bottom_popup(&app.chat_widge Agent command center Group: Project g All 1 Needs you 0 Working 0 Ready 1 Inactive 0 ──────────────────────────────────────────────────────────────────────────── - Tasks Status Updated + Tasks Status Updated /tmp/project 1 - › ○ Current task Ready 2m ago + › ○ Current task Ready 2m ago Permanently delete “Current task”? Tasks with saved side chats stay intact. Otherwise, deleting this diff --git a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_markdown.snap b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_markdown.snap index 3120e62aab..4c2a15b586 100644 --- a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_markdown.snap +++ b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_markdown.snap @@ -8,7 +8,7 @@ expression: normalize_agent_center_snapshot(&cached) " Tasks │ Task details " " /tmp/project 1 │ " " › ○ Review parser │ Review parser " -" │ ○ Ready " +" Ready │ ○ Ready " " │ " " │ Model: Unknown " " │ Reasoning: Unknown " diff --git a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_markdown_long_lines.snap b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_markdown_long_lines.snap index fb6fb55ee6..1d320fdebe 100644 --- a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_markdown_long_lines.snap +++ b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_markdown_long_lines.snap @@ -8,7 +8,7 @@ expression: "normalize_agent_center_snapshot(render_bottom_popup(&app.chat_widge Tasks │ Task details /tmp/project 1 │ › ○ Review parser │ Review parser - │ ○ Ready + Ready │ ○ Ready │ │ Model: Unknown │ Reasoning: Unknown diff --git a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_markdown_table.snap b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_markdown_table.snap index dd207c465e..dfc7dd3fb3 100644 --- a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_markdown_table.snap +++ b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_markdown_table.snap @@ -8,7 +8,7 @@ expression: "normalize_agent_center_snapshot(render_bottom_popup(&app.chat_widge Tasks │ Task details /tmp/project 1 │ › ○ Review parser │ Review parser - │ ○ Ready + Ready │ ○ Ready │ │ Model: Unknown │ Reasoning: Unknown diff --git a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_model_grouping.snap b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_model_grouping.snap index 45e9b9ffcd..6d44591e9d 100644 --- a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_model_grouping.snap +++ b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_model_grouping.snap @@ -8,17 +8,17 @@ expression: "render_bottom_popup(&app.chat_widget,\n100).replace(&test_path_disp Tasks │ Task details Unknown 1 │ › ○ Legacy task │ Legacy task - │ ○ Ready - model-a 2 │ - ○ Recent task │ Model: Unknown - ○ Older task │ Reasoning: Unknown + Ready │ ○ Ready │ - model-b 1 │ Project - ○ Other model │ /tmp/project - │ - │ Prompt - │ Legacy task + model-a 2 │ Model: Unknown + ○ Recent task │ Reasoning: Unknown + Ready │ + ○ Older task │ Project + Ready │ /tmp/project │ + model-b 1 │ Prompt + ○ Other model │ Legacy task + Ready │ │ │ │ diff --git a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_recent_sessions.snap b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_recent_sessions.snap index ac6328563a..02358fd651 100644 --- a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_recent_sessions.snap +++ b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__agents_overview_recent_sessions.snap @@ -5,18 +5,18 @@ expression: "age.replace_all(&rendered, \" [age]\")" Agent command center Group: Project g All 10 Needs you 0 Working 0 Ready 0 Inactive 10 ──────────────────────────────────────────────────────────────────────────── - Tasks Status Updated + Tasks Status Updated / 10 - › ○ Task 12 Inactive [age] - ○ Task 11 Inactive [age] - ○ Task 10 Inactive [age] - ○ Task 9 Inactive [age] - ○ Task 8 Inactive [age] - ○ Task 7 Inactive [age] - ○ Task 6 Inactive [age] - ○ Task 5 Inactive [age] - ○ Task 4 Inactive [age] - ○ Task 3 Inactive [age] + › ○ Task 12 Inactive [age] + ○ Task 11 Inactive [age] + ○ Task 10 Inactive [age] + ○ Task 9 Inactive [age] + ○ Task 8 Inactive [age] + ○ Task 7 Inactive [age] + ○ Task 6 Inactive [age] + ○ Task 5 Inactive [age] + ○ Task 4 Inactive [age] + ○ Task 3 Inactive [age] Show more diff --git a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_columns.snap b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_columns.snap index 4ad12fbe17..f0257045d1 100644 --- a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_columns.snap +++ b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_columns.snap @@ -5,16 +5,16 @@ expression: "screen(&view, 160, 22)" Agent command center Group: Project g All 6 Needs you 2 Working 1 Ready 2 Inactive 1 tab/⇧tab filter ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── - Tasks Status Updated │ Task details + Tasks Status Updated │ Task details Pinned 2 │ - › ○ ☁️ Current task Ready now │ ☁️ Current task - ● Needs an answer Needs input 2h ago │ ○ Ready + › ○ ☁️ Current task Ready now │ ☁️ Current task + ● Needs an answer Needs input 2h ago │ ○ Ready │ /tmp/project 4 │ Model: Unknown - ○ ☁️ A longer task title that uses the available column voice Ready 5m ago │ Reasoning: Unknown - ● ☁️ Failed task Error 1h ago │ - ● Working task Working 1d ago │ Project - ○ Unloaded task Inactive 2d ago │ /tmp/project + ○ ☁️ A longer task title that uses the available column voice Ready 5m ago │ Reasoning: Unknown + ● ☁️ Failed task Error 1h ago │ + ● Working task Working 1d ago │ Project + ○ Unloaded task Inactive 2d ago │ /tmp/project │ │ Prompt │ Current task diff --git a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_keeps_status_order_across_progress_refreshes.snap b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_keeps_status_order_across_progress_refreshes.snap index a486e1987d..a6fb6d3ff3 100644 --- a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_keeps_status_order_across_progress_refreshes.snap +++ b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_keeps_status_order_across_progress_refreshes.snap @@ -9,17 +9,17 @@ Initial display: Tasks │ Task details Needs input 1 │ ! Needs input │ Alpha - │ ● Working - Working 3 │ - ● Bravo │ Model: Unknown - ● Charlie │ Reasoning: Unknown - › ● Alpha │ - │ Project - Ready 1 │ /tmp/project - ○ Ready task │ - │ Prompt - │ Alpha + Error │ ● Working │ + Working 3 │ Model: Unknown + ● Bravo │ Reasoning: Unknown + Working │ + ● Charlie │ Project + Working │ /tmp/project + › ● Alpha │ + Working │ Prompt + │ Alpha + ↓ │ ? help esc back ↑/↓ move enter open n new After subagents fail under Alpha and Ready task: @@ -29,15 +29,15 @@ After subagents fail under Alpha and Ready task: Tasks │ Task details Needs input 1 │ ! Needs input │ Alpha - │ ● Working - Working 3 │ - ● 📌 Charlie │ Model: Unknown - › ● Alpha │ Reasoning: Unknown - ● Bravo │ - │ Project - Ready 1 │ /tmp/project - ○ 📌 Ready task │ - │ Prompt - │ Progress update 3 + Error │ ● Working │ + Working 3 │ Model: Unknown + ● 📌 Charlie │ Reasoning: Unknown + Working │ + › ● Alpha │ Project + Working │ /tmp/project + ● Bravo │ + Working │ Prompt + │ Progress update 3 + ↓ │ ? help esc back ↑/↓ move enter open n new diff --git a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_narrow_rename.snap b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_narrow_rename.snap index 0901c396de..44f3b2fa95 100644 --- a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_narrow_rename.snap +++ b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_narrow_rename.snap @@ -9,7 +9,7 @@ expression: rendered Tasks /tmp/project 1 › ○ Retained task - + Ready diff --git a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_search_active.snap b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_search_active.snap index ed8eb146fe..e9cad8fefc 100644 --- a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_search_active.snap +++ b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_search_active.snap @@ -6,9 +6,9 @@ expression: "screen(&view, area.width, area.height)" All 1 Needs you 0 Working 0 Ready 1 Inactive 0 ──────────────────────────────────────────────────────────────────────────────────── Search › find - Tasks Status Updated + Tasks Status Updated /tmp/project 1 - › ○ Task to find Ready 2m ago + › ○ Task to find Ready 2m ago Searching history… diff --git a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_show_more.snap b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_show_more.snap index 479e0f0f27..e17bf600ef 100644 --- a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_show_more.snap +++ b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_show_more.snap @@ -1,14 +1,13 @@ --- source: tui/src/app/agent_center_tests.rs -assertion_line: 572 expression: "screen(&view, 80, 12)" --- Agent command center Group: Project g All 1 Needs you 0 Working 0 Ready 0 Inactive 1 ──────────────────────────────────────────────────────────────────────────── - Tasks Status Updated + Tasks Status Updated /tmp/project 1 - ○ Recent task Inactive 2m ago + ○ Recent task Inactive 2m ago › Show more diff --git a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_show_more_search_retry.snap b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_show_more_search_retry.snap index 29ab5addb6..a8e4aff1e6 100644 --- a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_show_more_search_retry.snap +++ b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_show_more_search_retry.snap @@ -1,13 +1,12 @@ --- source: tui/src/app/agent_center_tests.rs -assertion_line: 588 expression: "screen(&view, 80, 12)" --- Agent command center Group: Project g All 1 Needs you 0 Working 0 Ready 0 Inactive 1 ──────────────────────────────────────────────────────────────────────────── Search › Older task - Tasks Status Updated + Tasks Status Updated › Show more (retry) diff --git a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_status_filter.snap b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_status_filter.snap index 4a097e33bd..df9613a5fe 100644 --- a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_status_filter.snap +++ b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__live_center_status_filter.snap @@ -8,7 +8,7 @@ expression: "screen(&view, 40, 12)" Tasks /tmp/project 1 of 3 › ○ Unloaded task - + Inactive diff --git a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__workspace_responsive_focus.snap b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__workspace_responsive_focus.snap index fc34e01870..52970e458b 100644 --- a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__workspace_responsive_focus.snap +++ b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__command_center__workspace_responsive_focus.snap @@ -25,7 +25,7 @@ Narrow Command Center Tasks Pinned 1 › ○ Investigate retry again - + Ready · retry-fix diff --git a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__usage__agents_overview_usage.snap b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__usage__agents_overview_usage.snap index ca8bb3b157..82c816a6c9 100644 --- a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__usage__agents_overview_usage.snap +++ b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview__tests__usage__agents_overview_usage.snap @@ -8,9 +8,9 @@ expression: "render_bottom_popup(&app.chat_widget,\n96).replace(&format!(\"{proj Tasks │ Task details /tmp/project 2 │ › ● Review parser │ Review parser - ○ Other task │ ● Needs input - │ - │ Model: Unknown + Needs input │ ● Needs input + ○ Other task │ + Ready │ Model: Unknown │ Reasoning: Unknown │ │ Project diff --git a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview_actions__progress_tests__archive_progress.snap b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview_actions__progress_tests__archive_progress.snap index b7d216eada..3af21deaee 100644 --- a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview_actions__progress_tests__archive_progress.snap +++ b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview_actions__progress_tests__archive_progress.snap @@ -5,10 +5,10 @@ expression: "age.replace_all(&text, \" [age]\")" " Agent command center Group: Project g " " All 2 Needs you 0 Working 0 Ready 0 Inactive 2 " " ──────────────────────────────────────────────────────────────────────────── " -" Tasks Status Updated " +" Tasks Status Updated " " /tmp/project 2 " -" ○ Task 2 Inactive [age] " -" › ○ Task 1 Inactive [age] " +" ○ Task 2 Inactive [age] " +" › ○ Task 1 Inactive [age] " " " " " " " diff --git a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview_actions__progress_tests__delete_progress.snap b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview_actions__progress_tests__delete_progress.snap index 10370ac2a4..94d3fabe0f 100644 --- a/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview_actions__progress_tests__delete_progress.snap +++ b/codex-rs/tui/src/app/snapshots/codex_tui__app__agents_overview_actions__progress_tests__delete_progress.snap @@ -5,10 +5,10 @@ expression: "age.replace_all(&text, \" [age]\")" " Agent command center Group: Project g " " All 2 Needs you 0 Working 0 Ready 0 Inactive 2 " " ──────────────────────────────────────────────────────────────────────────── " -" Tasks Status Updated " +" Tasks Status Updated " " /tmp/project 2 " -" ○ Task 2 Inactive [age] " -" › ○ Task 1 Inactive [age] " +" ○ Task 2 Inactive [age] " +" › ○ Task 1 Inactive [age] " " " " " " " diff --git a/codex-rs/tui/src/app/tests/snapshots/codex_tui__app__tests__navigation_reconnect__daemon_command_center_failed.snap b/codex-rs/tui/src/app/tests/snapshots/codex_tui__app__tests__navigation_reconnect__daemon_command_center_failed.snap index 0507e88faa..a10e1c5b8e 100644 --- a/codex-rs/tui/src/app/tests/snapshots/codex_tui__app__tests__navigation_reconnect__daemon_command_center_failed.snap +++ b/codex-rs/tui/src/app/tests/snapshots/codex_tui__app__tests__navigation_reconnect__daemon_command_center_failed.snap @@ -9,9 +9,9 @@ expression: "render_bottom_popup(&app.chat_widget, 100)" Tasks │ /tmp/project 2 │ Selected task › ● Selected task │ ● Working - ○ Vanished task │ - │ Model: Unknown - │ Reasoning: Unknown + Working │ + ○ Vanished task │ Model: Unknown + Ready │ Reasoning: Unknown │ │ Project │ /tmp/project diff --git a/codex-rs/tui/src/app/tests/snapshots/codex_tui__app__tests__navigation_reconnect__daemon_command_center_reconnecting.snap b/codex-rs/tui/src/app/tests/snapshots/codex_tui__app__tests__navigation_reconnect__daemon_command_center_reconnecting.snap index b58685e2a2..abc6fa529e 100644 --- a/codex-rs/tui/src/app/tests/snapshots/codex_tui__app__tests__navigation_reconnect__daemon_command_center_reconnecting.snap +++ b/codex-rs/tui/src/app/tests/snapshots/codex_tui__app__tests__navigation_reconnect__daemon_command_center_reconnecting.snap @@ -9,9 +9,9 @@ expression: "render_bottom_popup(&app.chat_widget, 100)" Tasks │ /tmp/project 2 │ Selected task › ● Selected task │ ● Working - ○ Vanished task │ - │ Model: Unknown - │ Reasoning: Unknown + Working │ + ○ Vanished task │ Model: Unknown + Ready │ Reasoning: Unknown │ │ Project │ /tmp/project diff --git a/codex-rs/tui/src/app/tests/snapshots/codex_tui__app__tests__navigation_reconnect__daemon_command_center_vanished_rename.snap b/codex-rs/tui/src/app/tests/snapshots/codex_tui__app__tests__navigation_reconnect__daemon_command_center_vanished_rename.snap index a8997b370e..3920475b40 100644 --- a/codex-rs/tui/src/app/tests/snapshots/codex_tui__app__tests__navigation_reconnect__daemon_command_center_vanished_rename.snap +++ b/codex-rs/tui/src/app/tests/snapshots/codex_tui__app__tests__navigation_reconnect__daemon_command_center_vanished_rename.snap @@ -8,9 +8,9 @@ expression: "render_bottom_popup(&app.chat_widget, 100)" Tasks │ Task details /tmp/project 2 │ ● New task │ Selected task - › ○ Selected task │ ○ Ready - │ - │ Model: Unknown + Working │ ○ Ready + › ○ Selected task │ + Ready │ Model: Unknown │ Reasoning: Unknown │ │ Project diff --git a/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview.snap b/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview.snap index f93a708e47..28bfbe7aae 100644 --- a/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview.snap +++ b/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview.snap @@ -8,11 +8,11 @@ expression: "render_bottom_popup(&app.chat_widget,\n96).replace(&format!(\"{proj Tasks │ Task details /tmp/project 3 │ › ● Build the dashboard │ Build the dashboard - ● Repair authentication │ ● Needs input - ○ Review yesterday's changes │ - │ Model: gpt-6.2-sol - │ Reasoning: Unknown - │ + Needs input │ ● Needs input + ● Repair authentication │ + Working │ Model: gpt-6.2-sol + ○ Review yesterday's changes │ Reasoning: Unknown + Inactive │ │ Project │ /tmp/project │ diff --git a/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_attention.snap b/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_attention.snap index 73d79cf4e1..89b2ded22c 100644 --- a/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_attention.snap +++ b/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_attention.snap @@ -8,9 +8,9 @@ expression: "render_bottom_popup(&app.chat_widget,\n96).replace(&format!(\"{proj Tasks │ Task details /tmp/project 2 │ › ● Repair authentication │ Repair authentication - ○ Investigate parser │ ● Needs input - │ - │ Model: Unknown + Needs input │ ● Needs input + ○ Investigate parser │ + Inactive │ Model: Unknown │ Reasoning: Unknown │ │ Project diff --git a/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_directory_grouping.snap b/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_directory_grouping.snap index aaf7de856f..8884470d3c 100644 --- a/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_directory_grouping.snap +++ b/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_directory_grouping.snap @@ -5,23 +5,23 @@ expression: normalize_agent_center_snapshot(directory_grouping) Agent command center Group: Directory g All 7 Needs you 0 Working 0 Ready 7 Inactive 0 tab/⇧tab filter ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── - Tasks Status Updated + Tasks Status Updated /tmp/worktree-root/linked 2 - ○ Linked README Ready 2m ago - ○ Linked tree Ready 2m ago + ○ Linked README Ready 2m ago + ○ Linked tree Ready 2m ago /tmp/worktree-root/linked/shared/child 1 - ○ Linked child Ready 2m ago + ○ Linked child Ready 2m ago /tmp/worktree-root/primary 2 - › ○ Primary README Ready 2m ago - ○ Primary tree Ready 2m ago + › ○ Primary README Ready 2m ago + ○ Primary tree Ready 2m ago /tmp/worktree-root/primary/shared/child 1 - ○ Primary child Ready 2m ago + ○ Primary child Ready 2m ago /tmp/worktree-root/primary/subdir/child 1 - ○ Nested repository Ready 2m ago + ○ Nested repository Ready 2m ago diff --git a/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_last_message.snap b/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_last_message.snap index 43d6df009d..bbb9e85b06 100644 --- a/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_last_message.snap +++ b/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_last_message.snap @@ -8,9 +8,9 @@ expression: "render_bottom_popup(&app.chat_widget,\n96).replace(&format!(\"{proj Tasks │ Task details /tmp/project 2 │ ● Repair authentication │ Investigate parser - › ○ Investigate parser │ ○ Inactive - │ - │ Model: provider/provider/provider/pro… + Needs input │ ○ Inactive + › ○ Investigate parser │ + Inactive │ Model: provider/provider/provider/pro… │ Reasoning: deliberatedeliberatedelibe… │ │ Project diff --git a/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_live_activity.snap b/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_live_activity.snap index 8bb4ec1475..2089ae32e9 100644 --- a/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_live_activity.snap +++ b/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_live_activity.snap @@ -8,7 +8,7 @@ expression: "render_bottom_popup(&app.chat_widget,\n96).replace(&format!(\"{proj Tasks │ Task details /tmp/project 1 │ › ● Check startup performance │ Check startup performance - │ ● Working + Working │ ● Working │ │ Model: Unknown │ Reasoning: Unknown diff --git a/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_worktree_grouping.snap b/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_worktree_grouping.snap index c865cd2bb7..1f7ae2a390 100644 --- a/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_worktree_grouping.snap +++ b/codex-rs/tui/src/snapshots/codex_tui__app__agents_overview__tests__agents_overview_worktree_grouping.snap @@ -5,19 +5,19 @@ expression: normalize_agent_center_snapshot(project_grouping) Agent command center Group: Project g All 7 Needs you 0 Working 0 Ready 7 Inactive 0 tab/⇧tab filter ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── - Tasks Status Updated + Tasks Status Updated /tmp/worktree-root/primary 4 - › ○ Primary README Ready 2m ago - ○ Primary tree Ready 2m ago - ○ Linked README Ready 2m ago - ○ Linked tree Ready 2m ago + › ○ Primary README Ready 2m ago + ○ Primary tree Ready 2m ago + ○ Linked README Ready 2m ago + ○ Linked tree Ready 2m ago /tmp/worktree-root/primary/shared/child 2 - ○ Primary child Ready 2m ago - ○ Linked child Ready 2m ago + ○ Primary child Ready 2m ago + ○ Linked child Ready 2m ago /tmp/worktree-root/primary/subdir/child 1 - ○ Nested repository Ready 2m ago + ○ Nested repository Ready 2m ago