Repository navigation
fix(ui): long user messages show a corner chevron instead of a Show more link - #147232
Conversation
Collapsed user bubbles exposed their expand control as an icon-only chevron pinned to the top-right corner, which read as a stray tail on the bubble. Render it as an inline "Show more" / "Show less" text toggle at the bottom of the bubble instead, with the visible text as the accessible name. The toggle now renders visible by default in the collapsed state and is hidden only when the content fits the clamp, so collapsing never shifts the row height a frame later. The has-overflow class had one consumer (right padding around the corner button) and goes with it.
|
🦞👀 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 13, 2026, 3:30 PM ET / 19:30 UTC (Revision 3). ClawSweeper reviewWhat this changesThe PR replaces long user messages’ corner chevron with an inline, translated “Show more” or “Show less” button and updates the rendering assertions. Merge readiness✅ Ready for maintainer review Keep open: this remains a useful, maintainer-owned UI improvement absent from current main. The inspected screenshots support the intended result, and no blocking correctness or security findings remain. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI renders chat history into message bubbles and keeps expansion choices in local presentation state. Long user messages retain their complete text while the renderer clips the preview and exposes an expansion control. flowchart LR
A[Chat history] --> B[User message renderer]
B --> C{Long message}
C -->|No| D[Full message]
C -->|Yes| E[Clipped preview and text button]
E --> F[Local expansion state]
F --> G[Expanded message and collapse button]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -11, Tests 0. Total -11 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Use the existing disclosure owner to present a clear inline text control while preserving full message content, local expansion state, and transcript anchoring. Do we have a high-confidence way to reproduce the issue? Not applicable as a functional defect reproduction: this is an affordance improvement to working expansion behavior. Current-main source and the before screenshot establish the corner-chevron presentation. Is this the best way to solve the issue? Yes. Updating the existing button and its styles is a focused solution that preserves the established expansion mechanism and reuses existing translations. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cf45ff4d6a9c. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Merged via squash.
|
…nclaw#147232) Collapsed user bubbles exposed their expand control as an icon-only chevron pinned to the top-right corner, which read as a stray tail on the bubble. Render it as an inline "Show more" / "Show less" text toggle at the bottom of the bubble instead, with the visible text as the accessible name. The toggle now renders visible by default in the collapsed state and is hidden only when the content fits the clamp, so collapsing never shifts the row height a frame later. The has-overflow class had one consumer (right padding around the corner button) and goes with it.
What Problem This Solves
Fixes: long user messages in the Control UI chat expose their expand control as an icon-only chevron pinned to the bubble's top-right corner, which reads as a stray tail on the bubble rather than a "show more" affordance.
User Impact
User impact: collapsed user messages now end with a plain "Show more ˅" link inside the bubble, and expanded ones end with "Show less ˄", matching the pattern people know from other chat clients. Screen readers get the same words as the label. No configuration or migration is involved.
Why This Change Was Made
The toggle moves from an absolutely positioned corner button to an inline control below the clamped text, so the bubble no longer needs right padding or a floating icon. It now renders visible by default in the collapsed state and is only hidden when the content fits the clamp; that keeps the row height stable from the first frame when a message collapses, which the transcript disclosure-anchoring e2e otherwise catches as a scroll jump.
Evidence
Captures from the real Control UI through the mocked-gateway e2e lane (synthetic fixture text).
Expanded state with "Show less" at the bottom of the bubble:
ui/src/pages/chat/components/chat-message.test.ts: 238 passedui/src/e2e/chat-user-bubble-disclosure.e2e.test.ts: 4 passedui/src/e2e/chat-transcript-disclosure-anchor.e2e.test.ts: 8 passed (failed once with the toggle hidden by default; fixed by rendering it visible in the collapsed state)node scripts/check-changed.mjs: exit 0 (UI typecheck, lint, dead-export scan)