claude-code - 💡(How to fix) Fix [BUG] Claude Code won't execute scheduled routines

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…

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

What's Wrong?

When I try and run scheduled routines, my code doesn't execute and is stuck at "setting up cloud container". Some have been stuck at this for a day now.

What Should Happen?

My code should execute. It won't even start.

Error Messages/Logs

Steps to Reproduce

Bug: Remote routine sessions stuck indefinitely at "Setting up a cloud container"

Environment

Claude Code: v2.1.138 Model: claude-opus-4-7, Max plan Platform: macOS Routine type: CCR (cloud remote), environment env_011WjLDooWBsw1B8NKh4T8qD (anthropic_cloud) Steps to reproduce

Create a remote routine at claude.ai/code/routines with a cron schedule and a git repository source Trigger the routine — either via the scheduled cron or manually via "Run now" Open the routine in the UI and observe the active session Expected behavior Container starts within ~30 seconds, agent begins executing

Actual behavior Session shows "Setting up a cloud container" indefinitely — never progresses past this stage. Has been stuck for 18+ hours across 4 separate sessions (2 scheduled, 2 manual). Sessions from yesterday are still showing as "Running."

Additional notes

No stop/cancel button is available in the UI for active sessions — no way to kill stuck sessions The issue is consistent across every trigger (scheduled and manual) Nothing executes — no code runs, no output produced Affects both claude-sonnet-4-6 and claude-opus-4-7 models

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Claude Code v2.1.138

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

No response

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