Repository navigation
P5 O8: the attempt-log tests cancel at the approval step, not at the hub's count (#304's flake) - #309
Merged
Merged
Conversation
…al step, not when the hub's count rises (the entry is posted before the step moves, so under load the cancel read 'checking') Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…o (reviewer-low: the same early-cancel shape) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
SSFSKIM
added a commit
that referenced
this pull request
Oct 28, 2026
…s cancel flake fixed (O8) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes a flake from #304 in
src/main/org/org-session.test.tsthat hit class 1a runs on master. The change touches tests only.The failure was in run 40740419061: "logs each attempt's start and its end, a cancel included…" expected
attempt 1: cancelled at approvaland receivedattempt 1: cancelled at checking.Cause
The test waited for the hub's pending count to rise, then cancelled straight away. But the session posts the device's entry before it moves to the approval step:
postPendingresolves, thenawait pairingFingerprint(...)runs, and only then doesstep({step: 'approval'})(org-session.ts:747-750). Under load, the cancel landed while the step still readchecking.Fix
Both cancels in that test now wait for the session's status to read the approval step, as the neighbouring test already does.
reviewer-low found the same early-cancel shape in "cancel stops the wait for approval…" (line 502). That test passed either way but did not guarantee the coverage its name promises, so it gets the same wait.
Validation Evidence
npx vitest run --project node src/main/org/org-session.test.ts: 59 passed (59).Residue
None.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)