Repository navigation
refactor(ui): scope native gateway observation to Solid - #174367
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 native Gateway redraw observation from a chat host controller into the mounted Solid runtime. Example: Switch from local to remote Gateway while viewing /workspace/file.ts.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR completes a useful, maintainer-directed Solid ownership cleanup, and no introduced defect was found. The required CI gate remains red. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe native capability owns Gateway selection snapshots; chat observes those snapshots to refresh editor availability while preserving parked-pane rendering and cleanup. flowchart LR
A[Native Gateway event] --> B[Native capability snapshot]
B --> C[Synchronous locality checks]
B --> D[Solid source projection]
D --> E[Parked render lifecycle]
E --> F[Chat editor actions]
C --> F
Technical reviewBest possible solution: Retain the existing native snapshot owner and use the existing Solid projection lifecycle for chat redraw observation. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor rather than a reported bug; source inspection confirms the redundant host observation on current main. Is this the best way to solve the issue? The change follows the established projection owner, removes the superseded helper and registration, and leaves synchronous domain decisions intact. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1b9fe6a8cd25. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -3, Tests +92. Total +89 across 4 files. Added test files: 0. View PR surface stats
Review metrics
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, 12:14 PM ET / 16:14 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* commit '14e993fff3ecb84eb1d7c9724c4ceda235d797e4': (110 commits) fix(decisions): align accounting ratchet evidence feat(memory): activate PostgreSQL memory search and lifecycle (#174374) fix: join process shutdown and isolate runtime fixtures (#174359) refactor(ui): scope native gateway observation to Solid (#174367) refactor(ui): own canvas widget lifetime in Solid (#174370) perf(control-ui): keep agent avatar faces stable across agent publications (#174239) perf(models): release unused account catalog instructions (#174361) refactor(ui): own composer command menus in Solid stores (#174321) refactor(ui): separate sidebar filter state from view lifecycle (#174352) test(release): make artifact qualification deadlines deterministic fix(codex): preserve sandboxed process inspection and setup errors (#174284) fix(gateway): stop worker processes before draining their queues (#174312) refactor(agents): reuse prepared tool facts (#174349) test(gateway,plugins,ui): remove low-value tests (batch d174) (#174331) refactor(ui): replace MCP retirement host adapters with a factory (#174375) refactor(logging): remove redundant native success traces (#174330) refactor(test): remove dead control-plane fixture branches (#174377) refactor(mcp): remove test-only session runtime seams (#174347) feat(matrix): account-root state databases follow the selected engine (#174315) refactor(discord): collapse private interaction and factory seams (#174322) ...
* commit '14e993fff3ecb84eb1d7c9724c4ceda235d797e4': (110 commits) fix(decisions): align accounting ratchet evidence feat(memory): activate PostgreSQL memory search and lifecycle (#174374) fix: join process shutdown and isolate runtime fixtures (#174359) refactor(ui): scope native gateway observation to Solid (#174367) refactor(ui): own canvas widget lifetime in Solid (#174370) perf(control-ui): keep agent avatar faces stable across agent publications (#174239) perf(models): release unused account catalog instructions (#174361) refactor(ui): own composer command menus in Solid stores (#174321) refactor(ui): separate sidebar filter state from view lifecycle (#174352) test(release): make artifact qualification deadlines deterministic fix(codex): preserve sandboxed process inspection and setup errors (#174284) fix(gateway): stop worker processes before draining their queues (#174312) refactor(agents): reuse prepared tool facts (#174349) test(gateway,plugins,ui): remove low-value tests (batch d174) (#174331) refactor(ui): replace MCP retirement host adapters with a factory (#174375) refactor(logging): remove redundant native success traces (#174330) refactor(test): remove dead control-plane fixture branches (#174377) refactor(mcp): remove test-only session runtime seams (#174347) feat(matrix): account-root state databases follow the selected engine (#174315) refactor(discord): collapse private interaction and factory seams (#174322) ...
* commit '0c6c7ee5837ed93f6fb09ca58b280e76878c21f1': (109 commits) feat(memory): activate PostgreSQL memory search and lifecycle (#174374) fix: join process shutdown and isolate runtime fixtures (#174359) refactor(ui): scope native gateway observation to Solid (#174367) refactor(ui): own canvas widget lifetime in Solid (#174370) perf(control-ui): keep agent avatar faces stable across agent publications (#174239) perf(models): release unused account catalog instructions (#174361) refactor(ui): own composer command menus in Solid stores (#174321) refactor(ui): separate sidebar filter state from view lifecycle (#174352) test(release): make artifact qualification deadlines deterministic fix(codex): preserve sandboxed process inspection and setup errors (#174284) fix(gateway): stop worker processes before draining their queues (#174312) refactor(agents): reuse prepared tool facts (#174349) test(gateway,plugins,ui): remove low-value tests (batch d174) (#174331) refactor(ui): replace MCP retirement host adapters with a factory (#174375) refactor(logging): remove redundant native success traces (#174330) refactor(test): remove dead control-plane fixture branches (#174377) refactor(mcp): remove test-only session runtime seams (#174347) feat(matrix): account-root state databases follow the selected engine (#174315) refactor(discord): collapse private interaction and factory seams (#174322) refactor(feishu): reuse streaming merge in dispatcher tests (#174371) ...
* commit '14e993fff3ecb84eb1d7c9724c4ceda235d797e4': (110 commits) fix(decisions): align accounting ratchet evidence feat(memory): activate PostgreSQL memory search and lifecycle (#174374) fix: join process shutdown and isolate runtime fixtures (#174359) refactor(ui): scope native gateway observation to Solid (#174367) refactor(ui): own canvas widget lifetime in Solid (#174370) perf(control-ui): keep agent avatar faces stable across agent publications (#174239) perf(models): release unused account catalog instructions (#174361) refactor(ui): own composer command menus in Solid stores (#174321) refactor(ui): separate sidebar filter state from view lifecycle (#174352) test(release): make artifact qualification deadlines deterministic fix(codex): preserve sandboxed process inspection and setup errors (#174284) fix(gateway): stop worker processes before draining their queues (#174312) refactor(agents): reuse prepared tool facts (#174349) test(gateway,plugins,ui): remove low-value tests (batch d174) (#174331) refactor(ui): replace MCP retirement host adapters with a factory (#174375) refactor(logging): remove redundant native success traces (#174330) refactor(test): remove dead control-plane fixture branches (#174377) refactor(mcp): remove test-only session runtime seams (#174347) feat(matrix): account-root state databases follow the selected engine (#174315) refactor(discord): collapse private interaction and factory seams (#174322) ...
* commit '0c6c7ee5837ed93f6fb09ca58b280e76878c21f1': (109 commits) feat(memory): activate PostgreSQL memory search and lifecycle (#174374) fix: join process shutdown and isolate runtime fixtures (#174359) refactor(ui): scope native gateway observation to Solid (#174367) refactor(ui): own canvas widget lifetime in Solid (#174370) perf(control-ui): keep agent avatar faces stable across agent publications (#174239) perf(models): release unused account catalog instructions (#174361) refactor(ui): own composer command menus in Solid stores (#174321) refactor(ui): separate sidebar filter state from view lifecycle (#174352) test(release): make artifact qualification deadlines deterministic fix(codex): preserve sandboxed process inspection and setup errors (#174284) fix(gateway): stop worker processes before draining their queues (#174312) refactor(agents): reuse prepared tool facts (#174349) test(gateway,plugins,ui): remove low-value tests (batch d174) (#174331) refactor(ui): replace MCP retirement host adapters with a factory (#174375) refactor(logging): remove redundant native success traces (#174330) refactor(test): remove dead control-plane fixture branches (#174377) refactor(mcp): remove test-only session runtime seams (#174347) feat(matrix): account-root state databases follow the selected engine (#174315) refactor(discord): collapse private interaction and factory seams (#174322) refactor(feishu): reuse streaming merge in dispatcher tests (#174371) ...
What Problem This Solves
Each chat pane registered a host controller solely to redraw when the native Gateway selection changed. The mounted Solid runtime already owns presentation subscriptions.
The native capability now joins that existing projection list. This removes
observeNativeGatewayand its controller wiring.isNativeLocalGateway()andlocalEditorFilePath()still read the authoritative native snapshot synchronously, including while the pane is parked. No selection, lease, media, or connection state moves into Solid.Evidence
pnpm tsgo:uipassedThe first test run found an incomplete session fixture: a delayed roster subscription reached its missing
observeRow. The mounted tests now use the existing real session capability; the corrected run passes without unhandled errors.No markup, styles, host tags, routes or lazy boundaries change. This is presentation-lifetime cleanup, so no screenshots or local full build/E2E run are needed. CI supplies strict same-machine startup/performance proof.
Size and idiom census
Touched production files: 884 → 881 LOC (−3). One native observation controller instance is removed. Literal controller-pattern references 11 → 11;
createEffect2 → 2;untrack2 → 2; native listener registrations 2 → 2; DOM queries 0 → 0. The native capability retains its existing app-lifetime listener and synchronous snapshot; the view owns only observation.Final CI and landing
The initial native test mock needed to preserve real module exports. It now spreads
importOriginal()before replacing the capability factory. Main integration retains both the landed progress projections and native observation. All 18 focused subscription/progress-history cases, UI typecheck, production Knip, formatting and independent review passed on final head659d914a30ff804804073d1b0dad062ae37922e9.CI run 38926293743, attempt 1 completed all 64 jobs with no cancellations. UI, Control UI E2E, browser-extension, real-Gateway, type, lint, security and performance coverage passed. Two static guard roots and their downstream CI gate remain failed:
src/flows/doctor-plugin-source-captures.test.ts:32.cli-parent-lifetime.mjsoutside the scan targets.Both exact guard commands reproduce the same failures on PR merge base
75d827b3b6074037ddda5a5617d4a7f2a4070e05. The actual CI checkout is retained merge46968c17edd7f1767b62a5218e9caecf7cb7603d; its ordered parents and tree were verified, its effective diff contains only the four reviewed native UI/test files, and both guard inputs are identical to the CI base. No baseline, ignore, or unrelated source was changed.Strict same-machine performance comparison passed: 339,554 B startup JavaScript gzip, 7 JS requests and 1 CSS request / 38,786 B. Chat-route JavaScript changed +95 B gzip, with 31 requests unchanged; CSS is unchanged. Startup remains below the original 374,285 B budget.
The cancelled auto request was replaced through native inherited-failure recovery using this exact attempt and source evidence. Merged as
a0ac3098eec454a4286176a9a51e6724139a35fb; the landing-parent audit matched. The static guard failures remain recorded as failures.