You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] NO_REPLY fragment leaks to webchat UI #39335
When the agent responds with NO_REPLY (e.g., after a memory flush prompt), a partial fragment ("NO") sometimes appears in the webchat UI on the next user message's response.
Reproduction Steps
System sends a memory flush prompt to agent
Agent appends to memory, responds with NO_REPLY
User sends next message immediately after
Agent responds to user's message
Bug: UI displays "NO" fragment at top of agent's response (see screenshot effect)
Expected Behavior
NO_REPLY should be fully suppressed and never visible to the user in any form.
Observed Behavior
Partial "NO" appears as a separate text block above the actual response, confusing the user (appeared agent was refusing the request).
Environment
Channel: webchat (openclaw-control-ui)
Likely timing overlap or compaction artifact
Impact
User confusion — looks like agent is saying "no" to their request when it's actually a leaked system protocol.
Current main already suppresses streamed NO_REPLY lead fragments in gateway chat events and filters silent assistant rows from chat.history, with matching regression tests and changelog entries showing the fix shipped in v2026.3.2.
What I checked:
Gateway suppresses NO_REPLY lead fragments before broadcast:src/gateway/server-chat.ts:704 clears exact suppressed control replies, src/gateway/server-chat.ts:708 buffers lead fragments instead of broadcasting them, and src/gateway/server-chat.ts:712 strips a glued leading NO_REPLY token before emitting chat text. (src/gateway/server-chat.ts:704)
Regression test covers the reported NO leak:src/gateway/server-chat.agent-events.test.ts:255 explicitly asserts that streaming NO, NO_, NO_RE, NO_REPLY does not leak into the final chat message. (src/gateway/server-chat.agent-events.test.ts:255)
Control UI filters silent assistant history rows:ui/src/ui/controllers/chat.ts:43 identifies assistant silent replies, ui/src/ui/controllers/chat.ts:74 hides them from history results, and ui/src/ui/controllers/chat.ts:451 ignores silent streaming/final payloads. (ui/src/ui/controllers/chat.ts:43)
Control UI tests lock in history and streaming filtering:ui/src/ui/controllers/chat.test.ts:95 ignores NO_REPLY delta updates, ui/src/ui/controllers/chat.test.ts:136 drops NO_REPLY finals from another run, and ui/src/ui/controllers/chat.test.ts:525 plus ui/src/ui/controllers/chat.test.ts:727 verify assistant NO_REPLY rows are filtered from chat.history while user text is preserved. (ui/src/ui/controllers/chat.test.ts:95)
Changelog records the fix as shipped: Under release 2026.3.2, CHANGELOG.md:3347 says Gateway/WebChat suppresses NO_REPLY lead-fragment deltas to prevent partial NO leaks, and CHANGELOG.md:3369 says WebChat filters NO_REPLY-only transcript entries from chat.history and adds client-side guards. (CHANGELOG.md:3254)
Latest release still contains the implemented behavior: The latest release commit 00bd2cf7a376f1fba26291c6c4766f1f15cbdfa5 contains the same gateway suppression and Control UI filtering code and the same regression test. (00bd2cf7a376)
So I’m closing this as already implemented rather than keeping a duplicate issue open.
Activity
[-]NO_REPLY fragment leaks to webchat UI[/-][+][BUG] NO_REPLY fragment leaks to webchat UI[/+]rnrnstar2 commentedon Mar 8, 2026
Priority: P1 - NO_REPLY機能の回帰。ユーザーにNO_REPLYタグがそのまま表示され、UX品質を著しく損なう。
liangruochong44-ui commentedon Mar 8, 2026
分析建议
这个问题可能是以下原因导致:
建议排查方向:
可能修复位置:
liangruochong44-ui commentedon Mar 8, 2026
分析建议
这个问题可能是以下原因导致:
NO_REPLY标记建议排查方向:
openclaw-control-ui中消息渲染逻辑,确认是否在显示前过滤了协议级响应可能修复位置:
packages/webchat/src/components/MessageList.tsx- 消息过滤逻辑packages/gateway/src/channels/webchat/handler.ts- 消息处理rnrnstar2 commentedon Mar 8, 2026
🔥 P1 Priority - NO_REPLY fragment leaks to webchat UI, showing "NO" fragment to users. User-visible bug affecting UI reliability. Requires response stream handling fix.
openclaw-barnacle commentedon Apr 23, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
steipete commentedon Apr 24, 2026
Closing this as implemented after Codex review.
Current
mainalready suppresses streamedNO_REPLYlead fragments in gateway chat events and filters silent assistant rows fromchat.history, with matching regression tests and changelog entries showing the fix shipped inv2026.3.2.What I checked:
src/gateway/server-chat.ts:704clears exact suppressed control replies,src/gateway/server-chat.ts:708buffers lead fragments instead of broadcasting them, andsrc/gateway/server-chat.ts:712strips a glued leadingNO_REPLYtoken before emitting chat text. (src/gateway/server-chat.ts:704)src/gateway/server-chat.agent-events.test.ts:255explicitly asserts that streamingNO,NO_,NO_RE,NO_REPLYdoes not leak into the final chat message. (src/gateway/server-chat.agent-events.test.ts:255)ui/src/ui/controllers/chat.ts:43identifies assistant silent replies,ui/src/ui/controllers/chat.ts:74hides them from history results, andui/src/ui/controllers/chat.ts:451ignores silent streaming/final payloads. (ui/src/ui/controllers/chat.ts:43)ui/src/ui/controllers/chat.test.ts:95ignoresNO_REPLYdelta updates,ui/src/ui/controllers/chat.test.ts:136dropsNO_REPLYfinals from another run, andui/src/ui/controllers/chat.test.ts:525plusui/src/ui/controllers/chat.test.ts:727verify assistantNO_REPLYrows are filtered fromchat.historywhile user text is preserved. (ui/src/ui/controllers/chat.test.ts:95)2026.3.2,CHANGELOG.md:3347says Gateway/WebChat suppressesNO_REPLYlead-fragment deltas to prevent partialNOleaks, andCHANGELOG.md:3369says WebChat filtersNO_REPLY-only transcript entries fromchat.historyand adds client-side guards. (CHANGELOG.md:3254)00bd2cf7a376f1fba26291c6c4766f1f15cbdfa5contains the same gateway suppression and Control UI filtering code and the same regression test. (00bd2cf7a376)So I’m closing this as already implemented rather than keeping a duplicate issue open.
Review notes: reviewed against cb2c36b04975; fix evidence: release v2026.3.2.