Repository navigation
refactor(ui): port Agents settings to Solid - #168759
Conversation
# Conflicts: # ui/src/components/solid/settings-ui.tsx # ui/src/pages/agents/panels-skills.browser.test.ts # ui/src/pages/agents/panels-tools-skills.browser.test.ts
|
🦞👀 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: needs changes before merge. What this changesThis PR ports Agents and Memory settings rendering from Lit to Solid while retaining synchronous state and Gateway mutation owners. Example: Edit AGENTS.md under Settings > Agents > main > Files.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 4 items remain Keep open: this useful, maintainer-directed migration still has the previously reported locale regression and lost model-picker reset assertion. Priority: P2 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe Control UI receives agent selections, configuration, and Gateway snapshots, renders settings panels, and dispatches edits through existing capability owners. flowchart LR
A[Settings navigation] --> B[Solid bridge]
B --> C[Agents and Memory state owners]
C --> D[Reactive projections]
D --> E[Solid settings panels]
E --> F[Existing capability operations]
F --> G[Gateway]
Technical reviewBest possible solution: Complete the Solid cutover while preserving live locale updates, agent-switch control resets, and existing mutation ownership. Do we have a high-confidence way to reproduce the issue? Source establishes that changing locale while Agents stays mounted cannot invalidate its imperative header translations; no runtime reproduction was run under the read-only review. Is this the best way to solve the issue? The migration appropriately retains synchronous domain owners and canonical interop adapters, but must preserve the locale subscription and reset coverage it replaces. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dd053f96aa30. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +686, Tests +347, Other +6. Total +1039 across 78 files. Added test files: 2. 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 (10 earlier review cycles; latest 8 shown)
Reviewed October 11, 2026, 6:10 AM ET / 10:10 UTC (Revision 11). |
First-parent upstream 069a5b8..75df19c (17 commits, including openclaw#169043 entry lifecycle queries, openclaw#169034, openclaw#169058 memory index facts, openclaw#168950, openclaw#169019 telegram queued history replies, openclaw#168790/openclaw#168756/ openclaw#168759/openclaw#168739 Solid UI ports, openclaw#168813 codex metadata/startup lifecycles, openclaw#168981, openclaw#168992 agent preparation SQLite work). Only conflict: worker-access inventory, regenerated (631 files, 2436 calls). Auto-merged files carrying our overlay, reviewed: snapshot.ts (upstream's block-reply reconcile reads through index-1; our per-part continuation-marker strip in extractAssistantStreamSnapshot unchanged), codex side-question.ts (upstream's request-scoped client lease; our disableContinuationTools and the extracted dynamic-tool-call helper unaffected), subagent-registry-restore.ts, session-sharing-store.native.ts. Refs #1475 Co-Authored-By: Claude Opus 5.5 <[email protected]>
What Problem This Solves
The Agents settings pages still rendered through Lit while shared Control UI surfaces moved to Solid 2.
User Impact
Agents settings keep the existing navigation, editing, permission gates, and visual layout while rendering through Solid 2. No migration or configuration change is required.
Why This Change Was Made
Port Agents and Memory rendering to Solid 2 and register the existing tags through
defineSolidBridge. Keep synchronous request, draft, selection, and permission owners in TypeScript. Preserve routes, CSS classes, selectors, and retained preview/diary DOM. Only explicit selection intent changes browser history.Use shared Solid icons, settings, and refresh status. Keep the original route module only as a stateless Lit template for the shell. The picker also clears a detached popover target synchronously, preventing pending Web Awesome updates from looking up an ID on a detached section.
The existing subscription and bridge modules own the temporary controller and Lit-content adapters; no Lit page class or duplicate tag implementation remains. Shared Memory types live in a leaf module, without an import cycle. The latest main merge also removes the duplicate dialog attribute declaration and extra lazy-view type coupling.
Adopt main’s complete MCP fixture correction (
7158f2b1df01). This PR no longer changes that fixture; its existing inline-transparent and dashboard-color assertions pass with the canonical provider.The table-dialog tests now wait for main's deferred focus restoration. All focus assertions remain; the same two failures reproduced on the CI baseline and the three-line timing adjustment passes there.
Evidence
LitContentexports after an independent main landing. Merged main and adopted its single canonical adapter; all Agents consumers now userender.manualattribute used by Agents. Memory confirmation: 5 passed (4.41 s); Memory rendering: 19 passed (24.03 s). Focused boundary lint and i18n pass; merged-port review has no actionable P0–P2 findings.1118b8f0460669ea7789a4d875516e4aee2d3b26: selected UI/E2E shards, production/test types, lint, architecture, i18n, performance, and aggregate CI gate.The prior-head CI type error is
TS2353atsrc/cli/gateway-cli/run-loop-startup.test-support.ts:380: main passes a removedruntimeoption. Independent main CI 38115181393 reproduces it in both type jobs. The Gateway CLI tree and relevant compiler inputs are byte-identical between the PR's tested merge and its main parent. Native inherited-failure evidence pins both attempts and their source hashes.The earlier local CI owner-selection test hit two 120-second shared-host timeouts. That local result remains recorded; it is not claimed as a pass or an attributed baseline failure. The exact-head CI routing and selected suites provide the current integration proof. No local Docker, whole test suite, or typecheck was run.
Visual proof
Before:
53b8118647525c9e855a6d276ed3eef5dfef9464with synthetic fixtures in source mode. After:f6a0f0b3c4a5ca8d36722340454a60d260aedd7ffrom the built UI, using the same scenes and desktop/mobile light/dark profiles. The before image predates independently landed shared UI changes, including the GitHub identity port. Refreshed-main source captures hit cold-navigation tooling failures; the complete historical before captures are retained.All sheets were inspected for parity and sensitive content. Data is synthetic. Mobile Cron frames show upper context rather than all job controls. The later picker lifecycle fix and canonical-adapter integration do not change the captured layout. All 13 images were verified to load in the PR browser.
The sheets show before/after pairs for all four profiles:
Production LOC
Agents: 7,255 → 7,795 (+540, 7.4%). Existing interop owners and sanitized Markdown rendering add 100 shared lines; the picker lifecycle fix adds 9 lines outside Agents. Remaining growth is explicit JSX/reactive bindings and retained preview/diary components; the old page implementations and draft adapter modules are deleted.