From 5cfe5e5e730246948b0c9428ad876b6938590aad Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Mon, 13 Jul 2026 03:26:03 +0300 Subject: feat: add configurable sidebar metadata tokens --- tests/cross_area.rs | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'tests/cross_area.rs') diff --git a/tests/cross_area.rs b/tests/cross_area.rs index 9fe71790..0ee9aa2b 100644 --- a/tests/cross_area.rs +++ b/tests/cross_area.rs @@ -836,7 +836,9 @@ fn cross_area_agent_process_survives_detach_and_reattach() { client_handshake(&mut client_b, CURRENT_PROTOCOL, 80, 24); let saw_working_on_client = wait_for_frame_matching(&mut client_b, Duration::from_secs(5), |frame| { - frame_contains_text(frame, "working") + ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"] + .iter() + .any(|symbol| frame_contains_text(frame, symbol)) }) .expect("frame decoding should succeed"); assert!( @@ -844,21 +846,23 @@ fn cross_area_agent_process_survives_detach_and_reattach() { "reattached client frame should expose persisted agent working status" ); - // Transition to idle and verify API + client surfaces both observe it. - pane_report_agent(&api_socket, &pane_id, "pi", "idle", "cross-area-test"); + // Transition to blocked and verify API + client surfaces both observe it. + // The fake process remains visibly working, so blocked is the deterministic + // higher-priority semantic transition for this cross-area projection test. + pane_report_agent(&api_socket, &pane_id, "pi", "blocked", "cross-area-test"); assert!( - wait_for_agent_status(&api_socket, &pane_id, "idle", Duration::from_secs(3)), - "pane agent status should transition to idle" + wait_for_agent_status(&api_socket, &pane_id, "blocked", Duration::from_secs(3)), + "pane agent status should transition to blocked" ); - let saw_idle_on_client = + let saw_blocked_on_client = wait_for_frame_matching(&mut client_b, Duration::from_secs(5), |frame| { - frame_contains_text(frame, "idle") + frame_contains_text(frame, "◉") }) .expect("frame decoding should succeed"); assert!( - saw_idle_on_client, - "reattached client frame should show idle status after transition" + saw_blocked_on_client, + "reattached client frame should show blocked status after transition" ); cleanup_spawned_herdr(server, base); -- cgit v1.2.3