Skip to content

feat(ui): distinguish session links with a claw icon - #144251

Merged
jalehman merged 3 commits into
mainfrom
openclaw/add-claw-icon-to-session-links
Sep 11, 2026
Merged

jalehman merged 3 commits into
mainfrom
openclaw/add-claw-icon-to-session-links

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • 480/480 focused tests pass, including new baseline/color/truncation browser tests and label-node identity coverage.
  • Test command: 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.
  • Targeted Stylelint, formatting, and git diff --check pass.
  • Published-head pnpm ui:build passes: startup JS 353056 B / 353107 B, 8 requests; startup CSS 45,668 B / 51,200 B. No budget or baseline was raised.
  • Independent code review found no remaining findings after preserving the Lit-owned label node.

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.

Theme Before color/alignment correction After
Dark Before: white, raised titled links After: shared link color and text baseline
Light Before: mismatched titled-link color and baseline After: consistent titled-link color and baseline

Narrow layout: aligned links with retained claw and ellipsis

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:docker in the disposable proof checkout hit an unrelated compatibility-export postbuild error (findSystemGatewayServices ambiguity); its built runtime started the isolated Gateway for the UI proof. The full runtime build is not claimed as passing.

ClawSweeper feedback addressed

  • Rebased the conflicting branch and retained main's canonical session-link owner; no parallel classifier remains.
  • Verified the integrated Markdown/titling/forwarded-message paths, including child-target navigation and hover behavior in review and focused tests.
  • Refreshed light/dark/narrow rendering evidence and passed the published-head startup-JS gate without relaxing its limit.

Worked on by


View the OpenClaw team session

@openclaw-barnacle openclaw-barnacle Bot added app: android App: android app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 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.

@openclaw-barnacle openclaw-barnacle Bot added size: S and removed app: android App: android size: M labels Sep 10, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 10, 2026, 9:51 PM ET / September 11, 2026, 01:51 UTC (Revision 4).

ClawSweeper review

What this changes

Adds 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
Reviewed head: 7a4e36f4904db00e033f1d384e4e55154df0dc0b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with convincing visual evidence and no blocking findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected light/dark captures from the reported isolated Gateway demonstrate the titler and stylesheet's improved color, alignment, claw, and ellipsis. Source comparison with the photographed revision preserves that layout through the subsequent class rename and SVG compaction; full-Gateway WebKit proof is not claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected light/dark captures from the reported isolated Gateway demonstrate the titler and stylesheet's improved color, alignment, claw, and ellipsis. Source comparison with the photographed revision preserves that layout through the subsequent class rename and SVG compaction; full-Gateway WebKit proof is not claimed.
Evidence reviewed 7 items Introduced scope: The host's complete merge-base-to-head patch contains the presentation changes and focused tests. Its verified test merge preserves the same six-file scope; unrelated base-branch changes are not attributed to this PR.
Existing owner and label lifecycle: The titler retains the producer-owned label element, writes titles through textContent, and leaves target resolution unchanged. The forwarded-attribution producer supplies that label; existing navigation resolves child targets with closest().
Current main still lacks the presentation: Current main uses inline-block titled links, a separate strong-text color, and a negative vertical offset; it lacks the claw and separate clipping label.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Source +34, Tests +95. Total +129 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 3 42 8 +34
Tests 3 95 0 +95
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 137 8 +129

Review metrics

None.

Technical review

Best 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.

Labels

Label justifications:

  • P3: This is bounded visual polish for session-link recognition and alignment.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected light/dark captures from the reported isolated Gateway demonstrate the titler and stylesheet's improved color, alignment, claw, and ellipsis. Source comparison with the photographed revision preserves that layout through the subsequent class rename and SVG compaction; full-Gateway WebKit proof is not claimed.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected light/dark captures from the reported isolated Gateway demonstrate the titler and stylesheet's improved color, alignment, claw, and ellipsis. Source comparison with the photographed revision preserves that layout through the subsequent class rename and SVG compaction; full-Gateway WebKit proof is not claimed.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected light/dark captures from the reported isolated Gateway demonstrate the titler and stylesheet's improved color, alignment, claw, and ellipsis. Source comparison with the photographed revision preserves that layout through the subsequent class rename and SVG compaction; full-Gateway WebKit proof is not claimed.

Evidence

What I checked:

  • Introduced scope: The host's complete merge-base-to-head patch contains the presentation changes and focused tests. Its verified test merge preserves the same six-file scope; unrelated base-branch changes are not attributed to this PR. (7a4e36f4904d)
  • Existing owner and label lifecycle: The titler retains the producer-owned label element, writes titles through textContent, and leaves target resolution unchanged. The forwarded-attribution producer supplies that label; existing navigation resolves child targets with closest(). (ui/src/components/session-link-titling.ts:245, 7a4e36f4904d)
  • Current main still lacks the presentation: Current main uses inline-block titled links, a separate strong-text color, and a negative vertical offset; it lacks the claw and separate clipping label. (ui/src/styles/chat/text.css, f60e18360af3)
  • Latest release comparison: The stylesheet retrieved at v2026.9.3 also retains the older titled-link treatment, so that release does not already provide the requested presentation. (ui/src/styles/chat/text.css, 1391f7cd2d40)
  • Inspected visual proof: Inspected all four prepared light/dark before-and-after images. They show resolved titles changing to the shared link color and baseline while retaining the claw and visible ellipsis. The captured PR body describes a built Control UI on an isolated Gateway with synthetic content. The images demonstrate appearance, not authentication or navigation execution. The narrow image was not included in the prepared manifest, and full-Gateway WebKit coverage is expressly unclaimed. (b96a28217c73)
  • Re-review continuity: The previous completed review recorded no findings. Comparing the three production files fetched at its pinned revision against this checkout showed only the consistent label-class rename and SVG compaction. The latest commit's GitHub patch independently confirms those changes. Local historical-object reads failed, so GitHub source reads supplied this comparison; no new runtime execution was performed. (ui/src/styles/chat/text.css:622, 7a4e36f4904d)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vyctor H. Brzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-10T17:58:42.169Z sha efd9e24 :: blocked before merge. :: none
  • reviewed 2026-09-10T18:16:39.381Z sha efd9e24 :: blocked before merge. :: none
  • reviewed 2026-09-11T00:47:38.559Z sha b96a282 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 10, 2026
@jalehman
jalehman force-pushed the openclaw/add-claw-icon-to-session-links branch from efd9e24 to b96a282 Compare September 11, 2026 00:38
@jalehman
jalehman marked this pull request as ready for review September 11, 2026 00:41
@jalehman

Copy link
Copy Markdown
Contributor

Addressed the integration and startup-JS requests in b96a282:

  • Rebased onto the canonical session-link owner; removed the obsolete parallel classifier/cache changes.
  • Fixed resolved-title color and baseline alignment, retaining the claw, ellipsis, and producer-owned label node.
  • 480 focused tests pass; independent follow-up review has no findings.
  • Published-head pnpm ui:build passes: startup JS 353,056 B / 353,107 B, without changing the budget.
  • Refreshed inspected dark/light/narrow proof in the PR body. It records the full-Gateway WebKit capture limitation and the unrelated runtime postbuild failure separately from the passing UI build.

The PR is ready for review, not merged.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@jalehman
jalehman force-pushed the openclaw/add-claw-icon-to-session-links branch from b96a282 to 7a4e36f Compare September 11, 2026 01:45
@jalehman
jalehman merged commit 7f8a694 into main Sep 11, 2026
223 of 225 checks passed
@jalehman
jalehman deleted the openclaw/add-claw-icon-to-session-links branch September 11, 2026 04:06
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 11, 2026
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 maintainer Maintainer-authored PR 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: S 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.

2 participants