Skip to content

fix(ui): remove first-reply confetti from chat - #143167

Merged
Patrick-Erichsen merged 1 commit into
mainfrom
fix/remove-chat-confetti
Sep 9, 2026
Merged

Patrick-Erichsen merged 1 commit into
mainfrom
fix/remove-chat-confetti

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where users see an unsolicited confetti burst over the Control UI chat after the first completed assistant reply in a browser profile.

Why This Change Was Made

Remove the first-reply animation and its obsolete dedicated tests. Keep normal final-reply rendering, terminal cleanup, and PR-link refresh behavior unchanged. This is the explicitly requested removal; no new setting or dependency is introduced.

The generated boot manifest is unchanged: its entries are grouping predicates for modules already in the bundle graph, not imports. Its old confetti key is inert after deleting the module. Full regeneration introduced unrelated regrouping, so it is outside this scoped change; the grouped production UI build succeeds without the removed module.

User Impact

Assistant replies appear normally without confetti, including in a fresh browser profile.

Evidence

Real Control UI in isolated Chromium with the repository's mocked Gateway, synthetic conversation, dark theme, en-US, normal motion, and a fresh browser profile. Identical route (/chat), prompt, reply, viewport, and 400 ms post-final capture point on both revisions. The invitation card is dismissed by the harness. No live Gateway or operator data was changed.

Baseline: 82050740b551c9f1fe9f06d0e14defc3a38d8305. Candidate: f1d4b52134730fc2a78df59e6b7f2615670198b8 (only the three-file confetti removal).

State Viewport Before After Assertion
First completed reply 1440x900 Before: confetti burst After: normal reply without confetti Same reply visible; fixed canvas additions 1 → 0; no new celebration storage flag.
First completed reply 390x844 Before: confetti burst After: normal reply without confetti Same reply visible; fixed canvas additions 1 → 0; no new celebration storage flag.

The videos include the send, pending response, final reply, and completion of the old animation window. Screenshots and video frame sequences inspected before upload. Empty, content-heavy, error, disabled, and permission states are omitted because this removal changes no layout or those states; its only entry point is a visible final assistant reply. The pending-response state is covered by the interaction recordings at both viewports.

Desktop before / after

before-1440x900.mp4
after-1440x900.mp4

Mobile before / after

before-390x844.mp4
after-390x844.mp4

Validation

  • Standalone Playwright proof uses startControlUiE2eServer, installMockGateway, and createControlUiE2eArtifactDir; sends through the actual composer and asserts chat.send, visible final text, canvas additions, and storage flag before/after.
  • pnpm ui:build passes with the unchanged grouping manifest. Shipped JavaScript contains neither the first-reply flag nor the removed function.
  • Independent autoreview: scoped-clean through P2; no actionable findings.
  • Existing chat-state and PR-refresh suites: 160 tests pass across 3 files.
  • pnpm check:changed passes, including core-test and UI type checks, core lint, i18n verification, dead-export scans, and repository guards.
  • Hosted CI: all test jobs pass on the same head. The initial unrelated Linux PID-fixture failure (plugin-lifecycle-measure.test.ts:313, ENOENT) passed on a same-head rerun, including the exact stubborn-descendant assertion. The rerun passed 697 + 505 tests across both bundled suites, with no source changes. Successful retry. The required openclaw/ci-gate is green on this exact head.

Existing-browser / upgrade compatibility

The removed localStorage key is only a write-once decoration marker (openclaw.confetti.firstReply), not serialized application state or a schema. No migration or deletion of existing browser data is needed. The new code neither reads nor writes the marker; an existing "1" remains unchanged. If reverting to the old implementation, that preserved marker still suppresses the celebration through its existing non-null check.

Additional actual-UI mock-Gateway runs preseeded the old marker at desktop and mobile, sent a normal chat turn, and verified the completed reply remains visible:

Viewport Marker before Marker after Added confetti canvases
1440×900 "1" "1" 0
390×844 "1" "1" 0

Together with the fresh-profile captures (missing marker stays missing), this covers both existing and new browser profiles. There is no SQLite, protocol, config, or persisted-content change. This addresses the automated data-model compatibility classification without introducing an unnecessary migration.

@clawsweeper

clawsweeper Bot commented Sep 9, 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.

@Patrick-Erichsen
Patrick-Erichsen marked this pull request as ready for review September 9, 2026 14:18
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Sep 9, 2026
@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 9, 2026
@clawsweeper

clawsweeper Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 9, 2026, 10:34 AM ET / 14:34 UTC (Revision 2).

ClawSweeper review

What this changes

Removes the Control UI chat’s first-reply confetti animation and its dedicated tests while preserving reply handling and pull-request link refreshes.

Merge readiness

⛔ Blocked before merge - 1 item remains

This PR remains useful: current main and the latest release retain the animation. No actionable patch defects were found, and the added existing-browser evidence resolves the previous upgrade-compatibility concern.

Priority: P3
Reviewed head: f1d4b52134730fc2a78df59e6b7f2615670198b8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct removal with strong visual evidence and a resolved browser-compatibility concern.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected desktop and mobile screenshots show the actual Control UI’s completed reply without the removed effect. The captured body ties these to the pinned head and real composer with a mocked Gateway, and reports fresh/existing-profile runs preserving replies and marker values.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected desktop and mobile screenshots show the actual Control UI’s completed reply without the removed effect. The captured body ties these to the pinned head and real composer with a mocked Gateway, and reports fresh/existing-profile runs preserving replies and marker values.
Evidence reviewed 8 items Introduced change preserves reply processing: The pinned merge-base-to-head diff removes the animation module, its three dedicated tests, and its invocation. The chat handler still executes once; the PR-link predicate and terminal queue cleanup retain their ordering and conditions.
Current main still invokes confetti: Fetched main retains the first-reply invocation. Its affected production files match the pinned PR merge base, so this removal is not already implemented there.
Latest release retains the decoration marker: The v2026.9.3 implementation reads and writes the once-only confetti marker. The proposed removal is not present in that release.
Findings None None.
Security None None.

How this fits together

The Control UI receives chat events from the Gateway and updates the visible conversation. This change removes a decorative effect from completed replies without changing message processing.

flowchart LR
  A[Gateway chat event] --> B[Chat event handler]
  B --> C[Update conversation]
  B --> D[Clear completed queue entries]
  B --> E[Check visible reply for PR links]
  E --> F[Refresh pull request details]
  C --> G[Reply displayed without confetti]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source -119, Tests -69. Total -188 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 2 3 122 -119
Tests 1 0 69 -69
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 3 191 -188

Review metrics

None.

Stored data model

Persistent data-model change detected: serialized state: ui/src/components/confetti.ts, unknown-data-model-change: ui/src/components/confetti.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep the normal reply pipeline intact and leave the obsolete browser marker untouched; no migration or replacement setting is needed.

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

Not applicable as a defect reproduction: this intentionally retires an existing visual effect. Current source and the supplied before/after captures clearly establish the behavior.

Is this the best way to solve the issue?

Yes. Removing the sole animation owner and caller is a narrow solution; retained reply processing and untouched browser markers avoid unnecessary compatibility work.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 82b91e54092f.

Labels

Label justifications:

  • P3: This is a bounded visual cleanup that leaves chat delivery, settings, and persisted content unchanged.
  • 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 desktop and mobile screenshots show the actual Control UI’s completed reply without the removed effect. The captured body ties these to the pinned head and real composer with a mocked Gateway, and reports fresh/existing-profile runs preserving replies and marker values.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected desktop and mobile screenshots show the actual Control UI’s completed reply without the removed effect. The captured body ties these to the pinned head and real composer with a mocked Gateway, and reports fresh/existing-profile runs preserving replies and marker values.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected desktop and mobile screenshots show the actual Control UI’s completed reply without the removed effect. The captured body ties these to the pinned head and real composer with a mocked Gateway, and reports fresh/existing-profile runs preserving replies and marker values.

Evidence

What I checked:

  • Introduced change preserves reply processing: The pinned merge-base-to-head diff removes the animation module, its three dedicated tests, and its invocation. The chat handler still executes once; the PR-link predicate and terminal queue cleanup retain their ordering and conditions. (ui/src/pages/chat/chat-state-events.ts:577, f1d4b5213473)
  • Current main still invokes confetti: Fetched main retains the first-reply invocation. Its affected production files match the pinned PR merge base, so this removal is not already implemented there. (ui/src/pages/chat/chat-state-events.ts:587, 82b91e54092f)
  • Latest release retains the decoration marker: The v2026.9.3 implementation reads and writes the once-only confetti marker. The proposed removal is not present in that release. (ui/src/components/confetti.ts:17, 1391f7cd2d40)
  • Inspected desktop and mobile visual proof: Inspected all four downloaded screenshots recorded in media-proof-manifest.json. Both before images show confetti over the completed synthetic conversation; both after images show the same reply without confetti. The captured PR body identifies isolated Chromium, the actual composer, a mocked Gateway, normal motion, and baseline/head revisions. Videos were not needed to establish this visual change and were not inspected. (f1d4b5213473)
  • Previous compatibility concern resolved: The supplied body at sourceRevision 8b14767ff5a2c9133144de7b8a2645928872a9ab977ec995df337d6982fd012a reports actual-UI runs for fresh and existing browser profiles at both viewports: missing markers remain missing, existing "1" values remain unchanged, and replies render without added confetti canvases. Source confirms deletion of the marker’s only reader/writer, with no replacement storage operations or migration. (ui/src/pages/chat/chat-state-events.ts:580, f1d4b5213473)
  • Remaining manifest entry is inert: Boot-manifest entries populate sets used by module-group predicates; they do not import listed files. The leftover confetti key therefore does not load the deleted module. The PR also reports a successful grouped production build. (ui/config/control-ui-chunking.ts:118, f1d4b5213473)

Likely related people:

  • steipete: 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 (1 earlier review cycle)
  • reviewed 2026-09-09T14:24:03.771Z sha f1d4b52 :: blocked before merge. :: none

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Pre-merge verification at f1d4b52134730fc2a78df59e6b7f2615670198b8: no unresolved review threads or actionable code findings. I inspected the four desktop/mobile screenshots, the four recording contact sheets, the capture harness, and its result files.

The latest ClawSweeper review's remaining “Add data-model compatibility proof” checklist item is satisfied by the existing-browser runs already in the PR body: both viewports keep the prior openclaw.confetti.firstReply = "1" value untouched, add zero confetti canvases, and render the completed reply. Fresh profiles keep the marker absent. The same review's technical analysis confirms this resolves the previous concern. No migration is needed because the removed module was the marker's sole reader/writer; there is no chat-content or schema change. No separate Rank-up moves are listed.

The canonical fix deletes the sole animation owner and trigger, preserving event handling and PR-link refresh ordering. Production: +3/-122 (net -119); animation-only tests: -69. Existing owner/sibling tests, builds, and changed-file checks pass. Visual proof uses the real Control UI with a mocked Gateway and synthetic conversation. Exact-head hosted CI must finish green before native landing.

@Patrick-Erichsen
Patrick-Erichsen merged commit 425a90d into main Sep 9, 2026
293 of 295 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the fix/remove-chat-confetti branch September 9, 2026 14:46
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 9, 2026
…er-ownership-20260909

* origin/main: (147 commits)
  fix(cli): reject blank account selectors before command startup (#143088)
  fix(update): repair young runs after recorded drivers exit (#143136)
  test(telegram): close model callback fixture connections (#143197)
  improve(test): reduce Telegram policy fixture startup overhead (#143192)
  test(ci): stabilize systemd manager shim timing (#143134)
  fix(test): retire chat preview Escape listeners during teardown (#143191)
  test(memory-wiki): share visibility test callbacks (#143181)
  fix(ci): accept native iOS keychain filenames (#142968)
  fix(ci): show publication observations in FRV status (#143171)
  fix(github): point the stuck-FAQ auto-response at a live anchor (#143194)
  docs: correct verified accuracy defects in CLI, tools, and automation pages (#143179)
  refactor(tests): remove duplicate Mistral cache-cost test (#143172)
  fix(doctor): complete canonical model-reference migration (#142284)
  fix(ci): reject stale and empty timing sample cohorts (#143182)
  fix(ui): remove first-reply confetti from chat (#143167)
  docs: split help/faq into 13 topic pages (#143150)
  refactor(docs): require caller-owned route indexes (#143164)
  fix(android): distinguish connection status from chat readiness (#143128)
  refactor: share agent-turn execution test defaults (#143166)
  fix(cli): print immutable-config refusals without crash framing (#143140)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 10, 2026
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: S 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