Scheduled task silently fails (lastRunAt advances, no session/output) even with Mac awake and app open
Description
A daily scheduled task (veille-onelaiv-quotidienne, cron 0 11 * * *) silently fails
to produce its output roughly once every few days. lastRunAt advances to the expected
fire time and nextRunAt moves to the next day, but no session is created and no output
file is written — no error, no notification.
What I ruled out
- Machine sleep:
pmset -g logconfirms the Mac's display was on and the machine was
not asleep for the entire scheduled window (11:09–11:19 CEST) on the day this last happened
(2026-07-28).
- App not running: confirmed the Claude Code app was open at the scheduled fire time.
- A local session that ran but wasn't logged right: no session (running, completed, or
archived) matching this task appears in the session list for that date, even though the
scheduler's lastRunAt/nextRunAt both advanced as if it had fired.
Impact
- No error surfaces anywhere locally — the only symptom is a missing output file, discovered
after the fact.
- No local logs are accessible to diagnose why the run didn't produce a session/output — this
makes the failure undiagnosable from the client side.
Ask
- Surface a failure/error state on the scheduled task (e.g.
lastRunFailedor similar) instead
of silently advancing lastRunAt as if the run succeeded.
- If possible, expose execution logs for scheduled task runs so failures can be diagnosed locally.
Frequency
Not every day — happened at least 4 times over ~1 week (2026-07-23, 25, 26 with the Mac asleep,
ruled out; 2026-07-28 with the Mac awake and app open, cause unknown).
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗