Skip to content

refactor(ui): port agent and session components to Solid - #169235

Merged
steipete merged 5 commits into
mainfrom
solid2/w-sweep-2
Oct 11, 2026
Merged

steipete merged 5 commits into
mainfrom
solid2/w-sweep-2

Conversation

@steipete

@steipete steipete commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

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

Proof Result / measured wall time
Codemod dry run on migrated sources Manual lifecycle/directive cases resolved
Agent row chip 2 passed; 3.75s
Workspace/header contracts 46 passed; 6.51s
Working phrase + caller 5 + 6 passed; 3.68s / 2.53s
Catalog menu 3 passed; 3.33s
Placement dialog 3 passed; 2.84s
Home selection/context contract 1 passed; preserves attachments on metadata refresh and clears on context changes
Chat placement and restart 13 + 3 passed; 20.78s / 6.07s
Hovercard + cold GitHub translations 45 + 6 passed; 3.92s / 7.90s
Chunking contracts 5 passed; 2.10s
Home context E2E 3 passed; 17.59s; baseline also 3 passed
Catalog interaction/capture 1 passed; 17.42s; baseline also passed
Menu surface browser proof Chromium and WebKit: 20 passed each
UI typecheck, scoped lint, i18n, formatting, diff check Passed
Build + strict performance Passed on current main and candidate
Local independent review P0–P2; Home attachment finding fixed and regression-tested

Pinned same-host comparison uses the same Node/Vite/pako and build identity on merge base 998a9fb816d0be8468053d7f6792a440cbf94ad7 and 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_01m4ny97h1ph0vj12bw9brh4p0 is stopped.

Inspected synthetic before/after images are attached below. Hovercard and catalog menu match visually. The unrelated existing session-submenu parity 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-visibility is still a sidebar directive.
  • searchable-people-menu remains a directive for Lit chat sharing and owner menus; session-communication-options remains used by the Lit chat-header session menu.
  • Session attention/data/scroll/lineage/organizer/owner-filter controllers remain required by Lit sidebar navigation and row rendering. session-details-controller is also required by the Lit Sessions page.
  • Session menu actions/settings/snooze/owner/appearance code remains reachable from pages/chat/components/chat-header-session-menu.ts, which constructs and renders SessionMenuActions.
  • Person activity card/data/link remain used by Lit sidebar people and chat consumers. Session progress card/disclosure controllers retain Lit composer/board/plugin callers. Session background view retains Lit New Session/chat callers.
  • The progress-hovercard target/registration/runtime still owns its existing lazy boundary. Already-plain TypeScript owners remain plain TypeScript.

Catalog menu before

Catalog menu after

Home before

Home after

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 parent 4e3818bab0febf3ce265aafab07b0c98b7cf7f16; 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.

@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 11, 2026
@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.”

  • Before: The Lit menu shows Open in OpenClaw, Import to OpenClaw, disabled Open in terminal, and Delete.
  • After: The Solid menu shows the same actions, disabled state, and layout.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, focused migration with inspected browser evidence, preserved owner contracts, and no actionable introduced finding; failed and cancelled CI remains accurately recorded.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after browser captures show the migrated catalog menu and Home dock in the Control UI with synthetic Gateway state; the body additionally records Home context interactions and Chromium/WebKit menu coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Existing agent and session controls must remain usable as the Control UI moves from Lit to Solid.
Reason: Repository UI policy explicitly directs the migration, and this focused cutover preserves existing behavior and ownership without production-code growth.

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
Reviewed head: f80d51dbf567821414694029bcc21b9d32342124

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control 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]
Loading

Technical review

Best 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

  • Agent row identity keeps the original intent (8c2996e: Expose agent identity and ownership in team-mode session surfaces.)
  • Home conversation keeps the original intent (b86ea6c: Keep the normal Home conversation beside ongoing work with explicit context and selected-text attachments.)
  • Catalog menu keeps the original intent (d8d2f83: Offer viewer and owning-host terminal actions for external catalog sessions.)
  • Session placement keeps the original intent (f59e945: Select destinations for the canonical Gateway session-move lifecycle while preserving session identity.)
  • Modal settlement keeps the original intent (292b304: Centralize host settlement and prevent late catalog completion from repainting a cancelled dialog.)
  • Working phrases keeps the original intent (cec17ab: Show deterministic decorative phrases during long waits without claiming actual progress.)
  • Workspace icon recovery keeps the original intent (1ba5127: Recover unavailable icons with bounded connection-scoped retries rather than repeated render-driven requests.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Approved migration policy: The complete root and UI policies direct Lit ports through the existing Solid bridge, preserve domain ownership, and require one implementation per registered tag; no maintainer-notes directory exists in this checkout. (ui/AGENTS.md:5, f80d51dbf567)
  • Verified introduced change: The pinned introduction diff replaces the Lit implementations and preserves thin entry points, tags, shared owners, and lazy placement loading; fetched main still contains the corresponding Lit implementations. (ui/src/components/home-session-solid.tsx:18, f80d51dbf567)
  • Existing lifecycle contracts retained: The placement port retains the promise-modal host, shared placement templates, and DraftCloudMachineState; completed catalog requests check modal settlement before publishing. (ui/src/components/session-placement-move-dialog.tsx:128, f80d51dbf567)
  • Earlier fixture findings addressed: Placement tests flush between distinct user inputs, and the Home fixture clears the previous document selection while preserving attachment-lifetime and conversation-identity assertions. (ui/src/components/home-session.test.tsx:42, f80d51dbf567)
  • Browser media inspected: All four prepared images were inspected directly; the before/after catalog menu retains actions and positioning, and the Home dock retains its context controls and conversation layout. (f80d51dbf567)
  • Workspace recovery provenance: fix: recover workspace icons without repeated unavailable requests #162885 established bounded, connection-scoped icon recovery; this port preserves its authenticated loader, ordered credential candidates, connection identity, and image rendering. (ui/src/components/workspace-icon.tsx:20, 1ba51273303d)

PR surface

Source -1, Tests +114. Total +113 across 20 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 13 778 779 -1
Tests 7 139 25 +114
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 20 917 804 +113

Review metrics

Metric Value Why it matters
Production versus test LOC Production −1 net; tests +114 net The cutover avoids production growth while adding mounted identity-publication and attachment-lifetime coverage and adapting existing tests to Solid commit boundaries.

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is an approved internal UI migration without an established urgent production regression introduced by the patch.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (5 earlier review cycles)
  • reviewed 2026-10-11T17:26:51.698Z sha 7cfdb6f :: needs maintainer review before merge. :: none
  • reviewed 2026-10-11T18:06:18.699Z sha 41c4755 :: needs changes before merge. :: [P2] Flush placement selection before consecutive test clicks | [P2] Repair the Home attachment fixture in the shared UI shard
  • reviewed 2026-10-11T18:57:13.984Z sha 7991a59 :: needs changes before merge. :: none
  • reviewed 2026-10-11T19:36:35.103Z sha f80d51d :: needs changes before merge. :: none
  • reviewed 2026-10-11T19:58:03.740Z sha f80d51d :: needs changes before merge. :: none

Reviewed October 11, 2026, 4:29 PM ET / 20:29 UTC (Revision 6).

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 11, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Oct 11, 2026
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 11, 2026
@steipete
steipete merged commit 24af217 into main Oct 11, 2026
90 of 99 checks passed
@steipete
steipete deleted the solid2/w-sweep-2 branch October 11, 2026 20:32
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
…9235)

* refactor(ui): port agent and session components to Solid

* refactor(ui): simplify migrated session controls

* test(ui): settle Solid placement and selection fixtures
scribe-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Oct 20, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant