Repository navigation
refactor(ui): project the plugin page owner - #174125
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 plugin-page revision plumbing with one owner projection and direct Gateway and plugin subscriptions. Example: The Logbook tab remains open while the Gateway disconnects and reconnects.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored refactor follows the existing projection contract, preserves synchronous lifecycle decisions, and has no actionable correctness findings; the failed PR-context check needs separate adjudication. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI plugin page consumes route identity, Gateway snapshots, and plugin registrations, then renders native contributions, bundled views, or authenticated sandboxed frames. flowchart TD
A[Route props] --> C[Plugin page owner]
B[Gateway and plugin notifications] --> C
C --> D[Owner projection]
D --> E[Solid plugin page]
C --> F[Frame grants and retirement]
E --> G[Bundled views and plugin frames]
Technical reviewBest possible solution: Keep the standard owner projection while preserving synchronous authentication, cancellation, and retirement decisions in the existing owner. Do we have a high-confidence way to reproduce the issue? This PR addresses internal invalidation complexity rather than a reported product failure; no target code or tests were executed during this read-only review. Is this the best way to solve the issue? The change uses the existing revision-based projection contract and removes redundant adapters without creating another authority or changing lazy rendering boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3b2eba7836a3. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -7. Total -7 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 16, 2026, 7:06 AM ET / 11:06 UTC. |
|
Merged via squash.
|
What Problem This Solves
The plugin page kept a manual revision signal beside two reactive source adapters. Replace that invalidation plumbing with the standard owner projection and subscribe directly to ordered Gateway/plugin notifications. Authentication grants, cancellation, and frame retirement remain synchronous in the plain TypeScript
PluginPageOwner.User Impact
No user-visible behavior changes. The lazy route and bundled-view imports, host tags, selectors, rendering, and external-frame security checks are unchanged. The remaining effect tracks route identity; the untracked callback deliberately samples route props during owner notifications. Native document/window listeners retain their paired disposal.
Evidence
pnpm tsgo:uipassedThe bundled Logbook reconnect test emits six strict-untracked-read warnings from its unchanged effect; all assertions pass. That effect reads
model.statein its apply callback and is a separate cleanup candidate.Touched production files: 778 → 771 LOC (−7). Controller-pattern refs 0 → 0; effects 1 → 1;
untrack1 → 1;addEventListener4 → 4; self-DOM queries 0 → 0. One standard projection replaces three local invalidation paths. Full cross-page proof is requested withci:full.