Repository navigation
refactor(ui): scope Plugins page state to Solid owners - #174281
Conversation
Merge current main without changing the reviewed Plugins implementation. Preserve the 23-file Solid owner migration and its focused proof while refreshing the branch for native stale-head recovery.
|
🦞👀 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 Plugins page controllers with Solid-scoped factories and explicit icon-tile registration. Example: Browse Plugins and open Workboard settings at 1280×900 in dark theme.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-approved refactor completes a useful Solid ownership cutover, with no actionable patch defect found; required CI remains red. Priority: P3 Before merge
FindingsNone. Agent review detailsHow this fits togetherThe Plugins UI consumes route data, Gateway snapshots, and runtime configuration, then renders catalog, settings, consent, sign-in, and preview surfaces while existing owners authorize requests. flowchart LR
A[Route data] --> C[Solid Plugins page]
B[Gateway snapshots] --> C
C --> D[Scoped helper factories]
D --> E[Existing request and config owners]
D --> F[Catalog settings and dialogs]
F --> G[Icon tile registration]
G --> H[Existing icon cache]
Technical reviewBest possible solution: Land the complete ownership cutover once the required CI failure is resolved through the existing landing workflow. Do we have a high-confidence way to reproduce the issue? This is a refactor without a claimed user-facing bug; source inspection confirms the existing controller boundary and its replacement. Is this the best way to solve the issue? The factories remove the superseded host wiring while preserving synchronous request, configuration, consent, and cache owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f357e7cb2dc9. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -3, Tests +96. Total +93 across 23 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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, 10:19 AM ET / 14:19 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* commit 'a4c73619a5c': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…157433 * commit '2e8bfec53fc1cf06c9e438f42b027a82e04ace9a': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…/decision-onnx-v2-proof-20261016 * commit '2e8bfec53fc1cf06c9e438f42b027a82e04ace9a': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…ision-accounting-native * commit '2e8bfec53fc1cf06c9e438f42b027a82e04ace9a': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…158510 * commit '26cbd409b9753a9318a6dc09f97b2f0b4b776a09': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…esafe-decision-native * commit '26cbd409b9753a9318a6dc09f97b2f0b4b776a09': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
…/decision-tool-v2-proof-20261016 * commit '26cbd409b9753a9318a6dc09f97b2f0b4b776a09': (29 commits) test: align model and Discord fixtures with runtime owners perf(sessions): reuse startup deletion discovery (#174408) fix(gateway): attribute ephemeral connections in normal logs (#174406) test(telegram): consolidate duplicate coverage (batch d117) (#173112) perf(doctor): avoid redundant backup and transcript reads (#174416) fix(update): avoid redundant reads for closed SQLite generations (#174426) fix(ui): Activity page tabs collapse to a few pixels on desktop (#173856) fix(decisions): skip prefilter for empty tool surfaces (#174269) perf(sqlite): retain unchanged database proofs across schema updates (#174409) refactor(test): remove duplicate export collision checks (#174391) fix: clear unused MCP and identity helper exports (#174421) fix(test): supply SQLite reliability fixture catalog refactor(mattermost): use the guarded transport directly (#174419) refactor(agents): trust prepared provider facts (#174388) fix(control-ui): open submenus immediately on click (#174292) test(anthropic): synchronize the late-send fixture with initialization refactor(ui): scope Plugins page state to Solid owners (#174281) perf(chat): pace board history refreshes and reuse cursors (#174407) perf(sqlite): bound session receipt scope publication (#174395) refactor(openrouter): share key budget test fixtures (#174340) ...
* refactor(ui): checkpoint Plugins owner factories * refactor(ui): type Plugins state and simplify revision ownership
Supersedes #173993. This replacement contains the same reviewed commits and preserves all six synthetic proof images. Two coordinator-authorized main-refresh attempts exhausted the original PR’s stale-admin admission window; its uncertain old intent and captures remain intact. Full CI run
38908815012passed at this identical head (49 successful checks, 35 skipped); this PR follows its own native review, preparation, and CI admission.What Problem This Solves
Completes the Plugins page migration away from Lit-style rendering controllers and manually forwarded update notifications.
User Impact
No user-visible behavior change is intended. Catalog browsing, plugin settings, install consent/progress, sign-in, and skill previews retain their existing routes, tags, selectors, focus behavior, and lazy loading.
Why This Change Was Made
Solid owns page/helper lifetimes and local filter/tab state. Icon tiles register their live identity with the existing fetch/cache owner, removing page-wide DOM scans and a mutation observer. Request admission, cancellation, consent identity, and cache authority remain synchronous. The page adopts the shared wizard factory from #173902 and binds help publication to its application-context lifetime.
Evidence
The current head
23d37aee37a688922f2a2caac83fa85cf4f3d5a8is the second coordinator-authorized recovery refresh, merging main7cbbf3b94d5f58ce0bc3657cd829865a33a65e3dwithout conflicts. Plugins source is byte-identical to head4712dc4c30f20f3869fb9c3944f0575868a5140b, where the fresh UI typecheck, paired builds and strict startup proof below ran. No fresh local type/build/Knip pass is asserted on this mechanical merge; Original-PR CI at this exact head passed; replacement-PR CI supplies its own admission.The first refreshed run
38905679171passed every nonaggregate job except Real-Gateway shard 2:Control UI cross-channel automation management with a real Gateway > configured owners and admin chat manage a Telegram-created job while a non-owner cannot. Its chat automationadmin-updatenever reached the fixture provider. That flow does not open Plugins; its QA/Gateway/chat/shared UI inputs equal the tested main parent. This is source-unrelated attribution, not a matching-main-failure claim (the matching main job passed). The native auto recovery refused the failed required check before dispatch.SessionWorkspaceRail(Chat) andSynologyChatAccountRaw(Synology Chat). Both files are unchanged and neither symbol is referenced by Plugins; the identical command on pinned base produces byte-identical output. No new ignores.ci:fullrun38873768329atc7741882completed with two source-unrelated failures detailed below. Replacement-PR CI supplies fresh admission; the old run is not current-head success. No local E2E suite or parity run.The first CI run (
38870694859) found 23 initializer type assertions introduced by this refactor. The reviewed pre-merge head (c774188268fcf812b385ef7b6b10b19c5aeb297e) replaces them with concrete owner types and removes the synthetic subscription adapter; no baseline allowance or suppression was added. The replacementci:fullrun is38873768329.Fresh startup raw JavaScript is 1,034,196 B on both sides; Brotli is 315,090 → 315,123 B. Both strict checks report zero violations. Equal raw size does not imply byte-identical emitted assets. The inspected historical screenshot difference is the expected build-stamp footer.
Refactor counts and retained boundaries
Counts cover the 15 touched production files against the pinned main base; retired classes and renamed factories are counted together.
createEffectcreateRenderEffectuntrackaddEventListenerflushThe two effects synchronize route/Gateway ownership and the existing icon fetch/cache owners. A page-owned revision signal invalidates synchronous reads; catalog props derive a fresh shallow snapshot for each revision. Remaining selectors admit shell/modal boundaries, dismiss the install-action custom-element island, and preserve the Firefox focused-input removal workaround. The existing dynamic fallback-class suffix remains inside a structured class array. Test LOC: 1,452 → 1,548.
Historical production Knip findings (superseded by fresh check)
The identical command reported the same five exports on the pinned base and candidate:
autoReviewParametersinextensions/autoreview/src/tool.tsprepareCommandLaneClearinsrc/process/command-queue.tscreateCommandPaletteLoadinginui/src/app/app-shell-command-palette-loading.tsChatPageViewinui/src/pages/chat/chat-page.tsINITIAL_CUSTOM_THEME_IMPORT_STATEinui/src/pages/config/custom-theme-import-owner.tsAll five declaration files are unchanged by this PR. Neither the old nor new Plugins source references these symbols; removing a Plugins import cannot orphan them. The Config export is being repaired separately in #173992. No ignore or unrelated repair is included here.
Historical CI failures and source attribution at c774188
Run
38873768329, attempt 1, tested merge476ee644a0f5eb13391e62dd0736acc65fc21cecfrom main0b47dd05c63a4f90c9f9ce31fbc1007b57348296and the reviewed pre-merge PR headc774188268fcf812b385ef7b6b10b19c5aeb297e. Its ordered parents and merged tree are verified. Its complete change from that main parent is confined to Plugins.check-test-types:extensions/codex/src/app-server/session-binding.test.tslines 465, 466, and 480 call the unbound original namescreateCodexAppServerBindingStore,createCodexSqliteTestBindingStateStore, andhashCodexAppServerBindingFingerprintafter those imports were aliased. The Codex extension and test configuration are unchanged by this PR.checks-ui-e2e (7/9):Control UI new-session page mocked Gateway E2E > a session writer preserves a started first turn until its owned row arrivestimes out ingateway.waitForRequest. The exact tested flow uses chat/new-session, session rows, controls, reconnect, and abort; it opens neither Plugins nor the command palette that sharesPluginArtTile. Chat/new-session, shared UI, fixtures, route/build inputs, and dependencies are identical to the main parent. Plugins remains dynamically loaded.The previous comparable scheduled main jobs passed; this is direct source-unrelated attribution, not a matching-main-failure claim. The native admin evidence records all failed jobs, the downstream CI gate, nineteen unchanged input trees/blobs, and passing independent security. The owned assertion-safety failure is fixed and passed in this replacement run. CI is not reported as green.
Replacement CI run 38912665082: fixture-harness failure attribution
The sole failed CI test job is UI shard 1. Its native fixture self-test times out in
scenario-timeoutafter 60 seconds, then the shared fixture-retirement guard refuses seven later cases. These tests generate mocked Vitest children and do not import Plugins. All 518 WebKit tests passed. The matching scheduled-main job passed, so this is direct source-unrelated attribution, not a matching-main-failure claim. The native exception retains the exact tested merge, main parent, complete failed-job accounting, and source-object equality.joins scenario cleanup or retires the unsafe fork and retains its state: scenario-close-failurejoins scenario cleanup or retires the unsafe fork and retains its state: scenario-late-closejoins scenario cleanup or retires the unsafe fork and retains its state: scenario-noncooperativejoins scenario cleanup or retires the unsafe fork and retains its state: scenario-timeoutowns shared state through native suite cleanup: resources-browser-failureowns shared state through native suite cleanup: resources-close-failureowns shared state through native suite cleanup: resources-late-setupowns shared state through native suite cleanup: resources-successSecurity review is green after closing superseded #173993 to remove duplicate-head ambiguity. No security waiver is requested.