claude-code - 💡(How to fix) Fix [BUG] Managed Agents bash tool crashes with tmux timeout in cloud container [1 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#48056Fetched 2026-04-15 06:34:32
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

When creating a Managed Agents session with agent_toolset_20260401 (built-in bash tool) and networking: { type: 'unrestricted' }, every bash command crashes or times out with tmux/temp-file errors. The execution environment is non-functional.

Error Message

Error Output

Every bash command — including basic pwd — fails with this error. The agent correctly diagnosed it as a system-level issue.

Root Cause

When creating a Managed Agents session with agent_toolset_20260401 (built-in bash tool) and networking: { type: 'unrestricted' }, every bash command crashes or times out with tmux/temp-file errors. The execution environment is non-functional.

Code Example

tmux command timed out after 295s
/bin/sh: 12: cannot open /tmp/ale-XXXXXX.out: No such file
RAW_BUFFERClick to expand / collapse

Description

When creating a Managed Agents session with agent_toolset_20260401 (built-in bash tool) and networking: { type: 'unrestricted' }, every bash command crashes or times out with tmux/temp-file errors. The execution environment is non-functional.

Reproduction

  1. Create an agent with agent_toolset_20260401
  2. Create a cloud environment with networking: { type: 'unrestricted' }
  3. Start a session and send a message that triggers bash usage
  4. Observe: bash commands crash with tmux command timed out after 295s and /bin/sh: cannot open /tmp/ale-XXXXXX.out: No such file

Session Details

  • Session ID: sesn_011Ca3nSaVc4aW6Xkouzh96c
  • Created: 2026-04-14T14:00:12Z
  • Status: idle (ended after 4 hours of retrying)
  • 285 events, mostly failed bash attempts

Error Output

tmux command timed out after 295s
/bin/sh: 12: cannot open /tmp/ale-XXXXXX.out: No such file

Every bash command — including basic pwd — fails with this error. The agent correctly diagnosed it as a system-level issue.

Context

This session was created programmatically from a CCR scheduled trigger via launch-remote.ts. The goal is to run a daily newsletter pipeline that needs outbound HTTP access to external services (Supabase, PubMed, Brave Search, ReSend). The CCR sandbox egress proxy blocks these services, so we need the CMA environment's unrestricted networking.

Expected Behavior

Bash commands should execute normally in the managed agent container with unrestricted networking.

Environment

  • SDK: @anthropic-ai/sdk ^0.87.0
  • Beta header: managed-agents-2026-04-01
  • Model: claude-sonnet-4-6
  • OS: Created from CCR trigger (macOS client)

extent analysis

TL;DR

The issue can be mitigated by investigating and resolving the tmux timeout and temporary file access errors in the managed agent session.

Guidance

  • Investigate the tmux configuration and timeout settings to determine why commands are timing out after 295s.
  • Check the permissions and availability of the /tmp directory in the managed agent container to resolve the cannot open /tmp/ale-XXXXXX.out: No such file error.
  • Verify that the agent_toolset_20260401 and networking: { type: 'unrestricted' } configuration is correctly applied and compatible with the claude-sonnet-4-6 model.
  • Review the launch-remote.ts script to ensure it is correctly creating the managed agent session and handling any errors that may occur.

Example

No code snippet is provided as the issue is more related to configuration and environment setup.

Notes

The issue seems to be related to the managed agent container's environment and configuration. Resolving the tmux timeout and temporary file access errors should help mitigate the issue. However, further investigation may be required to determine the root cause.

Recommendation

Apply workaround: Investigate and resolve the tmux timeout and temporary file access errors, as the issue seems to be related to the managed agent container's environment and configuration.

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