Repository navigation
fix(auto-reply): keep explicit NO_REPLY silent - #116548
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 30, 2026, 6:55 PM ET / 22:55 UTC. ClawSweeper reviewWhat this changesThis PR carries OpenClaw’s canonical deliberate-terminal-silence result from the agent runner into shared auto-reply finalization so an explicit Merge readiness⛔ Blocked until stronger real behavior proof is added - 4 items remain Keep this PR open for maintainer review. The follow-up commit addresses the earlier ownership concern by carrying the existing deliberate-silence fact into dispatch rather than reclassifying filtered payloads, but the available evidence is still test/CI-oriented and the documented failed-send-plus- Priority: P2 Review scores
Verification
How this fits togetherShared auto-reply dispatch receives an agent-run result, projects reply payloads for channel delivery, then finalizes the turn and may send a fallback notice when nothing visible was delivered. This change preserves the runner’s deliberate-silence decision through that pipeline so finalization can distinguish intentional silence from an empty completion. flowchart LR
A[Incoming directed message] --> B[Agent runner]
B --> C[Deliberate-silence classifier]
B --> D[Reply payload projection]
C --> E[Prepared dispatch state]
D --> F[Channel delivery accounting]
E --> G[Dispatch finalization]
F --> G
G --> H[Silent completion or fallback notice]
Decision needed
Why: The PR deliberately carries a semantic silence classification into a shared delivery fallback, while the discussion identifies failed instructed sends as a narrow exception where silence may hide an unsuccessful user-visible action. Before merge
Agent review detailsSecurityNone. PR surfaceSource +95, Tests +11. Total +106 across 7 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the existing single result classifier and merge only after maintainers decide the failed-send terminal-silence policy and the contributor supplies redacted after-fix runtime evidence showing intentional silence with the ordinary empty-completion fallback still observable. Do we have a high-confidence way to reproduce the issue? No high-confidence live reproduction was available in the supplied evidence. The changed source path and focused regressions make the fallback classification source-reproducible, but they do not independently demonstrate the configured after-fix runtime behavior. Is this the best way to solve the issue? Yes for the ownership correction: carrying the existing agent-result classifier is narrower and safer than deriving a second silence fact from filtered reply payloads. It remains unclear whether that rule should override recovery after a known failed send, which needs maintainer policy confirmation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 43156fe482f3. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Thanks for the ping. I agree with the gate: an explicit One change I would like before merge. That fact already exists as One case I would leave for a follow-up rather than this PR: a turn that was instructed to send, whose send fails, and which returns Agreed on #116560 being complementary rather than a substitute, and thanks for the app-server references. |
|
Addressed in
Focused proof is green, including a synthetic merge with current main and #116560: 407/407 tests passed (Testbox run); changed-lane typecheck/lint/format/guards and fresh autoreview also passed. I left the failed instructed-send + terminal |
|
Pre-merge scope/proof decision:
This records the two optional review suggestions explicitly rather than merging past them silently. |
|
Merged via squash.
|
…-supported-paths * origin/main: (168 commits) fix(plugins): keep registry sqlite root consistent (#116427) fix(cli): keep Gateway auth failures parseable in JSON (#116597) fix(trajectory): preserve prompts in oversized events (#116220) test(buzz): add live QA Lab channel lane (#116298) chore(i18n): refresh native locales (#116567) feat: add OpenClaw TUI prototype skill (#116583) fix(update): accept concrete versions selected by ranges (#116585) fix(agents): preserve locked session model routes test(qa-lab): preserve Matrix fault proxy identity fix(ci): extend OpenAI live profile setup budget (#116580) fix: prevent configured models from stalling startup (#116553) fix(cli): close MCP listener after one-shot commands fix(auto-reply): keep explicit NO_REPLY silent (#116548) test(discord): cover deferred backpressure terminals fix(discord): cancel backpressured realtime playback test(discord): cover realtime output backpressure fix(codex): add remote WebSocket heartbeat and reconnect (#116135) fix(macos): wait for the current reconnect snapshot (#116550) fix(outbound): recognize current-source message-tool sends (#116560) fix(voice-call): type cancelled consult outcomes ... # Conflicts: # extensions/google/setup-api.test.ts # ui/src/e2e/model-setup.e2e.test.ts
* fix(auto-reply): keep NO_REPLY silent * test(auto-reply): cover NO_REPLY across directed turns * fix(auto-reply): carry deliberate silence into dispatch --------- Co-authored-by: Sarah Fortune <[email protected]> Co-authored-by: fuller-stack-dev <[email protected]>
…-supported-paths * origin/main: (168 commits) fix(plugins): keep registry sqlite root consistent (openclaw#116427) fix(cli): keep Gateway auth failures parseable in JSON (openclaw#116597) fix(trajectory): preserve prompts in oversized events (openclaw#116220) test(buzz): add live QA Lab channel lane (openclaw#116298) chore(i18n): refresh native locales (openclaw#116567) feat: add OpenClaw TUI prototype skill (openclaw#116583) fix(update): accept concrete versions selected by ranges (openclaw#116585) fix(agents): preserve locked session model routes test(qa-lab): preserve Matrix fault proxy identity fix(ci): extend OpenAI live profile setup budget (openclaw#116580) fix: prevent configured models from stalling startup (openclaw#116553) fix(cli): close MCP listener after one-shot commands fix(auto-reply): keep explicit NO_REPLY silent (openclaw#116548) test(discord): cover deferred backpressure terminals fix(discord): cancel backpressured realtime playback test(discord): cover realtime output backpressure fix(codex): add remote WebSocket heartbeat and reconnect (openclaw#116135) fix(macos): wait for the current reconnect snapshot (openclaw#116550) fix(outbound): recognize current-source message-tool sends (openclaw#116560) fix(voice-call): type cancelled consult outcomes ... # Conflicts: # extensions/google/setup-api.test.ts # ui/src/e2e/model-setup.e2e.test.ts
What Problem This Solves
Fixes an issue where users addressing an agent could receive a generic no-visible-reply failure message when the model explicitly returned
NO_REPLY.NO_REPLYis a non-empty control response. OpenClaw intentionally removes it before transport, but finalization could then mistake the lack of visible delivery for a genuinely empty model completion.Why This Change Was Made
Preserve the canonical deliberate-terminal-silence classification when deciding whether the no-visible-reply fallback is allowed. The existing
hasDeliberateSilentTerminalReplyclassifier owns this fact from the raw/visible agent result and also covershook_block; the dispatcher now carries that fact forward instead of re-deriving it from filtered reply payloads.This is deliberately narrower than allowing arbitrary empty output to stay silent: an absent or empty completion still receives the fallback when the turn is otherwise eligible. A sibling
NO_REPLYpayload without canonical terminal-silence classification also cannot suppress recovery.The change is in shared core auto-reply dispatch, not a Discord, Slack, or other transport adapter, so it applies to every channel using the common path.
The upstream Codex app-server carries agent-message text through unchanged when it converts a completed turn item (agent-message conversion) and emits the converted item in
item/completed(notification mapping). The silent-token interpretation therefore belongs in OpenClaw.User Impact
An intentional terminal
NO_REPLYremains silent everywhere. Truly empty directed completions continue to surface the existing fallback message.Evidence
NO_REPLYinvokes the canonical internal silence signal before payload projection.NO_REPLYpayload alone does not suppress recovery after a visible final is cancelled.upstream/main43156fe482f(including fix(outbound): recognize current-source message-tool sends #116560): 407/407 tests passed across dispatch, agent runner, and the result fallback classifier (run).pnpm check:changedpassed the core/coreTests typecheck, lint, formatting, boundary, dead-code, and repository guard lanes.git diff --check, and fresh autoreview passed; autoreview reported no accepted/actionable findings.Relationship to #116560
#116560 and this PR are complementary. #116560 repairs channel-agnostic message-tool delivery accounting; this PR repairs channel-agnostic deliberate-silence policy. The combined-main proof above exercises both together.