From 1f799845c084e76b782c968db9e99e35536ff407 Mon Sep 17 00:00:00 2001 From: "nekomimi.pet" Date: Sun, 25 Oct 2026 19:30:29 -0400 Subject: [PATCH] test: a cancellation racing a queued input that joined the running turn accepts the documented shared_running outcome --- cli/test/e2e/prompt_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/test/e2e/prompt_test.go b/cli/test/e2e/prompt_test.go index 93e97642..bbb7b1e0 100644 --- a/cli/test/e2e/prompt_test.go +++ b/cli/test/e2e/prompt_test.go @@ -344,8 +344,10 @@ func TestSubmissionCancellationRacesStartAndCompletion(t *testing.T) { if cancelled.err != nil { t.Fatal(cancelled.err) } + // The target may have joined the first turn's next request before the + // cancellation lands; that turn is shared, so it is left running. switch cancelled.outcome { - case "cancelled_queued", "interrupt_requested", "not_pending": + case "cancelled_queued", "interrupt_requested", "shared_running", "not_pending": default: t.Fatalf("unexpected racing cancellation outcome %q", cancelled.outcome) } -- knotmirror 0.0.1