Repository navigation
fix: a repeated chat frame no longer blanks the assistant reply already on screen - #2431
Conversation
The fast path wrote the stripped text even when the strip consumed the whole frame. The reconcile and new-bubble paths already leave that bubble alone. The fast path now does the same. A later frame that still has new text still updates the bubble. Signed-off-by: Sebastien Tardif <SebTardif@ncf.ca>
|
🦞👀 ClawSweeper review completeClawSweeper finished reviewing this revision. |
|
Codex review: passed. What this changesPreserves the active assistant bubble when a repeated cumulative chat frame strips to empty. Example: After a tool call, a second bubble displays "Here's the partial finding so far for A2." and a frame repeats only "Investigating the workspace layout in detail now."
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This maintainer-authored PR fixes a source-verifiable defect still present on main; the focused patch has no actionable findings. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway chat messages become timeline events consumed by ChatTimelineReducer, whose returned state supplies Companion's native conversation display. flowchart LR
A[Gateway chat frames] --> B[Chat data provider]
B --> C[Conversation state]
C --> D[Chat timeline reducer]
D --> E[Native conversation display]
Technical reviewBest possible solution: Land the existing minimal guard and regression through the normal CI gates. Do we have a high-confidence way to reproduce the issue? The supplied event sequence reaches main's unguarded empty assignment while the second assistant remains active; the PR reports an exact failing-before/passing-after regression, which this read-only review did not execute. Is this the best way to solve the issue? The guard repairs the missing branch of an established duplicate-frame contract without changing prefix matching, delta appends, explicit identities, or ownership. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6c14fe598718. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed December 1, 2026, 12:08 PM ET / 17:08 UTC. |
Drives the openclaw#2254 frame order through the real WebSocket client, chat bridge and provider. Fails without the reducer guard (second reply goes blank) and passes with it. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
7bb4d97edb5f3d7f16a5f6047d04c38fea6b8e09↑ Build, Shared 6236/0 failed, Tray 7228/0 failed locally.
↑ CI Gate green on this head after one rerun of an unrelated setup UI test (
NativeSharedFlowTests.ConfigurationChangeWithdrawsReadyWithoutReplayingSetup).↑ Live openclaw@2026.11.13 Gateway (disposable Windows Sandbox, fake local model, no credentials): a tool-using reply rendered correctly on this head.
↓ Proof was a client harness on the real socket, not a Companion UI screenshot.
↓ A live 2026.11.13 Gateway did not reproduce the blank on main: it streams each reply separately (not cumulative) and sends its empty
replaceframe only after the reply is saved.↓ The reported cumulative frames likely depend on a Gateway version or provider path not tested here.
Closes #2254. During a chat reply that uses a tool, Companion shows a second assistant bubble after the tool runs; if the Gateway then repeats a frame holding only the first bubble's text, that second bubble went blank. This is @SebTardif's fix, cherry-picked with his authorship from his fork (SebTardif/openclaw-windows-node#12) because he could not open a PR here. The streaming fast path now ignores a repeated frame that adds no new text, as the other two paths already did. Opened by a Copilot agent, not Scott.
Two tests fail with the reducer guard removed and pass with it: the reducer test
IntraTurnFastPath_RegressionCumulative_DoesNotBlankActiveBubble(bubble text""), andInteractiveGatewayChatTests.RepeatedCumulativeChatFrameAfterToolDoesNotBlankSecondReplyOverTheRealSocket, which sends the reported frames from the fixture Gateway through the real WebSocket client, chat bridge and provider../build.ps1succeeded, Shared tests passed 6236 (28 skipped) and Tray tests passed 7228 (excluding the host-profile-onlyOpenClawTrayDataDirRedirectsSettingsAwayFromRealAppData). Required proof pools: none, since the change is a pure timeline reducer. Live check: a real openclaw@2026.11.13 Gateway in a disposable Windows Sandbox, with an empty state directory and a fake local OpenAI-compatible model returning a tool-using reply, was driven through the real client, bridge and provider. The reply stayed intact on this head and also on main, so this setup did not reproduce #2254: that Gateway streams each reply separately and sends its emptyreplaceframe after the reply is saved. The fix is still safe; whether a live Gateway sends the reported cumulative frames remains unconfirmed.