Repository navigation
P5 O8: the org session logs each attempt's start (number, pid) and end; the double sign-in's cause recorded as unknown - #304
Merged
Merged
Conversation
…process's pid) and its end, a cancel or a fence included; a StrictMode test pins one org.register per Sign in Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…uit), before the fence that would leave it silent Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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
…ble (cause unknown) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 28, 2026
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 28, 2026
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 28, 2026
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.
P5 O8: at M1's staging sitting (P5 DL 116) a single Sign in made two browser trips and two
POSTs to the hub. No end was logged between them, and both ran in one main process (pid 60479,electron-vite devat 36cced3, no HMR line). This PR is the diagnostic. It does not fix a cause, because the cause is still unknown.What it changes
src/main/org/org-session.ts: each attempt (register, sign in, re-anchor) logs its start with an attempt number and the process pid, for example[org] attempt 1: register (org …), pid 60479. It also logs its end exactly once, whichever way it ends:donerefused <code>endedfencedcancelled at <step>, where the step is the registration step it had reached, or sign-in or re-anchorended by sign-outended by quitThe end of an earlier attempt is guarded by its number, so a late settle cannot log against a newer attempt. With this, two browser trips in a log always show why there were two.
src/main/org/org-session.test.ts, three tests:close(), which logsended by quitat once, with no later line once its work settles. This one came from a reviewer-medium P2 and was written test-first.src/renderer/src/settings-tab/OrgSection.test.tsx: the section can be rendered under<StrictMode>. A new test pins that one Sign in sends exactly oneorg.registerand noorg.cancel.Cause: unknown
registerwhile an attempt waits is refusedbusy, andattemptis non-null all through approval. Before this PR, onlycancel(),signOut()andclose()could end an attempt without logging it.org.registerare the Sign in click and the Enter handler. StrictMode's double mount does not reproduce a second call (the new test).pairhad left the code on the clipboard. The owner doesn't remember what the Org section showed.A staging re-check after this lands closes the question either way. If the new log lines show
cancelled at …between the trips, it was a Cancel, which the coordinator does not count as a defect. If they show two pids, it was a second dev process. Anything else is still open.Validation Evidence
npx vitest run --project node src/main/org/org-session.test.ts: 59 passed (59). Before theclose()fix, the new quit test failed (1 failed | 58 skipped under-t "at quit").npx vitest run --project renderer src/renderer/src/settings-tab/OrgSection.test.tsx: 14 passed (14).close()did not log the active attempt's end. Fixed in 87d6288 with the test above.Residue
None.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)