[BUG] Remote agent runs stuck on "Setting up a cloud container" — cannot cancel

Status Closed — not planned
Reported on v2.1.123
Maintainer reply None cached
Activity 11 comments · opened Apr 29, 2026 · closed Jul 9, 2026

Preflight Checklist

  • [ ] 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?

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_

View original on GitHub ↗

11 Comments

github-actions[bot] · 4 months ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/53691
  2. https://github.com/anthropics/claude-code/issues/53470

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

0xbrainkid · 4 months ago

This is control-surface failure during remote execution setup.

If remote agent runs get stuck on “Setting up a cloud container” and cannot be canceled, the product is failing in two layers at once: startup never completes, and the operator loses the ability to abort the bad state.

Why it matters:

  • a stuck setup phase already blocks work
  • inability to cancel means the user is trapped in an unproductive state with unclear recovery
  • remote execution becomes hard to trust if failure paths cannot be cleanly exited

I would want clarity on:

  1. whether the run is stuck before resource allocation completes or after the backend has partially created state
  2. whether cancel is blocked by missing session identity, a dead control channel, or backend refusal to transition state
  3. whether the UI can expose a forced-terminate / mark-as-failed path when ordinary cancel is unavailable

Users can tolerate setup failures better than they can tolerate losing control over the failed run. If startup and cancellation both break, the control model is incomplete.

ae0n1x · 4 months ago

Don't believe I can cancel or force cancel a run through the UI, only option is to actually delete the entire routine itself. The moment I run something, whether it's a one time or recurring execution, it immediately goes into cloud container setup and runs indefinitely.

Grayrider2500 · 3 months ago

Also experiencing this issue. Filed a related report at #57280 with routine ID trig_013nLmBUUXQxozoSTjaChL7h. Run has been stuck on container setup for 30+ minutes with no error and no cancel option.

davidfdash · 3 months ago

Experiencing this issue on trig_013DCKNcSTMzw1VobPAGPMBV as well right now.

tracktimealerts · 3 months ago

Same for me in the code module on Claude Desktop on Mac... wanted to do a simple thing with an existing repo and just spinning on Setting Up a Cloud Container

Claude 1.6608.2 (ebf1a1) 2026-05-08T23:17:27.000Z

fedemone · 3 months ago

I'm currently experiencing this also on web (Chrome browser) based claude (Opus 4.6) session, since yesterday. I have other sessions that are not affected.

graemejohnson · 3 months ago

Same bug here on area:routines. Routine trig_01GiiTzmR4swPDGZZdg3mxPr (sources-enabled with git_repository clone). Three manual runs today (UI Run now and API POST /run) all hung at "Setting up a cloud container" for 1+ hour. Scheduled run at 02:05 BST today did get a container. Cannot cancel hung runs from UI. Claude Code Version 1.6608.2 (ebf1a1), Windows.

graemejohnson · 3 months ago

Scheduled run also hangs, not just manual. Trigger trig_01Aycx52J6UXT1HbgfS2odqc, session at 02:06 BST today, still Running after 16+ hours

sanchez-martin-jose · 2 months ago

Same problem with trig_01HB8GKYsUorP3GFePq6XKv1

github-actions[bot] · 1 month ago

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