Repository navigation
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 moves shell commit acknowledgement into the rendered Solid lifecycle and removes the detached scheduler token. Example: Opening the mobile navigation drawer waits for committed DOM before moving keyboard focus.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this is a focused, maintainer-directed lifecycle simplification with no concrete introduced defect found; current main still uses the detached scheduler. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI shell projects synchronous application state into Solid-rendered navigation and routes; commit receipts let focus and lazy actions wait for DOM updates. flowchart TD
A[Application state changes] --> B[Shell presentation owner]
B --> C[Shell revision]
C --> D[Rendered shell snapshot]
D --> E[Owned settled callback]
E --> F[Commit receipt and chrome updates]
F --> G[Focus and lazy action consumers]
Technical reviewBest possible solution: Use the rendered shell lifetime to acknowledge commits while retaining synchronous state ownership, coalesced promises, same-drain ordering, and false settlement on disposal. Do we have a high-confidence way to reproduce the issue? This refactor establishes no new failing user scenario; source inspection confirms the detached scheduler and the existing caller-disposal contract it replaces. Is this the best way to solve the issue? The change is a small complete cutover: the existing renderer owns acknowledgement, the synchronous owner retains completion state, and the replaced scheduling path is removed. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ec437b3c9580. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -9, Tests +2, Other -1. Total -8 across 4 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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, 9:08 AM ET / 13:08 UTC. |
Whole-scope Solid 2 census at base
93a248d1f9db. Counts are before → after; unchanged values appear once. Presentation candidates exclude synchronous domain-owner authority and foreign-DOM adapters.Production census: 566 files; 91,604 → 91,595 LOC. App: 31,376 → 31,367; lib: 54,223; plugins: 3,903; API: 2,102. Counted tracked production TS/TSX, excluding declarations, tests/test support, and
lib/reactive.What Problem This Solves
The synchronous shell owner scheduled DOM completion through an unowned Solid callback and kept a separate pending-commit token. Make the rendered shell own that callback instead: a renderless keyed branch registers
onSettledfor each shell view snapshot, outside the route-readiness boundary. The synchronous owner retains its coalesced completion promise; mount/resume invalidate, completed rendering settles it, and unmount settles outstanding work as false.This removes the detached scheduler and its token without a microtask hop. Commit callbacks stay in the same Solid drain, preserving focus restoration ordering. No visible markup, selectors, routes, classes, lazy imports, or domain authority changes. The narrow
commitRenderedPresentation()host contract is inline so this PR does not edit the separately claimed shell-view-state interface.Evidence
pnpm tsgo:ui(tsrs)pnpm test ui/src/app/app-host.test.ts --maxWorkers=1runWithOwnerallowance removedgit diff --checkThe existing disposed-caller regression now mounts the real shell with its runtime. It keeps the same assertions for coalesced promise identity, completion after caller disposal, and false settlement on unmount. No assertion was removed. No local E2E or parity battery runs;
ci:fullsupplies all UI and Gateway shards. The local worker-start timeout is a setup gap, not a product pass or test assertion failure.Touched production LOC: 675 → 666 (−9) across two files; test LOC 1,078 → 1,080 (+2). Pending scheduler tokens 1 → 0 and detached owner calls 1 → 0. Other checklist candidates in these two production files remain zero; native-history state retains its raw external-owner snapshot. No new effects, state owners, or dependencies were added.
Remaining scope
The strict checker exits 1 for existing absolute startup and Chat caps on both base and head. Startup growth is 13 B, below the 64 B limit, while both route payloads shrink. No budget or baseline is increased. The staged baseline and its final published metrics are byte-for-byte identical.