Skip to content

Commit b2f42e1

Browse files
saphidclaude
andcommitted
test(server): queued-cancel fixture expects the active run as latest
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent f93ea62 commit b2f42e1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • apps/server/src/orchestration-v2/testkit/fixtures/queued_cancelled_while_active

‎apps/server/src/orchestration-v2/testkit/fixtures/queued_cancelled_while_active/codex_output.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ export function assertQueuedCancelledWhileActiveOutput(
3434
.get(ACTIVE_RUN_SHELL_SNAPSHOT_KEY)
3535
?.threads.find((thread) => thread.id === projection.thread.id);
3636
assert.isDefined(capturedShell);
37-
assert.equal(capturedShell.latestRunId, cancelledRun.id);
38-
assert.equal(capturedShell.status, "cancelled");
37+
// The cancelled queued run never started, so the active run presents as the latest.
38+
assert.equal(capturedShell.latestRunId, activeRun.id);
39+
assert.equal(capturedShell.status, "running");
3940
assert.equal(capturedShell.activeRunId, activeRun.id);
4041
assert.equal(capturedShell.activityRunStatus, "running");
4142
assert.deepEqual(

0 commit comments

Comments
 (0)