claude-code - 💡(How to fix) Fix [BUG] Remote agent runs stuck on "Setting up a cloud container" — cannot cancel [3 comments, 3 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#54528Fetched 2026-04-30 06:43:08
View on GitHub
Comments
3
Participants
3
Timeline
8
Reactions
0
Author
Timeline (top)
labeled ×4commented ×3cross-referenced ×1

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?

Body:

Scheduled and manual remote agent runs are stuck indefinitely at the "Setting up a cloud container" step and never progress to "Clone repository." The issue affects both the automated schedule (3:00 AM EDT) and manual triggers.

What's happening:

  • All runs show status "Running" but are frozen at container setup
  • The cancel button is unavailable — runs cannot be cancelled from the UI
  • Affected runs: today at 3:00 AM (scheduled), 3:24 PM (manual), 3:30 PM (manual)
  • Agent name: "Second Brain — Nightly Journal", runs daily at 3:00 AM EDT

What Should Happen?

What should happen (normal flow):

  1. Setting up a cloud container — Anthropic spins up a fresh Linux VM in the cloud
  2. Clone repository — your connected GitHub repo gets cloned into that VM
  3. Run setup script — installs dependencies (Node, any tools your agent needs)
  4. Start Claude Code — Claude Code CLI launches and runs your scheduled prompt against your vault

The whole thing takes ~2-3 minutes and then the agent does its work, writes files, and the container
shuts down.

Error Messages/Logs

Steps to Reproduce

Steps to reproduce:

  1. Trigger a manual run on any scheduled remote agent
  2. Run enters "Setting up a cloud container" and never advances
  3. UI provides no way to cancel the stuck run

Expected behavior: Container provisions, repository clones, Claude Code starts, prompt executes.

Actual behavior: Stuck at container setup indefinitely. Multiple concurrent stuck runs accumulate with
no way to clear them.

Environment: Claude Code (Mac desktop app), remote agent via claude.ai

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.123

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can be mitigated by investigating the Anthropic API and cloud container setup process to identify the cause of the indefinite stall at the "Setting up a cloud container" step.

Guidance

  • Investigate the Anthropic API logs and cloud container setup process to determine why the container setup is stalling indefinitely.
  • Verify that the scheduled remote agent runs were working correctly in the previous version (as indicated by the "Is this a regression?" field) to confirm the regression.
  • Check the Claude Code version (2.1.123) and Anthropic API documentation to see if there are any known issues or updates related to cloud container setup.
  • Consider reaching out to the Anthropic API support team for assistance with debugging the cloud container setup process.

Notes

The issue seems to be related to the Anthropic API and cloud container setup process, but without more information or error logs, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Investigate the Anthropic API and cloud container setup process to identify the cause of the issue, as it's likely a regression introduced in the current version of Claude Code.

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 [BUG] Remote agent runs stuck on "Setting up a cloud container" — cannot cancel [3 comments, 3 participants]