Repository navigation
refactor(ui): port agent and session components to Solid - #169235
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: needs maintainer review before merge. What this changesThis PR ports six agent and session UI components from Lit to Solid while preserving their existing controls and entry points. Example: Open the menu for the catalog session “Catalog release review.”
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it advances the approved Solid migration, and no actionable introduced defect remains identified. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI components receive application state and user input, render agent and session controls, and delegate operations to existing avatar, catalog, chat, and placement owners. flowchart LR
A[User input] --> B[Existing UI callers]
B --> C[Solid bridge]
C --> D[Solid components]
D --> E[Shared feature owners]
E --> F[Gateway contracts]
Technical reviewBest possible solution: Complete this Solid cutover through the existing bridge while preserving shared feature and lifecycle owners. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor; no target code was executed during this read-only review. Is this the best way to solve the issue? The approach follows the migration contract by replacing each implementation, retaining existing tags and entry points, and reusing shared domain and lifecycle owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 68d586924cd3. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -1, Tests +114. Total +113 across 20 files. Added test files: 1. 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 HistoryReview history (5 earlier review cycles)
Reviewed October 11, 2026, 4:29 PM ET / 20:29 UTC (Revision 6). |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…9235) * refactor(ui): port agent and session components to Solid * refactor(ui): simplify migrated session controls * test(ui): settle Solid placement and selection fixtures
First-parent upstream e63e209..0b0c2f2 (93 commits, including openclaw#169144 subagent work across gateway restarts, openclaw#169251 worker write transaction overhead, openclaw#169306 question-answer custody, openclaw#169305 fallback ordering, openclaw#169339 owner-state rechecks, openclaw#169235/openclaw#168887 Solid UI ports). Stops before openclaw#169315 (fp#248, agent schema), which is step 59 on its own. Conflicts: - embedded-agent-runner/run/payloads.ts: upstream gates the assistant-texts branch on !assistantForPayload (an empty canonical terminal stays authoritative); kept our per-hop raw-answer split for earlier continuation signals ahead of it. - session-reset-cleanup.test.ts: upstream's retainEmbeddedSessionPromptState disposable; kept our async clearSessionResetRuntimeState call. - plugin-sdk-surface-report.mts: upstream 3674/2135, ours +11/+4. - config-baseline counts/sha256 and worker-access inventory regenerated on the merged tree (core +17 fork config entries, as before). Auto-merged files that carry continuation overlay (19, incl. attempt-execution, agent-runner-fallback-candidate, session.ts, status-message, stream/update handlers) keep the overlay byte-for-byte. Refs #1475 Co-Authored-By: Claude Opus 5.5 <[email protected]>
What Problem This Solves
Completes the W-SWEEP-2 registered agent/session components in the Solid 2 migration.
User Impact
No intentional visual or behavior change. Existing tags, CSS classes, selection handling, catalog actions, avatar loading, placement choices, and lazy entrypoints remain intact. No dependency or public API changes.
Why This Change Was Made
Ports the agent row chip, workspace icon, working phrase, catalog menu, Home conversation wrapper, and placement dialog to Solid. Remaining Lit callers use the existing bridge; each registered tag has one implementation. The Home attachment state resets only when its logical context scope changes, preserving attachments across title refreshes. Shared placement templates remain in their existing Lit-owned islands.
Main independently landed the identical hovercard cleanup while this PR was being prepared; the merge keeps main’s versions. The remaining PR production LOC is 809 → 808 (-1), with typed bridge declarations included. Tests are 2,258 → 2,372 (+114). The original lane also verified the now-landed 609-line hovercard cleanup.
The PR keeps main’s canonical startup grouping and budget unchanged. Same-host, pinned-identity builds show no startup growth; no dependency or configuration changes remain in this PR.
Evidence
Pinned same-host comparison uses the same Node/Vite/pako and build identity on merge base
998a9fb816d0be8468053d7f6792a440cbf94ad7and this head. Startup JS is 420,691 B → 420,618 B gzip, requests 8 → 8. Strict performance now passes after retaining main’s canonical foundation chunking and its separately approved transition budget. This PR adds no budget changes. CSS bytes and route request counts are unchanged. The first CI run passed performance, types, lint, and architecture gates. Its UI shard exposed tests clicking consecutive controls before Solid committed the selection; those tests now flush between user input boundaries. The full placement file and restart file now pass with explicit Solid flushes between input tasks. An ordered Bun run of the assistant-panel and Home files also passes all 30 tests; the Home fixture clears a collapsed selection left by a prior document before adding its range. The required CI gate is rerun by the reviewed merge/fix push.A Testbox lease was tried and admitted after queueing/hydration. It passed UI typechecking and built both revisions; its strict performance run confirmed the inherited failures. Bounded local proof and pinned comparisons completed on this Mac. Lease
tbx_01m4ny97h1ph0vj12bw9brh4p0is stopped.Inspected synthetic before/after images are attached below. Hovercard and catalog menu match visually. The unrelated existing
session-submenuparity scene times out looking for “Icon & color” on the merge base; it is recorded rather than treated as migration evidence.Retained Lit files and callers for the final sweep
agent-avatar-face,agent-scope-control,channel-icon,channel-picker,new-session-link: stateless templates still used by identity-avatar, Skill Workshop, New Session controls, and sidebar/shell callers.session-color,session-glyph,session-leading-indicator,session-row-badges,session-row-subtitle: stateless templates used by Lit sidebar/chat header.session-run-visibilityis still a sidebar directive.searchable-people-menuremains a directive for Lit chat sharing and owner menus;session-communication-optionsremains used by the Lit chat-header session menu.session-details-controlleris also required by the Lit Sessions page.pages/chat/components/chat-header-session-menu.ts, which constructs and rendersSessionMenuActions.Current CI disposition: the only root failure is the two split-rail Escape cases in
chat-position-rail-split.e2e.test.ts. Both fail identically on CI’s exact main parent4e3818bab0febf3ce265aafab07b0c98b7cf7f16; the rail controller, renderer, interaction owner, and test blobs are unchanged in the tested merge. The native inherited-failure route records this evidence and six fail-fast-cancelled UI/type jobs without claiming those jobs passed. The migration’s targeted tests, typecheck, browser proof, and strict performance check pass.