claude-code
claude-code copied to clipboard
[BUG] Scheduled tasks: failed runs show as succeeded, fired tasks vanish, outcomes are hard to find
Product: Claude desktop app (Code tab), Windows 11 — local scheduled tasks
Summary
After a one-time scheduled task fires, it silently disables itself and its run session blends in with ordinary sessions. Nothing in the app shows whether the task achieved its goal: a run whose check failed is still marked succeeded, so failures are only found by opening each run session and reading it.
Steps to reproduce
- Create a one-time scheduled task whose prompt performs a check that can fail (e.g. "verify job X ran; report FAIL if it didn't").
- Let it fire while the check fails.
- Look at the Scheduled tasks list and the task's Runs pane.
Expected
- The run is marked failed (or at least "needs attention") when the agent reports the check failed.
- A failed or late run produces a notification or badge that persists until acknowledged.
- Fired one-time tasks stay findable with their last outcome (e.g. a "Completed" / "Needs attention" section).
Actual
- Status does not reflect outcome. One run's summary reads "The … check failed on part 2: … the republish step never ran and cannot run on scheduled runs", yet its run status is
succeeded. Run status appears to mean "session ended without crashing", not "task succeeded". - Tasks vanish after firing. 31 of my 33 tasks show
enabled: falsewith only alastRunAttimestamp; the task view gives no result and no pass/fail signal. - Runs get lost. Run sessions appear as ordinary sessions, and some are archived (
archived: true). The only reliable way to see outcomes is to open each task's Runs pane one by one, or query the run list through the tool API. - Late runs are not flagged. A task due at 00:40 UTC started at 09:12 UTC (~8.5 h late, likely machine asleep). No "missed/late" marker; it is visible only in raw timestamps.
Impact
I use scheduled tasks for operational follow-ups (morning checks after a production release, verifying a nightly job). A missed failure means a broken production job goes unnoticed until someone stumbles on it. Today I have to manually re-audit every past run.
Suggestions
- Let a run report an outcome (pass / fail / needs attention) separate from whether the session crashed, and show it on the task and in the run list.
- A persistent "Needs attention" view or badge for failed and late runs until acknowledged.
- Keep fired one-time tasks in a "Completed" section showing their last outcome instead of mixing them with disabled tasks.
- Make scheduled-run sessions visually distinct in the sidebar (icon/filter), and do not auto-archive failed runs.