Repository navigation
feat(ui): distinguish session links with a claw icon - #144251
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. Reviewed September 10, 2026, 9:51 PM ET / September 11, 2026, 01:51 UTC (Revision 4). ClawSweeper reviewWhat this changesAdds a static claw to Control UI session links and aligns resolved titles with surrounding text while preserving ellipsis and forwarded-message label updates. Merge readiness✅ Ready for maintainer review The change remains useful: current main and the latest release retain the older session-link presentation. No blocking correctness or security defect was found, and the inspected visual evidence supports the change. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI recognizes session references in chat messages and side panels, then resolves their titles through its existing session-link controller. This PR changes their visual presentation while retaining the existing navigation and hover-card paths. flowchart LR
A[Chat and sidebar content] --> B[Session reference parser]
B --> C[Session title controller]
D[Session roster and preview] --> C
C --> E[Claw and title label]
E --> F[Session navigation and hover card]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +34, Tests +95. Total +129 across 6 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep session-link decoration within the existing titler and shared stylesheet, preserving readable labels, natural alignment, and existing navigation. Do we have a high-confidence way to reproduce the issue? Not applicable to the requested visual enhancement; current source and inspected before/after images establish the presentation difference. Tests and application execution were not run during this read-only review. Is this the best way to solve the issue? Yes. The patch extends the existing presentation owner without duplicating session classification, routing, or title lookup, and preserves the label node needed for subsequent Lit updates. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f60e18360af3. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
efd9e24 to
b96a282
Compare
|
Addressed the integration and startup-JS requests in b96a282:
The PR is ready for review, not merged. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Worked on by: - @jalehman Co-authored-by: jalehman <[email protected]> OpenClaw-Publication: 10dcd7de-bc51-49a3-9f31-7d891e22b236
b96a282 to
7a4e36f
Compare
What Problem This Solves
Session links need a recognizable claw mark. Resolved session titles also used a different text color and sat above neighboring links and prose.
Why This Change Was Made
Apply the claw through the existing session-link presentation instead of retaining the obsolete sanitizer classifier or route-dependent Markdown cache changes. Current main's parser, titler, navigation, and hover-card owners remain in place.
Titled links inherit the shared link color. An inline-grid chip supplies the natural text baseline, while its explicit label alone clips for ellipsis. Reuse producer-owned label nodes so forwarded-message Lit bindings remain valid.
User Impact
Local session links have a static claw. Resolved and unresolved links use the same link color and align with surrounding text. Long titles retain ellipsis; the claw adds no accessible or copied text. External lookalikes and GitHub links retain their existing behavior.
AI-assisted implementation by Roboclaw, requested by @jalehman.
Evidence
Published head:
b96a28217c73278b8e6044db3b71f026390eebee. Rebased integration base:5b097c8b41ae15cae25a88664e2eef7df67c89a5.Automated verification
node scripts/run-vitest.mjs --config ui/vitest.config.ts ui/src/components/session-link-titling.test.ts ui/src/components/session-link-presentation.browser.test.ts ui/src/components/markdown.test.ts ui/src/components/markdown-links.test.ts ui/src/pages/chat/components/chat-message.test.ts.git diff --checkpass.pnpm ui:buildpasses: startup JS 353056 B / 353107 B, 8 requests; startup CSS 45,668 B / 51,200 B. No budget or baseline was raised.Production LOC: +42/-8 (net +34); tests: +99/-0. Growth adds the claw presentation and a baseline-safe truncating label, with focused regression coverage.
Integrated visual proof
The built Control UI ran on a task-owned Gateway with isolated HOME, state, config, and port, using a synthetic transcript. The operator Gateway was not touched. All images were inspected before publication.
These pairs compare the already-rebased claw implementation before the color/alignment correction with the corrected label layout. Chromium DOM checks measured 0px baseline delta, the shared link color, a retained claw, and a visibly ellipsized long title. The final label-node reuse follow-up preserves this markup and CSS and is covered by the final regression tests and published-head build.
The explicit-label CSS layout also passed focused Chromium and WebKit checks at wide and narrow widths with 0px baseline delta. Full-Gateway WebKit capture timed out, so it is not claimed as verified. A full
pnpm build:dockerin the disposable proof checkout hit an unrelated compatibility-export postbuild error (findSystemGatewayServicesambiguity); its built runtime started the isolated Gateway for the UI proof. The full runtime build is not claimed as passing.ClawSweeper feedback addressed
Worked on by
View the OpenClaw team session