Repository navigation
ShareSheet.test: wait for the sheet to draw each reply (a unit 4/4 render race) - #536
Merged
Merged
Conversation
… it queries the reply's controls (a render race that reddened unit 4/4) Seven sites queried synchronously right after fake.reply resolved, before React committed the read. Each now awaits the sheet's General access heading, a findBy, or a waitFor on the asserted state, as the sibling cases already did. Test-only. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Codex Review Summary: ✅ CompletedThis 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. |
Owner
Author
|
Gate run 42475987888 ( Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook) |
SSFSKIM
added a commit
that referenced
this pull request
Nov 8, 2026
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.
Test-only. This fixes a render race in
src/renderer/src/sessions/share/ShareSheet.test.tsxthat has been turning unit 4/4 red on gates whose trees don't touch the renderer.The failure. The case "reads 'Changed elsewhere: reload' when the revision moved…" fails with
Unable to find an accessible element with the role "radio" and name /^Org can talk/(:240→level:49). It failed in run 42474779132 (unit 4/4, O8 M4b's merged head) and in run 42474874392 (the architect's composed gate for #533/#535). Locally it passes 15/15 every time.The cause. After
await fake.reply('org.policy.get', …)resolves, the case queried the reply's controls with a synchronousgetByRole/getByText, before React had committed the read. On a loaded runner the render can lose that race. The sibling cases already waited for the sheet's General access heading first.The fix. Each of the seven sites that queried right after a
fake.replynow waits, in one of three ways:findByText(SHARE.general)), before clicking a level;findBy, for refusal and unavailable lines;waitForon the asserted state, after a reload: the level that should be checked, or the results region that should be gone.No product code changes.
Whose miss. The test came from O8 M6b's Task 3 (#522). The bare query passed every M6b gate, and passed locally under load, so the review didn't see it.
Validation Evidence
npx vitest run --project renderer src/renderer/src/sessions/share/ShareSheet.test.tsx: 15 passed, three runs in a row. eslint is clean on the file.scripts/ci-gate.sh <wt> --gates static,unit --class1a linux --runner macos --peer none: run 42475987888 (result to follow in a comment)Residue
None.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)