claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Scheduled tasks: failed runs show as succeeded, fired tasks vanish, outcomes are hard to find

Open kamkie opened this issue 2 weeks ago • 0 comments

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

  1. 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").
  2. Let it fire while the check fails.
  3. 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: false with only a lastRunAt timestamp; 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

  1. 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.
  2. A persistent "Needs attention" view or badge for failed and late runs until acknowledged.
  3. Keep fired one-time tasks in a "Completed" section showing their last outcome instead of mixing them with disabled tasks.
  4. Make scheduled-run sessions visually distinct in the sidebar (icon/filter), and do not auto-archive failed runs.

kamkie avatar Nov 19 '26 18:11 kamkie