Skip to content

feat(ui): render assistant replies as a flat text stream in web chat - #104016

Merged
steipete merged 1 commit into
mainfrom
claude/agent-stream-web-ui-708fce
Jul 11, 2026
Merged

steipete merged 1 commit into
mainfrom
claude/agent-stream-web-ui-708fce

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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

Desktop dark Desktop light
desktop dark desktop light
Narrow (620px) dark Mobile (390px) light
narrow dark mobile light
  • ui/src/pages/chat/chat-responsive.browser.test.ts updated: 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:changed green (delegated).
  • Streaming border pulse and hover outline collapse to no-ops via border: 0 — no JS churn; the .chat-bubble class stays in the DOM so reply/copy/expand handlers are untouched.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Jul 11, 2026
@steipete
steipete merged commit ee7c2c1 into main Jul 11, 2026
93 of 96 checks passed
@steipete
steipete deleted the claude/agent-stream-web-ui-708fce branch July 11, 2026 00:43
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant