mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
test(tui): annotate subagent panel literals
This commit is contained in:
@@ -426,7 +426,7 @@ async fn thread_snapshot_replay_does_not_duplicate_agent_message_history() {
|
||||
|
||||
#[tokio::test]
|
||||
async fn thread_snapshot_replay_deduplicates_agent_inbox_compatibility_items() {
|
||||
let (mut chat, mut rx, _ops) = make_chatwidget_manual(None).await;
|
||||
let (mut chat, mut rx, _ops) = make_chatwidget_manual(/*model_override*/ None).await;
|
||||
|
||||
let sender =
|
||||
ThreadId::from_string("019cbff7-558b-77d3-8653-8238ab5361ec").expect("valid thread id");
|
||||
|
||||
@@ -3619,8 +3619,8 @@ mod tests {
|
||||
latest_update_at: Instant::now(),
|
||||
}],
|
||||
}));
|
||||
let cell = SubagentStatusCell::new(state, true);
|
||||
let lines = render_lines(&cell.display_lines(120));
|
||||
let cell = SubagentStatusCell::new(state, /*animations_enabled*/ true);
|
||||
let lines = render_lines(&cell.display_lines(/*width*/ 120));
|
||||
|
||||
assert!(lines[0].contains("no subagents running"));
|
||||
assert!(lines[1].contains("[watchdog] watchdog-agent idle"));
|
||||
@@ -3641,7 +3641,7 @@ mod tests {
|
||||
latest_update_at: Instant::now(),
|
||||
}],
|
||||
}));
|
||||
let cell = SubagentStatusCell::new(state, true);
|
||||
let cell = SubagentStatusCell::new(state, /*animations_enabled*/ true);
|
||||
|
||||
assert_eq!(cell.transcript_animation_tick(), None);
|
||||
}
|
||||
@@ -3661,7 +3661,7 @@ mod tests {
|
||||
latest_update_at: Instant::now(),
|
||||
}],
|
||||
}));
|
||||
let cell = SubagentStatusCell::new(state, true);
|
||||
let cell = SubagentStatusCell::new(state, /*animations_enabled*/ true);
|
||||
|
||||
assert!(
|
||||
cell.transcript_animation_tick().is_some(),
|
||||
@@ -3687,7 +3687,7 @@ mod tests {
|
||||
latest_update_at: stale_update,
|
||||
}],
|
||||
}));
|
||||
let cell = SubagentStatusCell::new(state, true);
|
||||
let cell = SubagentStatusCell::new(state, /*animations_enabled*/ true);
|
||||
|
||||
assert_eq!(cell.transcript_animation_tick(), None);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user