Skip to content

feat(ui): render session references as accent links with a chat icon - #143489

Closed
vyctorbrzezowski wants to merge 7 commits into
openclaw:mainfrom
vyctorbrzezowski:feat/chat-session-chip-icon
Closed

vyctorbrzezowski wants to merge 7 commits into
openclaw:mainfrom
vyctorbrzezowski:feat/chat-session-chip-icon

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

Closes #143476

What Problem This Solves

Boxed session references interrupt paragraph flow. This change presents them as accent links in message text and forwarded “From” attribution while preserving one-line truncation for long titles.

Why This Change Was Made

Session links use the canonical icons.messageSquare chat outline at 1em in the link color. The shared CSS mask adds no accessible or copied text. Resolved titles stay on one line and use an ellipsis within the available container width, capped at 28em. Only the label clips; the icon remains visible. This also prevents resolved bare URLs from splitting title words.

The session hover card remains the owner of hover and keyboard-focus details. Native title tooltips are removed, while accessible names retain the complete title through title loading, agent-name hydration, image alternatives, and explicit line breaks. Unresolved URLs retain URL-specific wrapping.

User Impact

Session links have no underline at rest and become underlined on hover. Short titles remain fully visible; long titles never wrap in either inline text or From attribution. Paragraph text can still span multiple lines. The full title, hover card, keyboard access, and session navigation remain available in light and dark themes, including narrow screens.

Evidence

The ten session-link After images were captured at d9c6a942d00a13229636ce5822f8400c272b591c using the original script and scenes; the Before (main) images are retained. The final reply-attribution repair at fc1eecf248c91defb7f055eb12bb03c9343fbc29 adds the existing source-name class to ordinary reply labels, leaving those session-link styles and forwarded markup unchanged. Its fresh before/after proof follows the comparison table. The canonical mock app uses real Instrument Sans fonts and synthetic data. The 48-scene matrix covers 1440/390 px, dark/light, self/peer turns, with/without attachments, short/five-line paragraphs, and long session titles. Zooms show message text and From attribution. Interaction sheets show pointer hover, keyboard focus, From hover, and return navigation. Additional local captures verify long-title hover and focus in both themes and widths. Click an image for full size.

Before (main)After
Desktop dark — paragraph, From, and long-title zooms
Before: Desktop dark — paragraph, From, and long-title zooms After: Desktop dark — paragraph, From, and long-title zooms
Desktop light — paragraph, From, and long-title zooms
Before: Desktop light — paragraph, From, and long-title zooms After: Desktop light — paragraph, From, and long-title zooms
Mobile 390 dark — paragraph, From, and long-title zooms
Before: Mobile 390 dark — paragraph, From, and long-title zooms After: Mobile 390 dark — paragraph, From, and long-title zooms
Mobile 390 light — paragraph, From, and long-title zooms
Before: Mobile 390 light — paragraph, From, and long-title zooms After: Mobile 390 light — paragraph, From, and long-title zooms
Dark — hover card, keyboard focus, From hover, and return navigation
Before: Dark — hover card, keyboard focus, From hover, and return navigation After: Dark — hover card, keyboard focus, From hover, and return navigation
Light — hover card, keyboard focus, From hover, and return navigation
Before: Light — hover card, keyboard focus, From hover, and return navigation After: Light — hover card, keyboard focus, From hover, and return navigation
Desktop dark — self/peer, text/attachment, short/five-line turns
Before: Desktop dark — self/peer, text/attachment, short/five-line turns After: Desktop dark — self/peer, text/attachment, short/five-line turns
Desktop light — self/peer, text/attachment, short/five-line turns
Before: Desktop light — self/peer, text/attachment, short/five-line turns After: Desktop light — self/peer, text/attachment, short/five-line turns
Mobile 390 dark — self/peer, text/attachment, short/five-line turns
Before: Mobile 390 dark — self/peer, text/attachment, short/five-line turns After: Mobile 390 dark — self/peer, text/attachment, short/five-line turns
Mobile 390 light — self/peer, text/attachment, short/five-line turns
Before: Mobile 390 light — self/peer, text/attachment, short/five-line turns After: Mobile 390 light — self/peer, text/attachment, short/five-line turns

Ordinary reply attribution regression

The final repair is reproduced through the actual multi-sender transcript. At 320px, the 292.42px sender name fits the 304px column alone but previously overflowed by 7.42px beside the reply icon and gap. The name now wraps completely inside the row. At 390px it remains on one line. The forwarded session title retains one-line ellipsis in the same captures. The new browser regression failed before the repair and passes afterward.

Dark — before / after, 320px and 390pxLight — before / after, 320px and 390px
Ordinary reply attribution before and after in dark mode Ordinary reply attribution before and after in light mode

All 96 captured references retain their full accessible labels, have no native title attribute, and show no underline at rest or horizontal viewport overflow. Every resolved title occupies one line; all 32 long-title references truncate with an ellipsis. The chat icon inherits the link color and font size. Short-title baseline alignment and long-title containment also pass the browser tests.

  • At fc1eecf248c91defb7f055eb12bb03c9343fbc29, the three test files pass: 256 rendering/accessibility tests and 7 Chromium presentation tests (263 total).
  • The updated presentation tests failed on the previous CSS in four cases and pass with one-line truncation, including a resolved bare URL, sidebar Markdown, and From attribution.
  • Formatting, Stylelint, whitespace checks, and the selected local changed gate pass.
  • Inline click, From keyboard activation, return navigation, and hover/focus were exercised in the mock app at 1440/390 px in dark/light themes.

Risk and coverage

The shared presentation serves message Markdown, sidebar Markdown, forwarded From attribution, and ordinary reply attribution. Ordinary reply labels now reuse the existing source-name wrapping class so an unbroken sender name cannot overflow alongside the reply icon; session-title labels still truncate on one line. Coverage retains routing, caching, external links, accessible image alternatives, repeated title loading, forwarded rerenders, and long unbroken source names. The sidebar stylesheet coverage added by @steipete in #144690 is retained.

The earlier rebase at b2e0e494fb8df751c44da5e0b40e14de77f2bc58 passed the production UI build and enforced size budgets. Those build results predate this adjustment; the production bundle E2E suite and size measurements were not repeated here. The earlier eight session-progress-hovercard E2E tests are historical evidence. Hosted CI for this adjusted head is not claimed as validation.

Visual and interaction proof uses Chromium with a mock gateway. It does not claim a live-gateway or cross-browser run.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Sep 9, 2026
@clawsweeper

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

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review September 9, 2026 23:34
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Sep 9, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 9, 2026
@clawsweeper

clawsweeper Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 13, 2026, 8:26 PM ET / September 14, 2026, 00:26 UTC (Revision 6).

ClawSweeper review

What this changes

Restyles Control UI session references as chat-icon links, preserves complete accessible names without native tooltips, and contains long reply attribution names.

Merge readiness

⛔ Blocked before merge - 2 items remain

This PR retains useful work beyond the merged claw-icon implementation, and no blocking code defect was found. It is maintainer-authored and remains an active implementation candidate for its linked issue.

Priority: P3
Reviewed head: fc1eecf248c91defb7f055eb12bb03c9343fbc29

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with meaningful regression coverage and no blocking source finding; image retrieval limitations are recorded separately.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor gate is exempt for this MEMBER-authored PR. Its matching captured body reports Chromium mock-app rendering and interaction results for the changed owners, but this reviewer could inspect only before images because sampled final-image URLs returned 404; final visual inspection remains outstanding.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor gate is exempt for this MEMBER-authored PR. Its matching captured body reports Chromium mock-app rendering and interaction results for the changed owners, but this reviewer could inspect only before images because sampled final-image URLs returned 404; final visual inspection remains outstanding.
Evidence reviewed 8 items Current main retains distinct behavior: Fetched main still uses boxed claw links and writes the session key into a native title tooltip. The merged work at #144251 supplies the existing icon and baseline implementation, but does not supply this PR's unboxed chat-icon presentation or tooltip removal.
Latest release comparison: The v2026.9.4 stylesheet retains boxed references and the older inline-block titled layout. The requested presentation is not already supplied by that release. The GitHub contents read succeeded after the local release-blob read failed.
Existing ownership and accessibility: The decorator retains the existing URL recognition, title cache, and navigation contracts. Added label extraction preserves image alternatives and explicit line breaks; child-list observation refreshes labels when forwarded agent names hydrate. The hover-card provider still owns pointer and keyboard-focus details.
Findings None None.
Security None None.

How this fits together

The Control UI turns session references in messages and forwarded attribution into navigable links. Its existing title decorator supplies readable labels, while the shared hover-card owner provides session details.

flowchart LR
  A[Message references] --> C[Session link recognition]
  B[Forwarded attribution] --> C
  C --> D[Title and accessible name]
  D --> E[Shared link presentation]
  E --> F[Session navigation]
  E --> G[Hover and focus details]
Loading

Before merge

  • Resolve merge risk (P1) - Final visual comparison remains unverified here because sampled after-image links returned 404; the body supplies detailed measurements and interaction claims, but those do not replace inspecting the final appearance.
  • Complete next step (P2) - Complete reviewer inspection of the final before/after appearance using accessible attachments or equivalent captures; this review could retrieve only before images.
Agent review details

Security

None.

PR surface

Source +28, Tests +142. Total +170 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 5 59 31 +28
Tests 3 169 27 +142
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 8 228 58 +170

Review metrics

Metric Value Why it matters
Production versus regression coverage Production net +28 lines; tests net +142 lines Production growth supports accessible-name extraction and hydration; added coverage targets truncation, attribution containment, and accessible labels.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #143476
Summary: This PR implements the linked presentation request; the merged related PRs supply overlapping foundations rather than the complete remaining change.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Mantis proof suggestion

Targeted web chat captures could resolve the final visual-inspection gap if the existing attachments remain inaccessible. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis verify this PR's inline and forwarded session links plus ordinary reply attribution in web UI chat; capture redacted before/after evidence of short-title alignment, long-title ellipsis, hover and keyboard focus, and reply-name containment at narrow widths in light and dark themes.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep presentation in the shared session-link owner, with complete accessible labels, one-line title truncation, and wrapping ordinary reply names.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep presentation in the shared session-link owner, with complete accessible labels, one-line title truncation, and wrapping ordinary reply names.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a new bug reproduction: this primarily changes presentation. Current-main source and inspected before images establish the existing boxed-link appearance; no tests were executed during this review.

Is this the best way to solve the issue?

Yes. The patch extends the existing decorator and shared stylesheet, preserves routing and hover-card ownership, and covers the ordinary-reply sibling affected by the layout change.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 1a48d3401a43.

Labels

Label justifications:

  • P3: This is bounded Control UI presentation and accessibility polish with no demonstrated urgent runtime failure.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor gate is exempt for this MEMBER-authored PR. Its matching captured body reports Chromium mock-app rendering and interaction results for the changed owners, but this reviewer could inspect only before images because sampled final-image URLs returned 404; final visual inspection remains outstanding.

Evidence

What I checked:

  • Current main retains distinct behavior: Fetched main still uses boxed claw links and writes the session key into a native title tooltip. The merged work at feat(ui): distinguish session links with a claw icon #144251 supplies the existing icon and baseline implementation, but does not supply this PR's unboxed chat-icon presentation or tooltip removal. (ui/src/styles/chat/text.css:602, 1a48d3401a43)
  • Latest release comparison: The v2026.9.4 stylesheet retains boxed references and the older inline-block titled layout. The requested presentation is not already supplied by that release. The GitHub contents read succeeded after the local release-blob read failed. (ui/src/styles/chat/text.css:602, 3a9d69db306c)
  • Existing ownership and accessibility: The decorator retains the existing URL recognition, title cache, and navigation contracts. Added label extraction preserves image alternatives and explicit line breaks; child-list observation refreshes labels when forwarded agent names hydrate. The hover-card provider still owns pointer and keyboard-focus details. (ui/src/components/session-link-titling.ts:55, fc1eecf248c9)
  • Final change and regression coverage: Compared with the stated session-link capture revision, the final production change only adds the wrapping class to ordinary reply names. Browser coverage exercises actual forwarded and ordinary reply renderers, alongside baseline, containment, and single-line ellipsis checks. The PR reports 263 passing focused tests; this read-only review did not execute them. (ui/src/pages/chat/components/chat-message-group.ts:492, fc1eecf248c9)
  • Complete captured body recovered: The live body matched captured SHA-256 35af573c4c6443509e0b21412bb4baadfea93916255c421dbbddaa9a0deb9757, allowing inspection of the omitted tail without substituting different evidence. It reports Chromium mock-app interaction and layout observations, and explicitly distinguishes historical build/E2E results from final-head validation. (fc1eecf248c9)
  • Visual inspection limitation: Inspected prepared proof-image-1.png and proof-image-3.png: both show the before presentation. The manifest records 404 responses for both prepared after-image URLs. Additional mobile, interaction, and final reply-attribution image URLs also returned HTTP 404; browser retrieval of two sampled URLs failed with Cache miss. Final screenshots were therefore not visually verified by this reviewer. (fc1eecf248c9)

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Have a reviewer inspect accessible final before/after images for session links and narrow ordinary reply attribution.

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 (5 earlier review cycles)
  • reviewed 2026-09-09T23:40:17.413Z sha d8ffb1f0c4f9b287181f3f4e2666bdabf6e8584c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-10T01:56:21.487Z sha a833468de569014efc3a4d975d20c418ff92c6e9 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-10T02:18:47.272Z sha f75655b52ecf2a5da0e0b983063043531dd7dac4 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-11T07:36:54.107Z sha 87e21eec753c7656dfc7972cb1ebef720fc32705 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T05:55:29.057Z sha b2e0e49 :: 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. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 10, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the feat/chat-session-chip-icon branch from f75655b to 87e21ee Compare September 11, 2026 06:38
@vyctorbrzezowski vyctorbrzezowski changed the title feat(ui): add chat icons and align session reference chips feat(ui): render session references as accent links with the claw icon Sep 11, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the feat/chat-session-chip-icon branch from 87e21ee to b2e0e49 Compare September 13, 2026 05:47
@vyctorbrzezowski vyctorbrzezowski changed the title feat(ui): render session references as accent links with the claw icon feat(ui): render session references as accent links with a chat icon Sep 14, 2026
@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 14, 2026
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

boring

@vyctorbrzezowski
vyctorbrzezowski deleted the feat/chat-session-chip-icon branch October 1, 2026 17:29
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. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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.

Improve session reference chips with chat icons and inline alignment

1 participant