Repository navigation
fix(web): keep short multiline user messages expanded - #128085
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
vyctorbrzezowski
marked this pull request as ready for review
August 23, 2026 03:03
vyctorbrzezowski
force-pushed
the
brzezowski/user-bubble-clamp
branch
from
August 23, 2026 03:23
0d23cce to
1a6644b
Compare
vyctorbrzezowski
force-pushed
the
brzezowski/user-bubble-clamp
branch
from
August 23, 2026 03:27
1a6644b to
f7e2bb0
Compare
Member
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 23, 2026
* fix(web): keep short user prompts expanded * test(ui): drop non-regressing disclosure cases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #128083
What Problem This Solves
Fixes an issue where short multiline messages in the Control UI were collapsed after five visual lines, hiding part of a roughly 90-character prompt behind a chevron.
Why This Change Was Made
Web Control UI prompts become eligible for disclosure above 1,200 UTF-16 code units, while an exceptional 40-line cap prevents newline-heavy prompts from creating effectively unbounded bubbles. The web only installs the five-line preview for eligible messages and retains rendered-overflow measurement so long Markdown that renders short does not get a no-op toggle.
User Impact
Short Control UI prompts remain fully readable even when they contain several explicit line breaks. Long prompts still show a bounded preview with working expand/collapse controls.
Mobile Follow-up
iOS/OpenClawKit and Android are intentionally unchanged in this PR. Aligning their disclosure thresholds remains a separately scoped mobile follow-up; no new issue was opened per maintainer direction.
Evidence
Playwright before/after
The same isolated mocked-Gateway flow also proves that a source over 1,200 characters whose Markdown renders within five lines gets no disclosure control.
Tests and checks
pnpm test ui/src/pages/chat/components/chat-message-markdown— 9 passed.pnpm test ui/src/pages/chat/components/chat-message— 199 passed.node scripts/check-changed.mjs— passed the web-onlycoreTests, uilanes, including formatting, dead-code, i18n, core/UI typechecks, and lint.origin/main: zero accepted/actionable findings on the web-only bundle.pnpm docs:listplus targeted search found no user-facing documentation for this internal threshold, so no docs update is needed.Scope and LOC