fix(tui): annotate subagent panel test literals

This commit is contained in:
Friel
2026-03-28 19:24:31 -07:00
parent 0b72153645
commit b8be51fe7c
2 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -7464,7 +7464,7 @@ mod tests {
app.subagents.set_root_thread(root_thread_id);
let mut info = SubagentInfo::new(
1,
/*ordinal*/ 1,
"watchdog-agent".to_string(),
"watchdog idle".to_string(),
CollabAgentSpawnMode::Watchdog,
+10 -4
View File
@@ -2437,7 +2437,7 @@ fn status_line_text(chat: &ChatWidget) -> Option<String> {
}
async fn subagent_panel_is_not_flushed_into_transcript_history() {
let (mut chat, mut rx, _op_rx) = make_chatwidget_manual(None).await;
let (mut chat, mut rx, _op_rx) = make_chatwidget_manual(/*model_override*/ None).await;
let state = Arc::new(StdMutex::new(SubagentPanelState {
started_at: Instant::now(),
@@ -2452,7 +2452,10 @@ async fn subagent_panel_is_not_flushed_into_transcript_history() {
latest_update_at: Instant::now(),
}],
}));
chat.on_subagent_panel_updated(Arc::new(SubagentStatusCell::new(Arc::clone(&state), true)));
chat.on_subagent_panel_updated(Arc::new(SubagentStatusCell::new(
Arc::clone(&state),
/*animations_enabled*/ true,
)));
chat.add_to_history(history_cell::new_error_event("follow-up cell".to_string()));
@@ -2475,7 +2478,7 @@ async fn subagent_panel_is_not_flushed_into_transcript_history() {
#[tokio::test]
async fn subagent_panel_mounts_while_placeholder_active_cell_exists_snapshot() {
let (mut chat, _rx, _op_rx) = make_chatwidget_manual(None).await;
let (mut chat, _rx, _op_rx) = make_chatwidget_manual(/*model_override*/ None).await;
chat.active_cell = Some(ChatWidget::placeholder_session_header_cell(
chat.config_ref(),
));
@@ -2498,7 +2501,10 @@ async fn subagent_panel_mounts_while_placeholder_active_cell_exists_snapshot() {
latest_update_at: Instant::now(),
}],
}));
chat.on_subagent_panel_updated(Arc::new(SubagentStatusCell::new(Arc::clone(&state), false)));
chat.on_subagent_panel_updated(Arc::new(SubagentStatusCell::new(
Arc::clone(&state),
/*animations_enabled*/ false,
)));
assert!(
chat.active_cell