-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Bug: systemEvent+sessionTarget:main cron jobs report ok but never execute shell commands #84923
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Priority
None yet
Description
systemEventcron jobs withsessionTarget: "main"andwakeMode: "now"are scheduled correctly and show status"ok"with"ran X hours ago"— but the shell command inpayload.textis never actually executed because there is no activemainagent session.The gateway reports success but the script never runs. This is a silent failure.
Impact
3 production cron jobs appeared to run successfully for 12 days but never executed:
tango-events-daily—node tango-daily.js(daily tango event report)daily-spend-summary—node daily-spend-summary.js(AI spend)meta-pixel-enrichment-reminder— notification command (Meta pixel deadline)Same pattern as
daily-update-researchandjarvice-qa-dailywhich were moved to system crontab on May 16 by someone who hit the same wall but did not report it.Root cause
src/cron/service/timer.ts—executeMainSessionCronJob(): the systemEvent is dispatched to amainagent session. If nomainsession is active, the event is silently dropped. Gateway marks the job asokanyway.Expected behavior
"skipped"or"failed"with a clear reason, not"ok"Workaround
Move shell-command cron jobs to the system crontab (
crontab -e). Gateway cron only works reliably foragentTurnjobs that need AI agent processing.