Repository navigation
Description
Problem
When the model outputs text followed by NO_REPLY (e.g. "summary of work done...NO_REPLY"), the text before NO_REPLY leaks to the user as a visible message. This violates the intended behavior where NO_REPLY should suppress the entire reply.
This is especially common with weaker models (e.g. GLM-5) running heartbeat tasks, which tend to output internal summaries before appending NO_REPLY rather than outputting it as the sole content.
Current behavior
- Model outputs:
"All tasks completed:\n• infra: 0 alerts\n• gmail: 0 new\nNO_REPLY" - User sees: the summary text (NO_REPLY is stripped but the preceding text is delivered)
Expected behavior
If a model response contains NO_REPLY (or ends with it), the entire message should be suppressed — not just the NO_REPLY token itself.
Suggested implementation
Post-processing rule in the reply pipeline: if the raw model output matches /NO_REPLY/ (or perhaps /(^|\n)\s*NO_REPLY\s*$/), treat the entire response as a silent ack, same as a clean NO_REPLY.
This would make the NO_REPLY contract robust against models that prepend reasoning/summaries before the suppression token.
Context
- Heartbeat tasks with
zhipu-cn-coding/glm-5frequently trigger this - The
HEARTBEAT.mdandAGENTS.mdalready instruct the model to output onlyNO_REPLY, but instruction-following varies by model - A gateway-level guard would be more reliable than prompt-level enforcement
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
openclaw-barnacle commentedon Apr 27, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
clawsweeper commentedon Apr 27, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed July 30, 2026, 11:32 PM ET / July 31, 2026, 03:32 UTC.
Summary
Keep open. The report identifies a plausible internal-text leak, but the requested “contains NO_REPLY” rule would reverse an established behavior that strips a trailing token and delivers substantive text; the appropriate silent-reply boundary needs maintainer product and security judgment. An open implementation candidate is already linked, so a parallel repair should not be dispatched.
Reproducibility: unclear. for current main. Related proposals provide a concrete source-level path—mixed text followed by a terminal NO_REPLY reaches normalization—but the read-only sandbox prevented fresh current-main execution or line-level verification.
Root-cause cluster
Relationship:
canonicalCanonical: #42472
Summary: This is the canonical repository issue for the duplicated report; the remaining proposed implementation is an open external fork candidate rather than a merged same-repository fix.
Members:
duplicate: Feature: post-process NO_REPLY to suppress partial leaks #42473 - It has the same title, was created immediately after this issue, and contains only “See above.”.adjacent_distinct: fix(auto-reply): strip stray punctuation before silent-reply token detection #98224 - It fixes punctuation around token-only NO_REPLY responses, not whether mixed content before a terminal token should be suppressed.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Ways to help us reproduce this
Maintainer decision needed
Why: The current reported leak conflicts with an established mixed-content delivery contract, so selecting the suppression boundary determines both user-visible messaging and potential internal-text exposure.
Next step
A linked open implementation candidate exists, but maintainers must choose the silent-reply compatibility and security boundary before a single repair path is safe.
Security
Needs attention: The issue changes the boundary between suppressing potentially internal model text and silently dropping potentially meaningful replies, so the final grammar needs security-aware maintainer review.
Review details
Best possible solution:
Define and test one explicit silent-reply grammar—preferably terminal token-only or terminal own-line handling that preserves deliberate inline text—then implement it at the shared reply boundary and prove both final and streaming delivery behavior.
Do we have a high-confidence way to reproduce the issue?
Unclear for current main. Related proposals provide a concrete source-level path—mixed text followed by a terminal NO_REPLY reaches normalization—but the read-only sandbox prevented fresh current-main execution or line-level verification.
Is this the best way to solve the issue?
No—not as written. A blanket contains-based rule is broader than the established mixed-content behavior; a terminal own-line boundary or a structured silent outcome is the safer maintainable direction.
AGENTS.md: unclear because the file could not be read completely.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 5337e85f111a.
Label changes
Label justifications:
P2: This is a bounded but user-visible reply-delivery concern whose safe behavior boundary remains unresolved.impact:security: The reported failure can expose model-generated internal status or reasoning text that the silent token was meant to withhold.impact:message-loss: The requested change changes whether mixed replies are intentionally delivered or suppressed on channel paths.Evidence reviewed
Security concerns:
A contains-based rule may suppress meaningful user-facing text, while an overly narrow rule can expose internal text; select and test an explicit terminal-token contract across delivery paths.
Confidence: 0.85
What I checked:
src/auto-reply/reply/reply-utils.test.ts, 2fda1fbd7111)src/auto-reply/tokens.ts, 19d621e760be)src/auto-reply/tokens.ts, 076a1754e8f0)Likely related people:
src/auto-reply/tokens.ts,src/auto-reply/tokens.test.ts)src/auto-reply/tokens.ts,src/auto-reply/reply/normalize-reply.ts,src/auto-reply/reply/reply-directives.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.31 remaining items
openclaw-barnacle commentedon Aug 15, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Aug 22, 2026
Closing due to inactivity.
If this is still an issue, please retry on the latest OpenClaw release and share updated details.
If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.