claude-code - 💡(How to fix) Fix [BUG] Claude Code Routines hang on "setting up a cloud container" [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#54685Fetched 2026-04-30 06:38:51
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×4commented ×1unlabeled ×1

Error Message

Error Messages/Logs

The job starts but hangs indefinitely on "Setting up a cloud container" — it never progresses further and does not time out or return an error Actual behavior: Job stays on "Setting up a cloud container" indefinitely. No error is returned. Cancelling and retrying produces the same result. Running two instances simultaneously also hangs both.

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?

Remote routines configured via claude.ai/code/routines hang indefinitely when triggered manually. The job never progresses past "setting up a cloud container." Automatic scheduled runs have not been tested yet. GitHub repo is accessible (PAT verified). Environment ID: env_014aYL1Yye6VKNDomx7Yh2Qv. Routine IDs: trig_01QBNpkjm1dNrh3hpcn4xQtb (Pipeline-vakten) and others.

What Should Happen?

Should run routines

Error Messages/Logs

Steps to Reproduce

Klistra in detta:

Go to claude.ai/code/routines Create a new routine with a git repository source (private GitHub repo using PAT authentication in URL) Add MCP connections (Gmail + Google Calendar) Save the routine Click "Run now" to trigger a manual run The job starts but hangs indefinitely on "Setting up a cloud container" — it never progresses further and does not time out or return an error Environment: claude.ai web app (desktop build), Environment ID: env_014aYL1Yye6VKNDomx7Yh2Qv

Expected behavior: The container starts, clones the repo, and executes the agent prompt.

Actual behavior: Job stays on "Setting up a cloud container" indefinitely. No error is returned. Cancelling and retrying produces the same result. Running two instances simultaneously also hangs both.

Note: The GitHub PAT has been verified working via git ls-remote. The issue is not with repo acces

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

1.5354.0

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

Investigate and adjust the configuration of the cloud container setup in the Claude Code routines to resolve the indefinite hanging issue.

Guidance

  • Verify the GitHub PAT authentication is correctly configured and working as expected, beyond just git ls-remote verification, to ensure it allows the necessary permissions for the Claude Code to access and clone the repository.
  • Check the MCP connections (Gmail + Google Calendar) for any misconfigurations or issues that might be causing the routine to hang.
  • Test the routine with a public GitHub repository to isolate if the issue is related to the private repository or the PAT authentication.
  • Review the Claude Code documentation for any specific requirements or limitations on setting up cloud containers, especially with private repositories.

Example

No specific code example can be provided without more details on the implementation, but ensuring the GitHub PAT is correctly formatted in the URL (e.g., https://<token>@github.com/username/repository.git) might be a starting point.

Notes

The issue seems to be related to the setup of the cloud container when triggering the routine manually. The fact that it hangs indefinitely without an error suggests a potential configuration or authentication issue rather than a code problem.

Recommendation

Apply workaround: Adjust the configuration of the GitHub PAT and cloud container setup to ensure proper authentication and access to the private repository, as the issue seems to be related to the environment and setup rather than a version-specific bug.

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