Skip to content

fix(ui): keep experimental chat bubbles readable and opt-in - #169347

Merged
roboclaw-bot merged 3 commits into
mainfrom
openclaw/bubble-identity-and-activity-refinements
Oct 11, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
openclaw/bubble-identity-and-activity-refinements

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Experimental chat bubbles obscured commentary and tool progress, and repeated square corners did not point to the speaker's identity.

User Impact

Speech bubbles are now off by default behind Settings → Labs → Speech bubbles. Enabling gateway.controlUi.experimental.chatBubbles makes Home use bubbles by default; explicit per-session on/off choices remain browser-local and survive disabling/re-enabling the lab. Config changes hot-apply without a Gateway restart.

Only the first message points toward the existing avatar, later bubbles stay rounded, and groups have more breathing room. Commentary remains visible while compact labeled tool disclosures expose the existing cards and output. Ordinary live work retains one dots indicator; startup, approval, and child-wait states keep their explicit controls.

Why This Change Was Made

Keep conversational output readable without disguising completed tools as typing. Reuse the current Labs/config/bootstrap and UI preference owners rather than adding a separate feature state store. The one approved config option updates the generated core-config budget from 2498 to 2499; plugin/channel budgets are unchanged.

Evidence

  • 123 focused UI tests, 31 bootstrap/reload tests, 9 browser preference tests, and 5 bundled Chromium E2E tests passed. UI unit selection: 6.74s wrapper wall time (5.66s Vitest); bundled E2E selection: 25.74s wall time. Original proof used the implementation head; the later commits only repair test fixtures.
  • Core/UI and all 28 test type graphs, scoped lint/style, remaining guards, and UI build passed. Independent code and hands-on UI review covered expansion, identity, reduced motion, mobile code/tables, and attachment-only completion.
  • Real event-to-DOM E2E proved a first unpunctuated fragment appears before tool/final events and keyed preamble survives tool boundaries. The renderer delay was not reproduced: baseline 13.2ms, candidate 30.5ms in the mock-Gateway harness. These are not provider first-token measurements and do not establish a speedup.
  • Full changed-check stopped at 40 unused exports, independently reproduced unchanged on a clean base with zero candidate-only entries. The existing Chat boot-request budget also fails on both revisions (36/35); no budget was relaxed. These failures remain recorded, not presented as green.
  • Existing limitation: an authoritative attachment-only final can replace an unphased unfinished stream tail. Canonical keyed preambles are retained and tested.

Current-head CI disposition

Head dcfeac82d8b740faf431af6303f7cef88d59a21d includes two test-only repairs: both static pane contexts now implement the existing config subscription contract, and the composer test expects Speech bubbles to be absent while Labs is off. The affected pane tests passed (151 unit tests and 7 Chromium tests), and all 8 composer scenarios passed.

CI run 38175290317 (attempt 1) completed with six failing browser shards; this is not green CI. Its 42 failing parameterized cases belong to unchanged history-boundary, scroll/focus, table overflow, model-catalog wording, offline preference replay, and theme refresh-count behavior. The actual tested merge was a344fd26e562c1e231b1c2e423a0d7b410a5babf, with main parent 9310023551cd7c8987096e9936eee77db9e69d1c. Independent clean-main runs reproduced all 16 non-theme cases. A baseline theme run reproduced the common config.get-count failure in the first five parameter values before a Gateway restart interrupted it; the other 21 theme variants were not rerun. All 26 hosted theme variants fail at that same unchanged assertion, before the contrast checks. Exact source/object and retained-log attribution is recorded for the native inherited-failure admission; no retries, weakened assertions, or CI green claims substitute for that evidence.

Before

Before: commentary collapsed and repeated lower corners

After

After: visible commentary, compact activity, and first-only identity corner

Thanks to @steipete and @vyctorbrzezowski for the request and design feedback.

Work sessions

Gate speech bubbles behind Labs, default Home on while enabled, and retain explicit per-session preferences. Keep the first avatar-facing upper corner, readable commentary and compact tool activity with one ordinary live dots disclosure.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 11, 2026 20:39
@clawsweeper

clawsweeper Bot commented Oct 11, 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 docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime size: L labels Oct 11, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Oct 11, 2026
@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR gates speech bubbles behind Labs, preserves conversation preferences, and makes commentary and tool activity easier to read.

Example: An assistant says “I’ll check the spacing first.” before reading layout.css.

  • Before: Commentary is folded behind dots, and successive answer bubbles repeat square lower corners.
  • After: Commentary stays visible, tool activity has a labeled disclosure, and only the first message has an avatar-facing corner.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, owner-directed UI work with inspected visual evidence and no established introduced defect; CI attribution remains incomplete.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected browser screenshots demonstrate visible commentary, compact labeled activity, and first-only corners; the reported bundled browser scenarios additionally cover streaming and live Labs updates, and the latest revision changes only a test expectation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Experimental bubbles obscure narration and make completed activity resemble typing.
Reason: Maintainer-authored direction supports the Labs gate and presentation changes, which reuse existing state and rendering owners.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep this maintainer-authored PR open: the readability improvements remain useful, and the latest commit correctly updates the default-off menu expectation without changing production code; no introduced code defect was established.

Priority: P2
Reviewed head: dcfeac82d8b740faf431af6303f7cef88d59a21d

Before merge

  • Complete next step - Compare the settings-prefs-reconnect offline-theme failure with the tested base, then fix it if introduced here or record the matching inherited failure.

Findings

None.

Tests

  • Missing end-to-end proof: The added tests are reported passing, but a baseline-failing run for the new readability assertions is not supplied.
Agent review details

How this fits together

Gateway configuration publishes the Labs flag through Control UI bootstrap; browser preferences and transcript projections determine the rendered conversation layout.

flowchart LR
  A[Gateway configuration] --> B[Bootstrap presentation]
  B --> C[Application config]
  D[Browser preferences] --> E[Bubble mode selection]
  C --> E
  E --> F[Transcript projection]
  F --> G[Chat messages and activity]
Loading

Technical review

Best possible solution:

Retain the existing Labs, bootstrap, preference, and transcript owners while shipping the approved opt-in presentation.

Do we have a high-confidence way to reproduce the issue?

The original grouping and compact activity paths explain the hidden commentary, and the inspected before screenshot shows it; no target code was executed during this review.

Is this the best way to solve the issue?

The implementation fits the existing owners, preserves explicit browser choices, and gives the experiment an in-product discovery path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 291178c2e1ae.

Provenance checked

  • Speech-bubble selection and compact activity changes intended behavior with a stated reason (90e1bc0: Provide per-session conversational presentation while keeping detailed activity behind compact disclosures.)
  • Solid transcript views keeps the original intent (4e3818b: Preserve keyed transcript identity, focus, media, and disclosure lifetimes during the Solid migration.)
  • Completed-turn work grouping changes intended behavior with a stated reason (2a87667: Keep a tool-using run in one response frame with one terminal action owner.)
  • Labs hot reload keeps the original intent (052d26e: Apply Labs settings without restarting the Gateway.)
  • Presentation identity fields moved to the pane base keeps the original intent (f61ad7d: Keep own messages right-aligned during refresh and reconnect.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit 90e1bc0 adds ui/src/pages/chat/chat-bubble-mode.ts:12 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 90e1bc0a0a0f; files: ui/src/pages/chat/chat-bubble-mode.ts)
  • Peter Steinberger: Raw commit 4e3818b adds ui/src/pages/chat/components/chat-message-activity-view.tsx:222 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4e3818bab0fe; files: ui/src/pages/chat/components/chat-message-activity-view.tsx)

PR surface

Source +127, Tests +466, Docs +23, Generated 0. Total +616 across 49 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 31 286 159 +127
Tests 13 498 32 +466
Docs 3 24 1 +23
Config 0 0 0 0
Generated 2 3 3 0
Other 0 0 0 0
Total 49 811 195 +616

Review metrics

Metric Value Why it matters
Configuration surface 1 new boolean option gateway.controlUi.experimental.chatBubbles defaults off and uses the existing hot-reload and Labs contracts.

Labels

Label changes:

  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P2: This improves an optional Control UI layout with limited user impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-11T20:45:54.541Z sha eaecdd7 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-11T20:57:08.749Z sha 962fca4 :: needs maintainer review before merge. :: none

Reviewed October 11, 2026, 5:25 PM ET / 21:25 UTC (Revision 3).

roboclaw-bot and others added 2 commits October 11, 2026 20:50
Static chat pane contexts must implement the application config subscription contract now used for live Labs updates. Preserve production subscription behavior and repair the shared test fixtures.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review — source head dcfeac8 only corrects the stale default-off Labs menu expectation since your completed 962fca4 review. The 8 bundled composer scenarios now pass; production source remains unchanged.

@clawsweeper

clawsweeper Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 11, 2026
@roboclaw-bot
roboclaw-bot merged commit 670ad6a into main Oct 11, 2026
127 of 135 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/bubble-identity-and-activity-refinements branch October 11, 2026 21:37
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
…#169347)

* fix(ui): refine experimental chat bubbles and activity

Gate speech bubbles behind Labs, default Home on while enabled, and retain explicit per-session preferences. Keep the first avatar-facing upper corner, readable commentary and compact tool activity with one ordinary live dots disclosure.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(test): honor config subscriptions in pane fixtures

Static chat pane contexts must implement the application config subscription contract now used for live Labs updates. Preserve production subscription behavior and repair the shared test fixtures.

Co-authored-by: steipete <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>

* test(ui): expect bubbles hidden outside Labs

Co-authored-by: steipete <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>

---------

Co-authored-by: steipete <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
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 docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. 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: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant