Repository navigation
test(ui): stabilize mobile sharing refresh barrier - #180498
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces an ordinal request barrier with phase-based synchronization in the mobile session-sharing test. Example: Header hydration overlaps a visibility change from draft to shared.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it is a focused, maintainer-directed test repair that preserves useful coverage, with no actionable correctness findings. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe mounted test drives the real mobile sharing adapter and pane owner against a fixture Gateway client, then checks busy controls, successor readiness, and suppression of retired navigation. flowchart LR
A[Mobile access click] --> B[Sharing adapter]
B --> C[Pane mutation owner]
C --> D[Fixture Gateway client]
D --> E[Held evidence refresh]
E --> F[Busy and successor assertions]
Technical reviewBest possible solution: Keep the existing mounted regression with phase-based refresh control and its original busy-state and retirement assertions. Do we have a high-confidence way to reproduce the issue? Source confirms that header hydration and mutation refresh share the evidence-read path; the PR reports a forced old-fixture failure and six passing repaired cases, which were not rerun during this read-only review. Is this the best way to solve the issue? Yes: the invariant is that unrelated hydration cannot release the mutation barrier, and the patch enforces it inside the existing fixture without production seams or weaker assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 65120312b5cf. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +12. Total +12 across 1 file. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 22, 2026, 6:08 AM ET / 10:08 UTC. |
|
Merged via squash auto-merge.
|
Backport Peter Steinberger's canonical fixture repair from cfba9b9 (#180498), retaining all three diagnostic assertion labels. Use selected-session hydration and hold all post-write evidence reads instead of relying on the second request. Production owners are unchanged. Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: RomneyDa <[email protected]>
Problem
The mobile sharing test used the second permission-evidence request as the visibility mutation's refresh barrier. Header hydration can issue that request independently, so the test sometimes allowed the mutation refresh to finish before checking that sharing remained busy.
Change
Install the evidence mock before enabling sharing access, hydrate through the same selected-session owner as the header, and wait for that initial read to finish. Hold every evidence read after the visibility write is released until the same-key successor arrives. Keep the existing busy, applied-callback, successor, and retired-read assertions, plus an explicit delayed header synchronization while the write is pending.
Production code and rendered UI are unchanged. No bundle/build or screenshot proof is needed for this test-only fixture repair.
Proof
pnpm tsgo:uigit diff --checkexpected false to be true), 3.68 s wall timeci:fullThe forced diagnostic was temporary and is not committed. It awaited the mutation's completion to establish that the old barrier no longer held the operation, then released the competing read for cleanup. The final test retains normal header hydration and a semantic post-write barrier; no repeats or broad local suites were run.