Claude Code Scheduled Tasks Survive Compaction and Resume

Claude CodeView original changelog

Claude Code 2.1.290 fixes /loop and reminder tasks silently disappearing after conversation compaction or a background hand-off. Recurring tasks no longer fire an extra run on every resume, respawn or fork, and background sessions waiting on a scheduled wakeup are no longer shut down by updates or low memory.

Key Takeaways

  • /loop and reminders now survive conversation compaction on resume, for compactions made from 2.1.290 on.
  • Foreground tasks now keep firing after a left-arrow or /background hand-off.
  • Extra runs on resume, respawn and fork no longer happen for recurring tasks.
  • Background sessions waiting on a wakeup are no longer restarted or shut down by updates or low memory.
  • Cloud sessions now tell Claude when a container restart lost a pending wakeup, so it can reschedule.
  • Agent view keeps the /loop run count and countdown through worktree entry, and restarts the count after /clear.

Tasks that used to vanish

Scheduled tasks, including /loop with an interval and reminders, silently failed to come back on resume once the conversation had been compacted. Claude Code 2.1.290 fixes this for compactions made from this version on. Tasks set in the foreground also never fired after a left-arrow or /background hand-off. Both cases left users with a loop they believed was running.

Extra runs removed

Recurring tasks fired an extra run on every resume, respawn or fork, and session-only tasks ran an extra time after a sandboxed Bash command on Linux or after .claude/scheduled_tasks.json was deleted. These duplicates are fixed.

Background and cloud sessions

Background sessions waiting on a scheduled wakeup are now left running through updates and low memory, where being restarted or shut down could silently lose the wakeup. Background sessions whose scheduled task is gone now move to Completed about 20 seconds later. In cloud sessions, a container restart that lost a pending /loop wakeup now tells Claude, which can schedule it again. Agent view also keeps a background session's /loop run count, countdown and live status line after the session enters a worktree it creates, and restarts the count after /clear.