Repository navigation
feat(ui): render assistant replies as a flat text stream in web chat - #104016
Merged
Merged
Conversation
Contributor
Author
|
Merged via squash.
|
This was referenced Jul 11, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 11, 2026
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.
What Problem This Solves
The Control UI chat renders both sides of a conversation as card bubbles. Long assistant replies read as heavy floating boxes, and the double-bubble layout wastes horizontal space and falls apart in narrow windows (see the sidebar-overlap complaints in narrow layouts). Assistant output is a stream of prose, code, and tool activity — a card border and background add chrome without meaning.
Why This Change Was Made
Assistant replies now render as a flat text stream: no card background, border, hover outline, or inner padding, with the reply column widened to the same measure as tool activity rows so agent text, tool rows, and code blocks share one left edge. User messages keep the accent bubble on the right, so turns stay easy to scan. This is CSS-only (
ui/src/styles/chat/grouped.css) using the same reset pattern as the existing flat tool-row shell; DOM structure, hover actions, right-click reply, and delete affordances are unchanged. This also aligns the Control UI with the documented Mac WebChat presentation ("assistant messages render as plain text with an avatar, user messages as accent bubbles",docs/platforms/mac/webchat.md). Web (Control UI) only; channel transports are untouched.User Impact
Agent replies in the web UI (and the Mac app's embedded web view) read as a continuous document instead of stacked cards: wider readable measure, aligned code blocks and tool rows, and less visual noise in narrow windows. User messages look the same as before.
Evidence
Deterministic mock-gateway screenshots (Playwright, seeded history with user/assistant/tool turns):
ui/src/pages/chat/chat-responsive.browser.test.tsupdated: card-inset assertions now target the user bubble (which keeps the card), plus a new flat-contract assertion that assistant bubbles have zero horizontal inset. 56/56 tests pass on Blacksmith Testbox.pnpm check:changedgreen (delegated).border: 0— no JS churn; the.chat-bubbleclass stays in the DOM so reply/copy/expand handlers are untouched.