diff --git a/crates/colibri-glasspane-tui/src/main.rs b/crates/colibri-glasspane-tui/src/main.rs index 87ddb77..bc5b8ec 100644 --- a/crates/colibri-glasspane-tui/src/main.rs +++ b/crates/colibri-glasspane-tui/src/main.rs @@ -1175,29 +1175,49 @@ mod tests { "2026-06-25T12:00:00Z", vec![ colibri_glasspane::Pane { - id: "pane-0".into(), agent: "zot".into(), - state: AgentState::Working, session_id: None, - last_event_at: None, cwd: None, stalled: false, + id: "pane-0".into(), + agent: "zot".into(), + state: AgentState::Working, + session_id: None, + last_event_at: None, + cwd: None, + stalled: false, }, colibri_glasspane::Pane { - id: "pane-1".into(), agent: "zot".into(), - state: AgentState::Error, session_id: None, - last_event_at: None, cwd: None, stalled: false, + id: "pane-1".into(), + agent: "zot".into(), + state: AgentState::Error, + session_id: None, + last_event_at: None, + cwd: None, + stalled: false, }, colibri_glasspane::Pane { - id: "pane-2".into(), agent: "zot".into(), - state: AgentState::Working, session_id: None, - last_event_at: None, cwd: None, stalled: false, + id: "pane-2".into(), + agent: "zot".into(), + state: AgentState::Working, + session_id: None, + last_event_at: None, + cwd: None, + stalled: false, }, colibri_glasspane::Pane { - id: "pane-3".into(), agent: "zot".into(), - state: AgentState::Working, session_id: None, - last_event_at: None, cwd: None, stalled: true, + id: "pane-3".into(), + agent: "zot".into(), + state: AgentState::Working, + session_id: None, + last_event_at: None, + cwd: None, + stalled: true, }, colibri_glasspane::Pane { - id: "pane-4".into(), agent: "zot".into(), - state: AgentState::Working, session_id: None, - last_event_at: None, cwd: None, stalled: false, + id: "pane-4".into(), + agent: "zot".into(), + state: AgentState::Working, + session_id: None, + last_event_at: None, + cwd: None, + stalled: false, }, ], ); @@ -1226,29 +1246,49 @@ mod tests { "2026-06-25T12:00:00Z", vec![ colibri_glasspane::Pane { - id: "pane-0".into(), agent: "zot".into(), - state: AgentState::Working, session_id: None, - last_event_at: None, cwd: None, stalled: false, + id: "pane-0".into(), + agent: "zot".into(), + state: AgentState::Working, + session_id: None, + last_event_at: None, + cwd: None, + stalled: false, }, colibri_glasspane::Pane { - id: "pane-1".into(), agent: "zot".into(), - state: AgentState::Error, session_id: None, - last_event_at: None, cwd: None, stalled: false, + id: "pane-1".into(), + agent: "zot".into(), + state: AgentState::Error, + session_id: None, + last_event_at: None, + cwd: None, + stalled: false, }, colibri_glasspane::Pane { - id: "pane-2".into(), agent: "zot".into(), - state: AgentState::Working, session_id: None, - last_event_at: None, cwd: None, stalled: false, + id: "pane-2".into(), + agent: "zot".into(), + state: AgentState::Working, + session_id: None, + last_event_at: None, + cwd: None, + stalled: false, }, colibri_glasspane::Pane { - id: "pane-3".into(), agent: "zot".into(), - state: AgentState::Working, session_id: None, - last_event_at: None, cwd: None, stalled: true, + id: "pane-3".into(), + agent: "zot".into(), + state: AgentState::Working, + session_id: None, + last_event_at: None, + cwd: None, + stalled: true, }, colibri_glasspane::Pane { - id: "pane-4".into(), agent: "zot".into(), - state: AgentState::Working, session_id: None, - last_event_at: None, cwd: None, stalled: false, + id: "pane-4".into(), + agent: "zot".into(), + state: AgentState::Working, + session_id: None, + last_event_at: None, + cwd: None, + stalled: false, }, ], ); @@ -1279,16 +1319,22 @@ mod tests { "2026-06-25T12:00:00Z", vec![ colibri_glasspane::Pane { - id: "pane-s1-ok".into(), agent: "zot".into(), + id: "pane-s1-ok".into(), + agent: "zot".into(), state: AgentState::Working, session_id: Some("s1".into()), - last_event_at: None, cwd: None, stalled: false, + last_event_at: None, + cwd: None, + stalled: false, }, colibri_glasspane::Pane { - id: "pane-s2-err".into(), agent: "zot".into(), + id: "pane-s2-err".into(), + agent: "zot".into(), state: AgentState::Error, session_id: Some("s2".into()), - last_event_at: None, cwd: None, stalled: false, + last_event_at: None, + cwd: None, + stalled: false, }, ], ); @@ -1319,9 +1365,13 @@ mod tests { "osa", "2026-06-25T12:00:00Z", vec![colibri_glasspane::Pane { - id: "pane-ok".into(), agent: "zot".into(), - state: AgentState::Working, session_id: None, - last_event_at: None, cwd: None, stalled: false, + id: "pane-ok".into(), + agent: "zot".into(), + state: AgentState::Working, + session_id: None, + last_event_at: None, + cwd: None, + stalled: false, }], ); let mut app = App::new(PathBuf::from("/tmp/nonexistent.sock")); @@ -1334,6 +1384,9 @@ mod tests { // Status message should be set. assert!(app.status_msg.is_some()); let msg = &app.status_msg.as_ref().unwrap().0; - assert!(msg.contains("no attention"), "expected 'no attention' in: {msg}"); + assert!( + msg.contains("no attention"), + "expected 'no attention' in: {msg}" + ); } }