Repository navigation
fix(ui): present device pairing retries with Solid actions - #180560
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 shows progress during device pairing retries and retires pending presentation when the dialog closes. Example: Click Reload after a setup-status request fails with “Synthetic status failure.”
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a verified pairing retry presentation bug while preserving the existing request owner; no actionable introduced defects found, and exact-head CI remains pending. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe shell forwards pairing actions to its overlay owner, which admits Gateway requests and publishes lifecycle snapshots consumed by the lazy Solid pairing dialog. flowchart LR
User[Pairing dialog actions] --> Shell[Application shell]
Shell --> Owner[Overlay pairing owner]
Owner --> Gateway[Gateway pairing RPC]
Gateway --> Owner
Owner --> Snapshot[Lifecycle snapshot]
Snapshot --> View[Solid action presentation]
Technical reviewBest possible solution: Use the existing reconciling lifecycle and owner promise with a Solid presentation action that retires on close or lifecycle replacement. Do we have a high-confidence way to reproduce the issue? Current-main source leaves the lifecycle in status error during its awaited retry, and the inspected before screenshot shows the retained failure; no target code was executed during this review. Is this the best way to solve the issue? The change fixes admission feedback at the existing owner and uses Solid only for temporary presentation, preserving request deduplication, late-response rejection, and lazy loading. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7fb4e046d7bf. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +54, Tests +125. Total +179 across 4 files. 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, 7:44 AM ET / 11:44 UTC. |
What Problem This Solves
Fixes: the pairing dialog keeps showing its previous failure while Reload checks whether pairing completed.
User Impact
Reload now shows progress and keeps repeated actions disabled. Closing and reopening the dialog stays responsive while the old request finishes. Pairing expiry, access selection, completion, and recovery retain their existing behavior.
Why This Change Was Made
The pairing owner now enters its existing reconciling state before retrying status. A native Solid action presents the admitted refresh with an optimistic process flag; it retires when the dialog closes or the owner changes its lifecycle. The owner continues to admit requests, reject stale responses, and record their outcomes.
The only shell coupling is that
onRefreshreturns the existing owner promise instead of discarding it. Its name and arguments are unchanged. The pairing module stays lazy; no receipt registry, duplicate request, or new dependency is introduced.Evidence
Base:
5b2f0ac681cb9048a9dc7fea4a1db44d5139f44d. Head:c0a03c401fff2744fde26a48745529dd9b3768af. The after build was started before commit while waiting on artifact preparation; all four source hashes were verified identical to the committed head.The lazy pairing boundary is preserved. Importing Solid’s native
untilretirement primitive adds 560 raw bytes to the shared runtime; measured startup gzip grows 215 B and remains below budget.The capture uses Playwright under Node because it drives a real browser. Unit tests use the pinned Bun runtime. Initial capture attempts exposed a missing Vitest host, capture before build promotion completed, and insufficient fixture request synchronization; retained attempts distinguish those setup failures from product evidence. Broad proof runs in
ci:fullPR CI.Solid 2 checklist and size
Counts cover the three touched production modules; tests are excluded.
onCleanup/onSettledregistrationscreateComponentcallsThe synchronous owner lifecycle and request token remain authoritative.
until()reads the staged lifecycle/open values to release presentation promptly; its observer is aborted after settlement. Noaffectsorrefreshis needed because the owner already publishes the accepted result and the view has no cached async read to invalidate.Production LOC: 1,277 → 1,331 (+54). Test LOC: 109 → 234 (+125). Growth implements the action, explicit rejection handling, and owner-backed behavioral proof.
Before / after
The images below show Generate pending, the preserved status error, and the corrected held Reload state, with each before image followed by its after image.