Repository navigation
fix(ui): remove first-reply confetti from chat - #143167
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 9, 2026, 10:34 AM ET / 14:34 UTC (Revision 2). ClawSweeper reviewWhat this changesRemoves 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 Review scores
Verification
How this fits togetherThe 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]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -119, Tests -69. Total -188 across 3 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Pre-merge verification at 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 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. |
|
Merged via squash.
|
…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) ...
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).1440x900390x844The 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
startControlUiE2eServer,installMockGateway, andcreateControlUiE2eArtifactDir; sends through the actual composer and assertschat.send, visible final text, canvas additions, and storage flag before/after.pnpm ui:buildpasses with the unchanged grouping manifest. Shipped JavaScript contains neither the first-reply flag nor the removed function.pnpm check:changedpasses, including core-test and UI type checks, core lint, i18n verification, dead-export scans, and repository guards.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 requiredopenclaw/ci-gateis 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:
"1""1""1""1"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.