Repository navigation
feat(ui): render session references as accent links with a chat icon - #143489
vyctorbrzezowski wants to merge 7 commits into
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: blocked before merge. Reviewed September 13, 2026, 8:26 PM ET / September 14, 2026, 00:26 UTC (Revision 6). ClawSweeper reviewWhat this changesRestyles 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 Review scores
Verification
How this fits togetherThe 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]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +28, Tests +142. Total +170 across 8 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Mantis proof suggestionTargeted 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: Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
f75655b to
87e21ee
Compare
87e21ee to
b2e0e49
Compare
|
boring |
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.messageSquarechat 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
d9c6a942d00a13229636ce5822f8400c272b591cusing the original script and scenes; the Before (main) images are retained. The final reply-attribution repair atfc1eecf248c91defb7f055eb12bb03c9343fbc29adds 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.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.
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.
fc1eecf248c91defb7f055eb12bb03c9343fbc29, the three test files pass: 256 rendering/accessibility tests and 7 Chromium presentation tests (263 total).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
b2e0e494fb8df751c44da5e0b40e14de77f2bc58passed 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.