Repository navigation
refactor(ui): use stores for recovery dialog presentation - #179405
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 whole-object presentation signals with shallow Solid stores in browser sign-in recovery and update confirmation. Example: A user clicks Check again while the sign-in recovery dialog remains open.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-directed refactor preserves existing recovery behavior, and no actionable introduced defect was found; CI still needs attention. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThese Control UI dialogs translate synchronous authentication and update-owner state into displayed status and actions; authorization, requests, retries, and cleanup remain with their existing owners. flowchart TD
A[Browser HTTP failures] --> B[Sign-in recovery owner]
C[Gateway update receipts] --> D[Update dialog owner]
B --> E[Shallow presentation stores]
D --> E
E --> F[Solid dialog bindings]
F --> G[Existing recovery actions]
Technical reviewBest possible solution: Retain this focused store conversion and the existing synchronous owners, record identities, and dialog lifetimes. Do we have a high-confidence way to reproduce the issue? This is a refactor rather than a reported functional bug; source inspection confirms the previous whole-object publication pattern. Is this the best way to solve the issue? The conversion is appropriately narrow: it removes browser-auth snapshot rebuilding, retains the updater's complete view builder, and uses shallow storage to preserve owner-supplied record identity. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a6be75cc9717. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +5. Total +5 across 2 files. Added test files: 0. View PR surface stats
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 21, 2026, 7:23 AM ET / 11:23 UTC. |
|
Merged via squash.
|
…79405) * refactor(ui): use stores for recovery dialog presentation * refactor(ui): simplify recovery snapshot publication
Whole-scope Solid 2 census at this PR's exact base,
93a248d1f9db. Main has since merged the plugin presentation cleanup and a plain channel-owner refactor; the census below includes them. Counts exclude synchronous domain-owner APIs and deliberate foreign-DOM adapters from presentation candidates. Arrows show only this PR's effect; other lane PRs retain their own credit.Item 6 corrects omissions in the earlier census: browser-auth recovery and update confirmation are copied presentation objects, and plugin history is a separate candidate. This PR removes the first two; focus loading remains coupled to its async migration. Five other object signal sites are intentional receipts/opaque adapters: command-palette input custody, native history, the router's exact committed receipt, generic Solid bridge values, and settings SDK props. This PR does not change their owners or the separate shell-owner, tabs, and dashboard work.
Exact production file/LOC census at this PR's base,
93a248d1f9db: 566 files; 91,604 → 91,605 LOC. App: 190 files, 31,376 → 31,377; lib excluding reactive: 345 files, 54,223 unchanged; plugins: 19 files, 3,903 unchanged; API: 12 files, 2,102 unchanged. Counted tracked.ts/.tsx, excluding tests, test-support modules (includinglib/config/config-test-harness.ts), declarations, andlib/reactive.What Problem This Solves
Browser sign-in recovery and update confirmation replaced a whole presentation object whenever a displayed field changed. Use shallow Solid stores for field-level subscriptions. Browser-auth recovery updates its three fields directly and removes a redundant snapshot builder. Update confirmation returns each complete, synchronously captured view snapshot from its store setter. Shallow storage preserves the exact run, schedule, and availability records supplied by the existing owner.
Request admission, credential freshness, target authority, cancellation, native reconnect/update handling, retries, dialog lifetimes, markup, classes, handlers, and load boundaries are unchanged.
Evidence
--maxWorkers=1pnpm tsgo:uigit diff --check6aae945bc2f83ff03c9258d8fb79711b58df284eBoth strict checks exit 1 for existing absolute startup and Chat caps. The final +43 B and +29 B over-cap deltas are within the 64 B limit; no cap or baseline changes. Startup/Chat/New JS request counts remain 8/25/20. Every locale pair remains under its cap. The original campaign ceiling is not used for admission.
Tests cover sign-in and pending/error text, native routing, credential replacement, dismissal and abort, retained reports through reconnect, status recovery, and scoped report retirement. No tests or assertions changed. Existing
STRICT_READ_UNTRACKEDwarnings originate from the unchanged stream-auto-follow identity re-read; they are recorded without claiming an additional base run. No local E2E or parity battery; the final head usesci:full.Size and scope
Two production files: 817 → 818 LOC (+1). Browser-auth recovery: 261 → 268; update confirmation: 556 → 550. Diff: 48 insertions, 47 deletions. Test LOC unchanged. Copied presentation signals 2 → 0; shallow stores 0 → 2; redundant browser-auth snapshot builders 1 → 0. Other touched-file checklist candidates remain zero; existing async/action authority and imports are unchanged.
The small growth is the field-by-field browser-auth draft update. The snapshot builder remains the single representation of update-confirmation state; returning its complete captured value avoids another assignment wrapper. No dependencies, helpers, state owners, or guards are added. There is no visual change.
Previous inherited-failure attribution is withdrawn: both exact UI/Gateway cases pass scheduled main run 39592709539. The replacement head uses fresh full CI; no old failure evidence is used for landing. Canonical async/action recipes are still absent from fetched main, so this PR completes only the presentation-state representation change.