Repository navigation
fix: suppress false no-reply fallback during session continuation - #119154
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 4:22 AM ET / 08:22 UTC. ClawSweeper reviewWhat this changesThe PR prevents a yielded or pending-tool session continuation from receiving a false no-reply fallback before its final response arrives. Merge readinessNo blocking code finding. The PR repairs the direct-dispatch gap by carrying the agent-result continuation fact to both fallback decisions; its protected Priority: P2 Review scores
Verification
How this fits togetherAuto-reply runs an agent, prepares reply payloads, and finalizes channel delivery. Finalization sends a no-reply fallback only when a directed turn is truly terminal and no visible response was delivered. flowchart LR
A[Inbound channel turn] --> B[Agent run]
B --> C[Continuation classification]
C --> D[Reply payload preparation]
D --> E[Dispatch finalization]
E --> F[Final reply or no-reply fallback]
Decision needed
Why: The source and behavior evidence support the narrow fix, but the protected label requires an owner to make the final merge decision for this user-visible fallback behavior. Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +41, Tests +2. Total +43 across 7 files. View PR surface stats
Review metrics
Mantis proof suggestionA redacted Telegram Desktop recording would independently show that no fallback appears before the continuation response. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Technical reviewBest possible solution: Keep continuation state authoritative at agent-result classification and land this direct-dispatch counterpart once the protected maintainer review and exact-head checks are complete. Do we have a high-confidence way to reproduce the issue? Yes: current main classifies yielded and pending-tool results as non-terminal in payload preparation, while direct finalization still emits its own fallback without that fact. Is this the best way to solve the issue? Yes: propagating the already-classified continuation fact is the narrowest maintainable repair; re-deriving it from filtered payloads or suppressing all empty replies would lose real failure reporting. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9faf34d3bcb6. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Landed via squash onto main.
|
…checkpoint * origin/main: (46 commits) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) fix(auto-reply): suppress false no-reply fallback during continuations (#119154) fix(scripts): prevent gateway benchmarks from stalling on probes (#119063) test(channels): verify built sanitizer semantics (#119151) fix: prevent live updater from leaving Gateway offline indefinitely (#119116) test(qa): restore memory tools primary ownership (#119142) fix(agents): settle yielded fanout at harness boundary (#118703) fix(codex): cap compaction override warning cache via createDedupeCache (#101745) fix(daemon): skip unlabeled launchd plists (#119091) test(qa): repair QA catalog integrity (#119140) ...
* origin/main: (208 commits) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (#119218) test(qa): cover Canvas agent and node controls (#119047) fix(cli): avoid repeated migration scans during local agent turns (#119051) fix(gateway): keep agents list on prepared model facts (#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (#119121) fix(qqbot): keep channel API calls on the active account [AI] (#118575) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) fix(auto-reply): suppress false no-reply fallback during continuations (#119154) ...
…time * origin/main: (177 commits) fix(telegram): route reactions to their originating forum topics test(gateway): isolate scheduled service timers (#119218) test(qa): cover Canvas agent and node controls (#119047) fix(cli): avoid repeated migration scans during local agent turns (#119051) fix(gateway): keep agents list on prepared model facts (#119208) fix(telegram): retry update offset persistence fix(ci): accept profiled partial Kova gates (#119121) fix(qqbot): keep channel API calls on the active account [AI] (#118575) fix(agents): recover from invalid compaction summaries (#119137) fix(gateway): expose OAuth-backed tools to CLI agents (#119166) fix(plugins): preserve metadata reloads during models status (#119183) fix(test): bound direct gateway server runs (#119184) test(tui): prove command surfaces through PTY (#119165) fix(testbox): restore claims across path aliases (#119170) fix(message): preserve sends with incidental Telegram locations fix(perf): give each concurrency sample a full deadline (#119164) fix(testbox): remove changed-gate sync residue (#119163) fix(telegram): preserve later chunks after rejected sends fix(tui): block terminal controls in system messages (#118998) fix(auto-reply): suppress false no-reply fallback during continuations (#119154) ...
openclaw#119154) * fix(auto-reply): keep pending continuations silent * docs(auto-reply): clarify fallback ownership --------- Co-authored-by: Ayaan Zaidi <[email protected]>
Closes #119152
What Problem This Solves
Fixes an issue where users waiting for a
sessions_yieldcontinuation could receive a false “No reply was generated” message before the final response arrived.Why This Change Was Made
The reply pipeline now carries its existing yielded/pending-tool continuation fact into dispatch finalization. Empty-reply fallback delivery remains enabled for true terminal failures, but not while continuation work is pending.
User Impact
Users see the progress preview followed by the final response, without a misleading failure message in between.
Evidence
main: expected no final reply, received the no-reply fallback. It passes with this change.node scripts/run-vitest.mjs src/auto-reply/reply/dispatch-from-config.test.ts src/auto-reply/reply/agent-runner.runreplyagent.e2e.test.ts— 442 passed.OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 CI=1 pnpm check:changed— passed locally. Blacksmith Testbox was unavailable because this host lacks the Crabbox/Blacksmith client toolchain.