Repository navigation
fix(auto-reply): stop mislabeling sanctioned silent NO_REPLY finals as delivery failures (ENG-18092) - #131
Merged
convyusboy merged 2 commits intoAug 18, 2026
Conversation
…s delivery failures (ENG-18092) A NO_REPLY-only final (the system-prompt-mandated pattern after a message-tool delivery) was being marked as a delivery failure, which combined with fleet-wide progressNudge produced a spurious 'run hit an error' notice on turns that actually succeeded. Also adds a turnSkipped reason field so a turn that never reached the agent (busy/aborted/duplicate admission skip) is distinguishable from one that ran and produced nothing, with always-on logging that previously didn't exist for several of these paths.
|
I'll analyze this and get back to you. |
There was a problem hiding this comment.
All reported issues were addressed across 4 files
Tip: instead of fixing issues one by one fix them all with cubic
Re-trigger cubic
… ticket refs from comments/tests Address cubic review on ENG-18092's PR: the plugin-owned-binding pre-dispatch abort and the dedupe/duplicate skip both set turnSkipped but never emitted the admission log added alongside them. Also removes Linear ticket ID references from test titles and inline comments per repo convention.
There was a problem hiding this comment.
Approved — clean, well-scoped fix for the mislabeled delivery_failed on sanctioned silent NO_REPLY finals (ENG-18092).
Strong points:
isIntentionallySilentFinalReplyreuses the dispatcher's ownnormalizeReplyPayloadsilent-skip detection instead of a parallel narrower check — the right call, it can't drift from what the dispatcher actually refuses.- Keys strictly on
skipReason === "silent", soempty/heartbeatcorrectly stay out of the exemption. - Media carve-out is preserved and locked by a test: a NO_REPLY final carrying undelivered media still flags
delivery_failed. attemptedFinalDelivery = attemptedFinalDelivery || !intentionallySilentpreserves prior truth and only spares the genuinely-silent reply — correct.turnSkippedis additive/optional and the always-on admission logging closes the real gap where a busy/aborted skip was indistinguishable from an agent that produced nothing (one path had zero bookkeeping).
No config/default/migration changes, no secrets in history, tests cover the two nastiest edges (mixed-content **NO_REPLY + media-bearing token). Deferral of the wider message-tool detection to ENG-18262 is reasonable. Ship it.
convyusboy
deleted the
ridho/eng-18092-openclawanychat-boon-web-skippedsuppressedaborted-turns
branch
August 18, 2026 09:30
Willi8910
added a commit
that referenced
this pull request
Aug 20, 2026
Version-bump-only release cutting the seven commits merged to boon since v2026.6.11-boon.19: #129 (deliver an attachment when prose is fused onto the MEDIA: path), #131 (stop mislabeling sanctioned silent NO_REPLY finals as delivery failures, ENG-18092), #133 (fingerprint sentry-monitor hook captures and surface the real Python exception line), #130 (docs cross-link), and the #36 / #77 / #113 dependency bumps. Bumps the gateway plus @openclaw/slack, @openclaw/msteams, and @openclaw/diagnostics-prometheus to 2026.6.11-boon.20 in lockstep across all 8 manifests, and adds the CHANGELOG entry. No code changes. Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What Problem This Solves
ENG-18092 investigated silent/aborted turns in
openclawnever posting a callback. Two of the ticket's three asks turned out to already be resolved elsewhere (see the linked comment on the issue for detail); chasing the third surfaced a more impactful, previously-unknown bug in the same code path.Primary bug:
src/auto-reply/reply/dispatch-from-config.ts's per-reply loop didn't special-case a legitimate silentNO_REPLYfinal — the system-prompt-mandated pattern (system-prompt.ts:557) the model uses after delivering visible output via themessagetool, specifically to avoid duplicating the reply. The loop unconditionally treated this reply as an attempted delivery, and since the real dispatcher correctly refuses to send a silent-token payload, it got markeddispatchReplyOperation.fail("delivery_failed", ...)— a turn that had just delivered real content was recorded as failed.Downstream impact:
progress-nudge-runner.tstreatsdelivery_failedas a genuine failure. Combined withagents.defaults.progressNudge.enabled: truebeing live fleet-wide, any tool-heavy turn running past the 45s threshold (e.g. a takeoff analysis on a large upload) got a spurious, contradictory "The run hit an error before it could finish..." message immediately after successfully delivering its answer.Secondary gap: a busy/aborted admission skip (the turn never reached the agent at all) was indistinguishable, in the returned result, from an intentional silent turn (the agent ran and produced nothing) — across 5 separate code paths in the same file, one of which (an entry-level abort check) had zero logging or bookkeeping of any kind.
Why This Change Was Made
delivery_failedbug produces a real, contradictory user-facing message on any channel withprogressNudgeenabled (confirmed live on the Boon fleet since 2026-07-24) — it undermines trust in a turn that actually succeeded.messages.queue.mode: "collect"(the Boon fleet's queue setting) end-to-end and confirmed the busy-skip path is not a rare corner case: the admission gate runs before collect's queue-mode logic is consulted, so a concurrent message normally waits (bounded by stuck-session recovery) and busy-drops on exhaustion — a plausible, concrete mechanism for the ticket's original "3 stalls, zero output" symptom.message_tool_only) was deliberately deferred to ENG-18262 rather than bundled here.User Impact
messagetool and correctly close withNO_REPLYno longer get a spurious "run hit an error" progress-nudge message.turnSkipped: "active-run" | "aborted" | "duplicate"reason on the dispatch result (new optional field, additive), and is always logged (auto-reply/reply-admissionsubsystem,infolevel) instead of being--verbose-only or, in one case, completely silent.Evidence
**NO_REPLY) and a media-carve-out case (NO_REPLY+ undelivered media must still flagdelivery_failed).tsgo(core) typecheck clean;oxlint/oxfmtclean on all touched files.🤖 Generated with Claude Code
Summary by cubic
Stops marking intentionally silent NO_REPLY finals as delivery failures and records why a turn was skipped before the agent ran (ENG-18092). Previously, a NO_REPLY final after a message-tool delivery was treated as
delivery_failed, triggering a spurious progress‑nudge error; now these finals complete, while genuine undelivered media still fail.Reviewer notes
normalizeReplyPayload, including mixed forms like"**NO_REPLY"; only silent tokens that also include media still setdelivery_failed.turnSkipped: "active-run" | "aborted" | "duplicate"toDispatchFromConfigResultand emits always-on info logs inauto-reply/reply-admission; covers heartbeat fast-path, pre‑dispatch/dispatch admission, plugin-owned-binding pre‑dispatch abort, and dedupe/duplicate skip.Written for commit 4e4ecba. Summary will update on new commits.