Repository navigation
refactor(ui): retire dock controller host - #174896
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 58a49f5f5e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| desktopClientFactory: { default: () => new DesktopClient(), attribute: false }, | ||
| }, | ||
| methods: ["handleToggleRequest", "requestUpdate"], | ||
| methods: ["handleToggleRequest", "invalidate"], |
There was a problem hiding this comment.
Migrate the remaining requestUpdate caller
The bridge no longer exposes requestUpdate, but ui/src/e2e/desktop-panel-fullscreen.e2e.test.ts:311-313 still invokes that method to force a rerender after changing document.fullscreenEnabled. That scenario now throws TypeError: ...requestUpdate is not a function before checking the unavailable-fullscreen state, so the existing desktop E2E lane will fail; update that caller to use invalidate or retain an alias until all callers are migrated.
AGENTS.md reference: AGENTS.md:L50-L53
Useful? React with 👍 / 👎.
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces the dock controller host with explicit lifecycle operations and renames the surviving synchronous panel base to SolidPanelOwner. Example: A saved Browser dock is open on the right at 560px while an embedded Browser panel mounts and unmounts.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review The previous fullscreen finding is fixed, and no new actionable code defects were found in this useful maintainer-directed lifecycle cutover. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherControl UI panel owners consume saved layout preferences and panel availability, maintain synchronous geometry and open intent, and publish rendering notifications and viewport reservations. flowchart TD
A[Panel host properties] --> B[Synchronous panel owner]
C[Saved layout preferences] --> D[Dock layout factory]
B --> D
D --> E[Viewport reservations]
D --> F[Solid rendering notification]
B --> G[Explicit connection and disposal]
Technical reviewBest possible solution: Retain the explicit dock lifecycle cutover with synchronous state, existing persistence contracts, and complete caller migration. Do we have a high-confidence way to reproduce the issue? This refactor has no reported product defect to reproduce; source comparison confirms the previously reported fullscreen test failure is repaired. Is this the best way to solve the issue? The factory removes the obsolete registration layer while retaining synchronous layout decisions, saved intent, commit receipts, and explicit teardown ordering. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 58fb58883a67. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -79, Tests +2. Total -77 across 34 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 HistoryReview history (1 earlier review cycle)
Reviewed October 16, 2026, 9:19 PM ET / October 17, 2026, 01:19 UTC (Revision 2). |
|
@clawsweeper re-review The current head fixes the stale fullscreen test call found by CI. Its exact unavailable/denied case, UI typecheck, and independent repair review pass; production inputs and proof are unchanged. The PR body records the failed run and current evidence. |
|
🦞👀 Re-review progress:
|
|
Merged via squash auto-merge.
|
* refactor(ui): retire dock controller host * test(ui): use desktop panel invalidation contract
Dock layout still registered a Lit-era controller through a generic panel host even though the owning Solid views already controlled attachment and disposal. This replaces that contract with
createDockLayout(deps)and explicit connection/cleanup, removes the shared panel registry andrequestUpdatealias, and names the surviving synchronous baseSolidPanelOwner.Terminal layout restoration still precedes session startup, dock cleanup still follows session teardown, and embedded/fullscreen panels leave viewport reservations to their parent. Geometry and saved open intent remain synchronous domain state, published through each existing owner's notification. Panel tags, routes, selectors, commit receipts, and lazy boundaries stay intact. The independent terminal intent queue retains its explicit callback; it does not use the retired shared host contract.
pnpm tsgo:uipnpm ui:buildand strict performance comparisonrequestUpdate()test call toinvalidate(); UI typecheck and independent repair review passedci:fullruns every UI, browser-extension, and real-Gateway shard on the repaired headNo markup or CSS changes; the proof targets lifecycle, restoration, focus, and reservation behavior. The canonical boot-manifest generator also refreshes already-landed renamed/reachable modules; no manual manifest edits or new eager registration were added.
Touched production TS/TSX: 5,875 → 5,792 LOC (−83). Tests: 3,273 → 3,275. Controller-pattern references: 43 → 3;
createEffect7 → 7;createRenderEffect3 → 3;untrack5 → 5; native listeners 5 → 4; DOM queries 1 → 1; productionflushand owner captures remain zero. The three remaining class-pattern matches belong to existing desktop/terminal/session owners; the dock factory and shared panel base have no controller registration or host lifecycle contract.Simplify pass: removed the generic registry, obsolete lifecycle dispatch, dock host adapters, and invalidation synonym. Kept the existing synchronous domain state and DOM commit receipt because panel actions and persistence consume them directly. No replacement framework, compatibility alias, or new dependency was introduced.
The CI repair changes one test call only; production build, startup, Knip, and runtime-review inputs are unchanged, so their evidence is reused. Existing fullscreen assertions and polling are preserved.