Repository navigation
refactor(ui): port identity components to Solid - #168756
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 changes before merge. What this changesThis PR replaces Lit identity components with Solid implementations while preserving their custom-element tags and existing resource owners. Example: Viewing an @ada Lovelace mention at 390px in dark mode.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this PR open: the maintainer-directed Solid migration remains useful, but the previously reported authenticated Appearance-preview regression still blocks merge. Priority: P2 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherControl UI identity components consume Gateway identity, presence, session attribution, and authenticated images to render avatars, mentions, participant stacks, and person cards. flowchart TD
A[Gateway identity and presence] --> B[Existing domain owners]
B --> C[Reactive projections]
D[Lit and plugin callers] --> E[Custom element bridge]
C --> E
E --> F[Solid identity components]
F --> G[Avatars mentions and person cards]
Technical reviewBest possible solution: Complete the Solid cutover while preserving authenticated image resolution for every retained caller through the existing loader. Do we have a high-confidence way to reproduce the issue? Source establishes the failing path: a token-authenticated Appearance preview forwards /avatar/research to img.src without bearer authentication and reaches a protected route; no runtime execution was performed. Is this the best way to solve the issue? The bridge migration follows the documented direction, but the shared image adapter must retain raw Gateway URL normalization to preserve its existing callers. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cedb310b3ab1. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +447, Tests +255. Total +702 across 36 files. Added test files: 2. View PR surface stats
Review metrics
LabelsLabel changes: No label 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 (11 earlier review cycles; latest 8 shown)
Reviewed October 11, 2026, 6:42 AM ET / 10:42 UTC (Revision 12). |
|
Merged via squash auto-merge.
|
* refactor(ui): draft Solid identity component port * refactor(ui): simplify identity rendering and avatar lifetimes * refactor(ui): activate Solid identity components through the bridge * refactor(ui): keep the avatar image contract at its binding * fix(ui): finish identity icon and plugin avatar cutover * refactor(ui): keep Lit adapters with their rendering owners * test(ui): assert identity DOM contracts across the bridge
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
Ports identity rendering to Solid 2 while the Control UI continues to support Lit callers.
User Impact
Agent/channel avatars, person mentions, viewer facepiles, and session-owner chips retain their tags, classes, accessibility labels, fallbacks, and navigation behavior. No settings or dependency changes.
Why This Change Was Made
Each registered identity tag now has one Solid implementation through
defineSolidBridge; its Lit class is deleted. Existing image caches, authenticated-route loaders, presence projections, and hovercard controllers retain ownership. Lit callers keep the stateless artwork helpers during migration.The image binding retains a replacement lease before releasing the previous lease and ignores retired async completions. Channel fallback content stays in one stable outlet so Lit can update its child range while the image is visible. The existing card owner renders portal contents for both sidebar and Solid mentions; small lifecycle adapters serve both frameworks without copying domain state.
Evidence
The previous head's run 38128280980 was interrupted: UI shard 2 received a runner shutdown signal about six minutes into a twenty-minute job, without a failed test result. Its shutdown initiator is unknown. Fail-fast then cancelled core type stripes 2, 3, and 5; those unfinished jobs are not claimed passed. After merging current main, the three identity files from that shard pass locally again. The final current-head run below completed successfully; no inherited-failure exception was used.
pnpm tsgo:uiand all eightpnpm tsgo:test:uishards passed after final merge6ba479de291f3: all three UI shards, UI E2E, production/test types, lint, and enforced CI gate. UI shard 2 took 289s; CI elapsed 526s.Testbox was attempted once for the resumed cutover; source/admission preparation exceeded the time limit and produced no lease or test result. The earlier baseline lease is completed. No local Docker or whole-repository suite ran.
Size
Changed production files: 3,538 → 3,985 LOC (+447) against main
4db95aa552f7; tests and proof scripts excluded. This remains above the requested no-growth target. The remaining growth comes from typed bridge property/host contracts, native JSX alongside stateless artwork still needed by unported callers, the shared card render/clear entry point, and lifecycle adapters for existing resource owners. Duplicate Lit classes and intermediate wrapper layers were removed. There is no new resource registry or copied domain state.Screenshots
Inspected synthetic before/after captures at 1180px and 390px, light and dark: generated/emoji/photo/system avatars, viewer sizes and image states, owner/participant/overflow stacks, facepiles, channel fallback/photo, and inline mentions. Browser chrome was cropped before upload. Identity markup and styles were unchanged by the subsequent main refreshes.