Skip to content

fix(ui): long user messages show a corner chevron instead of a Show more link - #147232

Merged
steipete merged 3 commits into
mainfrom
steipete/chat-bubble-chevron-cbe566
Sep 13, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/chat-bubble-chevron-cbe566

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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

Before After
collapsed user bubble with a corner chevron collapsed user bubble with an inline Show more link

Expanded state with "Show less" at the bottom of the bubble:

expanded user bubble ending in a Show less link

  • ui/src/pages/chat/components/chat-message.test.ts: 238 passed
  • ui/src/e2e/chat-user-bubble-disclosure.e2e.test.ts: 4 passed
  • ui/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)
  • Codex autoreview at P2: scoped-clean

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.
@steipete
steipete marked this pull request as ready for review September 13, 2026 17:35
@clawsweeper

clawsweeper Bot commented Sep 13, 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 app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 3:30 PM ET / 19:30 UTC (Revision 3).

ClawSweeper review

What this changes

The 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
Reviewed head: ef5f2bd178f9e6fa6a9c6d71c5d21a6804e511ed

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable presentation change with convincing visual evidence and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after browser screenshots directly demonstrate the changed message renderer’s collapsed inline Show more control and expanded Show less control using synthetic chat history in the real Control UI with a mocked Gateway; reported interaction and anchoring tests provide supplemental coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after browser screenshots directly demonstrate the changed message renderer’s collapsed inline Show more control and expanded Show less control using synthetic chat history in the real Control UI with a mocked Gateway; reported interaction and anchoring tests provide supplemental coverage.
Evidence reviewed 8 items Introduced patch verified: The local merge-base-to-head diff matches the supplied introduction evidence. It changes disclosure presentation while retaining the existing clamp, click callback, translated labels, and aria-expanded state.
Current main still uses the corner control: Fetched main retains an icon-only button, an accessible label, and the has-overflow presentation class; the requested inline text control is not already implemented there.
Latest release retains corner positioning: The v2026.9.4 stylesheet positions the disclosure button absolutely at the bubble’s top-right and reserves right padding. The supplied latest release does not contain this layout improvement.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Source -11, Tests 0. Total -11 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 2 16 27 -11
Tests 1 2 2 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 18 29 -11

Review metrics

None.

Technical review

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

Labels

Label justifications:

  • P3: This is a bounded chat-disclosure usability improvement with no configuration, storage, or transport changes.
  • 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 before/after browser screenshots directly demonstrate the changed message renderer’s collapsed inline Show more control and expanded Show less control using synthetic chat history in the real Control UI with a mocked Gateway; reported interaction and anchoring tests provide supplemental coverage.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after browser screenshots directly demonstrate the changed message renderer’s collapsed inline Show more control and expanded Show less control using synthetic chat history in the real Control UI with a mocked Gateway; reported interaction and anchoring tests provide supplemental coverage.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after browser screenshots directly demonstrate the changed message renderer’s collapsed inline Show more control and expanded Show less control using synthetic chat history in the real Control UI with a mocked Gateway; reported interaction and anchoring tests provide supplemental coverage.

Evidence

What I checked:

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)

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 (2 earlier review cycles)
  • reviewed 2026-09-13T17:42:31.202Z sha ba0db74 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T18:50:45.909Z sha 5e68f48 :: needs maintainer review before merge. :: none

@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 13, 2026
@steipete
steipete merged commit aa10cb7 into main Sep 13, 2026
126 checks passed
@steipete
steipete deleted the steipete/chat-bubble-chevron-cbe566 branch September 13, 2026 19:45
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
…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.
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: XS 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.

1 participant