Skip to content

ShareSheet.test: wait for the sheet to draw each reply (a unit 4/4 render race) - #536

Merged
SSFSKIM merged 1 commit into
masterfrom
fix/sharesheet-render-race
Nov 8, 2026
Merged

SSFSKIM merged 1 commit into
masterfrom
fix/sharesheet-render-race

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Test-only. This fixes a render race in src/renderer/src/sessions/share/ShareSheet.test.tsx that 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 synchronous getByRole/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.reply now waits, in one of three ways:

  • for the sheet's General access heading (findByText(SHARE.general)), before clicking a level;
  • with a findBy, for refusal and unavailable lines;
  • with waitFor on 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)

… 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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T11:31:08.729546Z 9769cdd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM

SSFSKIM commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Gate run 42475987888 (--gates static,unit --class1a linux --runner macos --peer none) passed on its first attempt: plan, static, and unit 1/4 to 4/4.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)

@SSFSKIM
SSFSKIM merged commit cda04be into master Nov 8, 2026
@SSFSKIM
SSFSKIM deleted the fix/sharesheet-render-race branch November 8, 2026 11:43
SSFSKIM added a commit that referenced this pull request Nov 8, 2026
), #535, #536 and #524's channel reach

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)
SSFSKIM added a commit that referenced this pull request Nov 8, 2026
…notification a row carries and the engine's queued notices; #535, #536 and #537 noted, #533 closed; the fake machine's queue-record row

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant