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 changes before merge. What this changesThis PR replaces captured Solid owners and a nested root with native component lifecycles, direct owner subscriptions, and deferred shell settlement. Example: Automation first reads window.openclawControlUi after login is mounted.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this maintainer-authored refactor open; its direction is sound, but deferred shell settlement breaks an existing reload-intent test and the exact-head UI check. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherThe Control UI shell consumes synchronous application, router, theme, and translation facts and publishes rendered shell state and automation readiness. flowchart TD
A[Application owners] --> B[ShellOwner subscriptions]
B --> C[Solid shell presentation]
C --> D[Deferred commit settlement]
E[Automation first read] --> F[Lazy readiness component]
D --> F
F --> G[Window readiness hook]
Technical reviewBest possible solution: Keep the native lifecycle refactor and update the reload-intent test to await shell settlement while preserving its replacement and retirement assertions. Do we have a high-confidence way to reproduce the issue? Exact-head CI records the reload-intent assertion failure, and source tracing explains why the new native microtask runs after the test's synchronous flush; no target code was executed during this review. Is this the best way to solve the issue? The refactor uses existing owners and removes redundant ownership machinery; its smallest complete repair is to synchronize the affected test with the existing settlement contract. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4cfa119396d4. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +16, Tests +6, Other -5. Total +17 across 8 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, 6:56 AM ET / 10:56 UTC. |
|
Superseded by #179375, merged as f4f4dec. Current main removes app-host/app-root owner capture, exposes the i18n subscription, and creates readiness inside the application provider's owned branch. I checked those source paths and the removed owner-API allowances. This PR's alternate readiness component has no remaining migration work to contribute, so I am closing this duplicate rather than landing a second readiness design. |
Whole-scope Solid 2 census, base
e3fbdbc7→ this head. Counts are before → after; unchanged values appear once. “Candidates” means local presentation work, excluding synchronous domain-owner APIs and deliberate foreign-DOM adapters.Whole-scope production LOC: 91,586 → 91,601 across 566 files (production TypeScript, excluding tests/support/generated declarations). This PR removes five of six app owner API calls: one
createRoot, twogetOwner, and tworunWithOwner. The existing shell-commitrunWithOwnerremains until commit admission moves into the rendered shell component. The existing readiness effect remains 1 → 1; no guarded call count increases. Tab/dashboard refactors are separate PRs. Item 6 incorporates the corrected later audit: browser-auth recovery, update confirmation and plugin history were omitted from the initial count. The two dialogs are migrated separately in #179405; this PR does not alter those slots.What Problem This Solves
The shell created an extra Solid root just to subscribe its synchronous owner, and the lazy automation observer restored a captured owner after import.
Why This Change Was Made
Keep
ShellOwnerplain and synchronous: subscribe directly to theme/catalog changes and filtered router facts, with teardown in its existing disconnect path. Mount the renderless readiness observer as a native lazy component only when automation first reads the hook. Its settled lifecycle connects and disconnects the observer; initial root commitment follows connection because connection clears the prior receipt. Shell settlement retains its existing same-flush admission outside the invalidating caller's lifetime; deferring it to a microtask broke focus restoration and was removed.The only coupled interface is
subscribeI18ninlib/reactive/i18n.ts, exposing the existing translation projection's subscription so lazy English catalog notifications remain included. No new owner or projection is added.User Impact
Behavior is preserved: automation stays lazy, catches up on first read, and keeps login mounted. Terminal readiness retires on detach and recovers on reattach. Shell
updateCompletesurvives caller disposal and resolves false when its shell is retired. No routes, tags, markup, CSS or E2E selectors change.Evidence
pnpm tsgo:ui(tsrs)--pruneBoth strict checks retain the pre-existing absolute startup and Chat cap failures. The same-machine comparison adds 27 B and 8 B respectively, satisfying the current “no growth beyond 64 B while over budget” rule. All 21 locale pairs remain under their cap. No budget or baseline is raised.
The first full targeted selection passed 45 tests and exposed one real warm-boot regression: the observer's effect could commit before settled connection, then connection cleared that root receipt. The fix commits the initial root after connecting; the exact failing test now passes. An initial guard check rejected an unnecessary
.tsxrename; the renderless module stays at its original.tspath, with no transferred/raised allowance and no E2E path change. One unused test import was removed by scoped lint. These are corrected failures, not inherited exceptions.Production LOC: 1,504 → 1,520 (+16) across the four production files, including the one-line coupled interface; test LOC: 240 → 246 (+6). The typed observer props and explicit component lifetime account for growth; the nested owner root and capture/restore calls disappear. No new tests duplicate existing behavior: the terminal test now exercises actual component mount, invalidation and teardown instead of manual owner commits.
Remaining scope and permitted exceptions
async-and-actions.mdis still absent on the fetched main; refactor(ui): add Solid async recipes and cron reference #179123 remains the prerequisite for items 3–4. App focus loading and update confirmation remain candidates, along with MCP discovery, board-browser requests and plugin history/action invocation.createComponentcalls. One non-island app owner API remains in shell commit admission. Its existing same-flush scheduling preserves sidebar focus; a separate component-owned commit cutover will retire it.Full PR CI exposed two scheduler regressions that pass on scheduled main:
preserves reload intent on disconnect but clears it on context replacementandreorders plugin sidebar tabs and keeps the order after reload. Both came from the added microtask boundary. The repair restores the existing synchronousonSettledadmission and its original shrink-only allowance. The lifecycle case and disposed-caller case pass with their original assertions; focus restoration requires the next full PR CI run. The separate Markdown-table and Telegram automation failures also fail by exact name on scheduled main run 39585413125.