aboutsummaryrefslogtreecommitdiff
path: root/tests/cross_area.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-07-13 03:26:03 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-07-13 03:30:13 +0300
commit5cfe5e5e730246948b0c9428ad876b6938590aad (patch)
tree53d4bbe1aff6887f63f279eed1b5e4e11e7331b7 /tests/cross_area.rs
parent7f3364a468f7dcfd8c9c84e5737fe5699f0e3a93 (diff)
feat: add configurable sidebar metadata tokens
Diffstat (limited to 'tests/cross_area.rs')
-rw-r--r--tests/cross_area.rs22
1 files changed, 13 insertions, 9 deletions
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);