claude-code - 💡(How to fix) Fix [BUG] Teammate pane silent crash + ghost statusline chips (v2.1.116 / darwin arm64 / tmux) [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#52333Fetched 2026-04-24 06:09:56
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×6commented ×1

Persistent teammate pane crash + in-memory sub-agent handle leak on claude-code v2.1.116 / macOS arm64 / tmux. Reporting as a fresh issue because the three previous reports on similar symptoms (#8978, #8722, #8829) are closed as not-planned and locked to new comments; the behavior is still occurring on the current release, so we'd like to surface updated repro data in case it's actionable.

Error Message

  1. One of the three panes silently exits mid-turn. Pane returns to zsh, leaving the line Resume this session with: claude --resume <uuid>. No error message in the pane.

Root Cause

Persistent teammate pane crash + in-memory sub-agent handle leak on claude-code v2.1.116 / macOS arm64 / tmux. Reporting as a fresh issue because the three previous reports on similar symptoms (#8978, #8722, #8829) are closed as not-planned and locked to new comments; the behavior is still occurring on the current release, so we'd like to surface updated repro data in case it's actionable.

Code Example

Agent({ team_name: T, name: "raider",    ..., run_in_background: true })
   Agent({ team_name: T, name: "inspector", ..., run_in_background: true })
   Agent({ team_name: T, name: "sentinel",  ..., run_in_background: true })
RAW_BUFFERClick to expand / collapse

Summary

Persistent teammate pane crash + in-memory sub-agent handle leak on claude-code v2.1.116 / macOS arm64 / tmux. Reporting as a fresh issue because the three previous reports on similar symptoms (#8978, #8722, #8829) are closed as not-planned and locked to new comments; the behavior is still occurring on the current release, so we'd like to surface updated repro data in case it's actionable.

Environment

  • Claude Code CLI v2.1.116
  • macOS darwin 25.4.0 (arm64, Apple Silicon)
  • tmux 3.5a
  • Orchestration pattern: one Lead claude pane spawning multiple teammate Agent({ team_name, name, ... }) panes in the same tmux session
  • Node v22 (installed via Homebrew)

Symptom 1 — Silent teammate pane crash during long tasks (related: #8978, #8829)

Repro (most reliable):

  1. From Lead, spawn three teammates in a single turn, each sent a ~400-line / 8-file diff to review:
    Agent({ team_name: T, name: "raider",    ..., run_in_background: true })
    Agent({ team_name: T, name: "inspector", ..., run_in_background: true })
    Agent({ team_name: T, name: "sentinel",  ..., run_in_background: true })
  2. One of the three panes silently exits mid-turn. Pane returns to zsh, leaving the line Resume this session with: claude --resume <uuid>. No error message in the pane.
  3. Surviving teammates continue until they attempt SendMessage to the Lead; the dropped teammate never reports.
  4. Running claude --resume <uuid> in that pane sometimes re-enters the crash loop reported in #8978.

Observed frequency on our setup:

ConcurrencyCrash rate (at least one pane lost)
3 parallel teammates, large diff~25%
2 parallel~5%
1-at-a-time sequentialnot observed

Also reliable on single-teammate runs once the implementation step exceeds ~20 minutes of sustained Edit/Write activity.

Symptom 2 — Ghost statusline chips after teammate completion (related: #8722)

Repro:

  1. Run a 2-hour session that spawns and completes ≥10 teammates (any mix of review + implementation roles).
  2. As teammates complete normally and the Lead calls TeamDelete, the on-disk state under ~/.claude/teams/ is fully cleaned up.
  3. The Lead's statusline continues to show role chips for completed teammates — often duplicated, e.g. @raider @raider @sentinel @sentinel @vanguard @vanguard.
  4. Chips persist for the remainder of the Lead session even after the teammate processes and tmux panes are fully gone.

This points at either a listener/handle leak per-spawn, or a conversation-buffer reference to completed sub-agent contexts that never gets released — either of which would line up with the 700MB+ growth in #8722.

What we've tried on our side

  • Routing 20min+ implementation steps to non-teammate Agent({ isolation: "worktree" }) instead of teammate panes. Avoids the crash but we lose realtime pane visibility, which is our main reason for using teammates.
  • Aggressive TeamDelete / tmux kill-pane cleanup at every phase boundary. Reduces orphan processes but does not clear the ghost statusline chips.

What would help most

  • Any release note / known-issue pointer confirming whether the --resume loop and the parallel-agent crash are the same root cause or distinct
  • A diagnostic flag (heap / handle dump per turn) we could run against a reproducing session and share anonymized output from
  • Confirmation of whether statusline chip state is intended to be eventually-consistent with ~/.claude/teams/, or driven by a separate in-memory handle table

Happy to share anonymized --debug logs from a reproducing session. Please let me know the preferred format.

References

  • Previous reports (closed / not-planned / locked): #8978, #8722, #8829
  • Downstream context on our side (for reproducibility): vary3/agent-legion-cliskills/al-teams/SKILL.md describes the orchestration pattern that triggers the symptoms.

extent analysis

TL;DR

The most likely fix or workaround involves addressing the in-memory sub-agent handle leak and investigating the relationship between the --resume loop and parallel-agent crash.

Guidance

  • Investigate the TeamDelete and tmux kill-pane cleanup process to ensure it properly releases resources and handles.
  • Run the application with a diagnostic flag (e.g., heap or handle dump per turn) to gather more information about the leak.
  • Review the statusline chip state implementation to determine if it's intended to be eventually-consistent with ~/.claude/teams/ or driven by a separate in-memory handle table.
  • Consider implementing a mechanism to monitor and limit the number of concurrent teammates to prevent crashes.
  • Share anonymized --debug logs from a reproducing session to help identify the root cause.

Example

No code snippet is provided as the issue lacks specific implementation details.

Notes

The issue seems to be related to the orchestration pattern and the way teammates are spawned and managed. The provided information suggests a potential handle leak, but more investigation is needed to confirm the root cause.

Recommendation

Apply a workaround by implementing a mechanism to monitor and limit the number of concurrent teammates, and investigate the TeamDelete and tmux kill-pane cleanup process to ensure proper resource release. This approach may help mitigate the crashes and handle leaks until a more permanent fix is available.

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