Description
Cron jobs configured with wakeMode: "now" are being marked as completed (status: "ok") without actually waking/invoking an agent session to process the task.
Configuration
{
"name": "example-reminder",
"enabled": true,
"schedule": {
"kind": "cron",
"expr": "30 8 10 1 *"
},
"sessionTarget": "main",
"wakeMode": "now",
"payload": {
"text": "Reminder: Do something important",
"kind": "systemEvent"
}
}
Expected Behavior
When the cron fires:
- Agent session should be woken/created
- The payload text should be delivered to the agent
- Agent should process the task (e.g., send a notification)
- Job marked complete with actual
durationMs reflecting agent processing time
Actual Behavior
- Cron fires at scheduled time
- No agent session is created or woken
- Job immediately marked as
finished with status: "ok"
durationMs: 0 - indicating no agent work was done
- The
summary field just echoes the payload text, not a result of agent processing
Evidence from Run Logs
{
"ts": 1768033800001,
"jobId": "<uuid>",
"action": "finished",
"status": "ok",
"summary": "Reminder: Do something important",
"runAtMs": 1768033800001,
"durationMs": 0,
"nextRunAtMs": 1799569800000
}
Additional Context
- No session files were created or modified during the cron execution window
- The issue appears specific to
kind: "systemEvent" payloads with wakeMode: "now"
- Other cron jobs show the same pattern (
durationMs: 0 across multiple jobs)
Environment
- Running as
gateway-daemon on Linux
- Node.js v22.21.0
Description
Cron jobs configured with
wakeMode: "now"are being marked as completed (status: "ok") without actually waking/invoking an agent session to process the task.Configuration
{ "name": "example-reminder", "enabled": true, "schedule": { "kind": "cron", "expr": "30 8 10 1 *" }, "sessionTarget": "main", "wakeMode": "now", "payload": { "text": "Reminder: Do something important", "kind": "systemEvent" } }Expected Behavior
When the cron fires:
durationMsreflecting agent processing timeActual Behavior
finishedwithstatus: "ok"durationMs: 0- indicating no agent work was donesummaryfield just echoes the payload text, not a result of agent processingEvidence from Run Logs
{ "ts": 1768033800001, "jobId": "<uuid>", "action": "finished", "status": "ok", "summary": "Reminder: Do something important", "runAtMs": 1768033800001, "durationMs": 0, "nextRunAtMs": 1799569800000 }Additional Context
kind: "systemEvent"payloads withwakeMode: "now"durationMs: 0across multiple jobs)Environment
gateway-daemonon Linux