mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
Keep task status visible and fix paging in the agent command center (#63145)
## Why Narrow task lists can hide status, and paging by a fixed number of rows can skip tasks when group headings and detail rows take up viewport space. ## What changed Show status and any branch beneath the task title in narrow lists when there is room for a second row. In wider lists, size the Status and Updated columns to their contents within their existing limits, leaving more room for titles when the metadata is short. Base Page Up and Page Down on how many selectable entries fit in the current viewport. Keep the selected task's detail row in view when space allows, and update the scroll position even when another page key arrives before the next render. ## Testing Cover paging through dense and single-task groups in wide and narrow layouts, consecutive page keys before redraw, and restoration of the first group heading when paging back to the top. GitOrigin-RevId: 9e1be32338b5131d3be6b352c9ce2afbbbc227cc
This commit is contained in:
@@ -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<usize>) {
|
||||
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<TaskListRow> {
|
||||
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::<Vec<_>>();
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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::<Vec<_>>();
|
||||
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::<Vec<_>>();
|
||||
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;
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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,
|
||||
|
||||
+3
-3
@@ -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”?
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
+1
-1
@@ -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 "
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+9
-9
@@ -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 │
|
||||
│
|
||||
│
|
||||
│
|
||||
|
||||
+11
-11
@@ -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
|
||||
|
||||
|
||||
+7
-7
@@ -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
|
||||
|
||||
+20
-20
@@ -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
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ expression: rendered
|
||||
Tasks
|
||||
/tmp/project 1
|
||||
› ○ Retained task
|
||||
|
||||
Ready
|
||||
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -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…
|
||||
|
||||
|
||||
+2
-3
@@ -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
|
||||
|
||||
|
||||
+1
-2
@@ -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)
|
||||
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ expression: "screen(&view, 40, 12)"
|
||||
Tasks
|
||||
/tmp/project 1 of 3
|
||||
› ○ Unloaded task
|
||||
|
||||
Inactive
|
||||
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ Narrow Command Center
|
||||
Tasks
|
||||
Pinned 1
|
||||
› ○ Investigate retry again
|
||||
|
||||
Ready · retry-fix
|
||||
|
||||
|
||||
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
+3
-3
@@ -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] "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
|
||||
+3
-3
@@ -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] "
|
||||
" "
|
||||
" "
|
||||
" "
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
+5
-5
@@ -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
|
||||
│
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
+8
-8
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+8
-8
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user