[BUG] Claude Desktop freezes on launch when scheduled-tasks.json exists in claude-code-sessions

Status Closed — not planned
Reported on v2.1.71
Maintainer reply None cached
Activity 11 comments · opened Mar 8, 2026 · closed Apr 6, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Description: Claude Desktop (v1.1.5368, macOS arm64) freezes on startup when a
scheduled-tasks.json file exists in ~/Library/Application
Support/Claude/claude-code-sessions/<account-id>/<org-id>/. The main process
pegs at 100% CPU and the UI becomes unresponsive.

Resolution: Removing scheduled-tasks.json from the claude-code-sessions
directory resolves the freeze immediately. All other session files load fine.

Environment: macOS 26.3.1, Apple M4 Pro, Claude Desktop 1.1.5368

What Should Happen?

Claude should open and run the scheduled task.

Error Messages/Logs

[CCDScheduledTasks] Spawning new session for scheduled task daily-blog-post   
                                                                                
  After that, the app just keeps resetting and reinitializing in a loop
  (09:45:05 → 09:45:51 → 09:48:10 → 09:49:37). No explicit error — it spawns the
   task, something goes wrong, resets, and loops forever.

Steps to Reproduce

[CCDScheduledTasks] Spawning new session for scheduled task daily-blog-post

After that, the app just keeps resetting and reinitializing in a loop
(09:45:05 → 09:45:51 → 09:48:10 → 09:49:37). No explicit error — it spawns the
task, something goes wrong, resets, and loops forever.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.71

Platform

Other

Operating System

macOS

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

11 Comments

github-actions[bot] · 5 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/32155
  2. https://github.com/anthropics/claude-code/issues/32072
  3. https://github.com/anthropics/claude-code/issues/32125

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

brennanvitali-vwp · 5 months ago

Removing the schedule tasks resolves this issue. I am using Claude desktop and had to troubleshoot with Claude terminal by removing all sessions and going one by one.

Miandari · 5 months ago

Similar issue but in the Cowork path. Claude Desktop 1.1.5368, macOS 26.4 (Tahoe), Apple M3 Pro.
In my case scheduled-tasks.json is in local-agent-mode-sessions (not claude-code-sessions). Same result: app freezes on launch at 100% CPU.
The trigger is specifically the filePath field on any task. A task without filePath loads fine. Adding filePath (even with enabled: false and coworkScheduledTasksEnabled: false in config) causes the freeze.
CPU sample shows the main thread blocked in uv__work_done → FileHandle::CloseReq::Resolve() → microtask/V8 loop. Appears the VM boot is happening synchronously on the main thread.
What I did to get it to work was to empty the scheduledTasks array before launching and then to recreate tasks again through the UI.

brycethornton · 5 months ago

Thanks @brennanvitali-vwp and @Miandari. This solved it for me.

glangford · 5 months ago

Thank you @Miandari - my scheduled-tasks.json is also in local-agent-mode-sessions (not claude-code-sessions).

Removing this file solved the problem. MacOS 15.7.4.

Dithy-Balaji-Official · 5 months ago

@Miandari - Can you confirm if the recreation of tasks via the UI still causes Claude to crash on restart, or if deleted the file and recreating permanently resolves the issue? Thanks.

Miandari · 5 months ago
@Miandari - Can you confirm if the recreation of tasks via the UI still causes Claude to crash on restart, or if deleted the file and recreating permanently resolves the issue? Thanks.

Yeah, recreating the tasks through the UI solved the problem permanently.

Dithy-Balaji-Official · 5 months ago

Doesn’t that still recreate the schedule JSON? Or at that point does it not
matter.

Dithy Balaji
Seattle, WA

On Mon, Mar 9, 2026 at 2:04 PM Mostafa Miandari Hossein <
@.***> wrote:

Miandari left a comment (anthropics/claude-code#32167) <https://github.com/anthropics/claude-code/issues/32167#issuecomment-4026906489> @Miandari <https://github.com/Miandari> - Can you confirm if the recreation of tasks via the UI still causes Claude to crash on restart, or if deleted the file and recreating permanently resolves the issue? Thanks. Yeah, recreating the tasks through the UI solved the problem permanently. — Reply to this email directly, view it on GitHub <https://github.com/anthropics/claude-code/issues/32167#issuecomment-4026906489>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AQGJKQBGH3RWPGZMAJGXC6L4P4WXRAVCNFSM6AAAAACWLAROUKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DAMRWHEYDMNBYHE> . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Miandari · 5 months ago

The root cause was a Daylight Saving Time bug, not the file itself. Anthropic confirmed it on their status page: when the app tried to resolve tasks scheduled during the "skipped" DST hour it entered an infinite loop.
Recreating tasks through the UI works because the new tasks get fresh timestamps that don't fall in the skipped hour. The old scheduled-tasks.json had lastRunAt / cron times that landed in the DST gap.
The actual fix is updating to version 1.1.5749 that patches the DST handling so the original file would work too.

github-actions[bot] · 4 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

github-actions[bot] · 4 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.