claude-code - 💡(How to fix) Fix Durable cron jobs fire across all open sessions, not scoped to the session that created them [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54734Fetched 2026-04-30 06:37:29
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×2commented ×1cross-referenced ×1
RAW_BUFFERClick to expand / collapse

When a durable cron job is created in one Claude Code session, any other session open on the same machine can pick it up and fire it. This makes it difficult to keep scheduled work organized and auditable, especially when running multiple chats simultaneously.

Expected behavior: A durable cron job should fire in the session that created it, or at minimum provide a way to pin a job to a specific session.

Actual behavior: Any idle session on the machine can fire any durable job, regardless of which session scheduled it. This causes duplicate runs and makes it unpredictable which chat will execute the job.

Suggested improvement: Scope durable cron jobs to the session that created them, or add a session-pinning option so users can control which session runs a given job.

extent analysis

TL;DR

Implement session-scoped durable cron jobs or add a session-pinning option to prevent unintended job execution across multiple sessions.

Guidance

  • Identify the current implementation of durable cron jobs and how they are stored or referenced across sessions.
  • Consider adding a session identifier to each job to track which session created it and ensure only that session can execute it.
  • Explore adding a configuration option or parameter to allow users to pin a job to a specific session, if scoping by creation session is not feasible.
  • Review the current job execution logic to determine how to prioritize or restrict job execution based on the session that created the job or is pinned to it.

Notes

The exact implementation details of the durable cron job system and session management are not provided, so the guidance is focused on general approaches to addressing the issue.

Recommendation

Apply workaround: Implement session-scoped durable cron jobs or add a session-pinning option, as this directly addresses the reported issue and provides users with control over job execution across multiple sessions.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Durable cron jobs fire across all open sessions, not scoped to the session that created them [1 comments, 2 participants]