fix(cron): enable completion direct send for text-only announce delivery#29151
Merged
Takhoffman merged 1 commit intoopenclaw:mainfrom Feb 28, 2026
Merged
Conversation
Contributor
Greptile SummaryFixed text-only cron announce delivery silently dropping messages by enabling direct-first dispatch strategy. The root cause was that cron's call to Changes:
The fix aligns cron behavior with regular spawned subagents (which set Confidence Score: 5/5
Last reviewed commit: 48485f4 |
vincentkoc
pushed a commit
to Sid-Qin/openclaw
that referenced
this pull request
Feb 28, 2026
vincentkoc
pushed a commit
to rylena/rylen-openclaw
that referenced
this pull request
Feb 28, 2026
mrosmarin
added a commit
to mrosmarin/openclaw
that referenced
this pull request
Feb 28, 2026
* main: (31 commits) fix(browser): resolve correct targetId in navigate response after renderer swap (openclaw#25326) fix: sed escaping and UID mismatch in Podman Quadlet setup (openclaw#26414) fix(cron): pass heartbeat target=last for main-session cron jobs (openclaw#28508) (openclaw#28583) fix(cron): disable messaging tool when delivery.mode is none (openclaw#21808) (openclaw#21896) fix: clear delivery routing state when creating isolated cron sessions (openclaw#27778) fix(cron): avoid marking queued announce paths as delivered (openclaw#29716) fix(cron): enable completion direct send for text-only announce delivery (openclaw#29151) fix(cron): force main-target system events onto main session (openclaw#28898) fix(cron): condition requireExplicitMessageTarget on resolved delivery (openclaw#28017) feat(cron): add --account flag for multi-account delivery routing (openclaw#26284) fix: schedule nextWakeAtMs for isolated sessionTarget cron jobs (openclaw#19541) fix: sandbox browser docker no-sandbox rollout (openclaw#29879) (thanks @Lukavyi) GitHub: add regression bug issue template and routing (openclaw#29864) thanks @Takhoffman feat(feishu): add chat info/member tool (openclaw#14674) feat(feishu): add markdown tables, positional insert, color_text, and table ops (openclaw#29411) feat(feishu): add parent/root inbound context for quote support (openclaw#18529) fix: land android onboarding and voice reliability updates (openclaw#29796) fix(android-voice): rotate playback token per assistant reply fix(android-voice): retry talk config after transient failures fix(android-voice): cancel in-flight speech when speaker muted ...
newtontech
pushed a commit
to newtontech/openclaw-fork
that referenced
this pull request
Feb 28, 2026
nsd97
pushed a commit
to nsd97/openclaw
that referenced
this pull request
Feb 28, 2026
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Mar 1, 2026
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Mar 1, 2026
zooqueen
added a commit
to hanzoai/bot
that referenced
this pull request
Mar 1, 2026
…ery (openclaw#29151) Cherry-pick from upstream openclaw/openclaw 3096837. Passes expectsCompletionMessage and announceType to the subagent announce flow so cron output is sent directly via completion path. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ansh
pushed a commit
to vibecode/openclaw
that referenced
this pull request
Mar 2, 2026
steipete
pushed a commit
to Sid-Qin/openclaw
that referenced
this pull request
Mar 2, 2026
safzanpirani
pushed a commit
to safzanpirani/clawdbot
that referenced
this pull request
Mar 2, 2026
steipete
pushed a commit
to Sid-Qin/openclaw
that referenced
this pull request
Mar 2, 2026
robertchang-ga
pushed a commit
to robertchang-ga/openclaw
that referenced
this pull request
Mar 2, 2026
execute008
pushed a commit
to execute008/openclaw
that referenced
this pull request
Mar 2, 2026
dorgonman
pushed a commit
to kanohorizonia/openclaw
that referenced
this pull request
Mar 3, 2026
sachinkundu
pushed a commit
to sachinkundu/openclaw
that referenced
this pull request
Mar 6, 2026
zooqueen
added a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
…ery (openclaw#29151) Cherry-pick from upstream openclaw/openclaw 3096837. Passes expectsCompletionMessage and announceType to the subagent announce flow so cron output is sent directly via completion path.
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
Mateljan1
pushed a commit
to Mateljan1/openclaw
that referenced
this pull request
Mar 7, 2026
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.
Summary
Fix text-only cron announce delivery silently dropping messages.
When a cron job fires and the agent responds with plain text, the output is routed through the announce flow but never reaches the user. The root cause: cron's call to
runSubagentAnnounceFlowdoesn't setexpectsCompletionMessage, so it defaults tofalse. This gates out the completion direct send path insendSubagentAnnounceDirectly, causing the flow to fall through to the trigger/agent injection path — which injects an internal system message into an idle main agent session where it's silently consumed.The fix is to set
expectsCompletionMessage: trueon the cron announce call, matching what spawned subagents already do (viasubagent-spawn.tsline 192). This enables:callGateway({ method: "send" })to the target channelAlso strips the "✅ Subagent main finished" status header from cron completion messages — cron output is a standalone message, not a subagent result report.
Changes
src/cron/isolated-agent/delivery-dispatch.ts: setexpectsCompletionMessage: trueon therunSubagentAnnounceFlowcallsrc/agents/subagent-announce.ts: skip subagent status header inbuildCompletionDeliveryMessagewhenannounceType === "cron job"expectsCompletionMessageistruein announce call argsTest plan
pnpm test src/agents/subagent-announce— 66 tests passpnpm test src/cron/isolated-agent— 79 tests pass🤖 Generated with Claude Code