claude-code - 💡(How to fix) Fix [Bug] MCP permission approval prompts unreachable in tmux teammate mode [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#46392Fetched 2026-04-11 06:21:29
View on GitHub
Comments
0
Participants
1
Timeline
6
Reactions
0
Author
Participants
Timeline (top)
labeled ×6

Error Message

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jason.mctaggart/.local/share/claude/versions/2.1.101 (expected in multi-process scenarios)\n at Oc_ (/$bunfs/root/src/entrypoints/cli.js:2836:2153)\n at Ve6 (/$bunfs/root/src/entrypoints/cli.js:2836:1233)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T19:26:04.174Z"}]

Root Cause

Additional context:

  • The team-lead has no tmux pane (tmuxPaneId: "" in team config), so there is no real-time interactive channel for agents to escalate permission requests to
  • Permission escalation via agent → team-lead messaging exists in the protocol but fails in practice because the team-lead only processes messages on the next user-triggered conversation turn, leaving the user with no actionable prompt

Fix Action

Fix / Workaround

Workaround: Pre-approve the required tools in ~/.claude/settings.json under permissions.allow (e.g. "mcp__claude_ai_DataDog__*").

Code Example

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jason.mctaggart/.local/share/claude/versions/2.1.101 (expected in multi-process scenarios)\n    at Oc_ (/$bunfs/root/src/entrypoints/cli.js:2836:2153)\n    at Ve6 (/$bunfs/root/src/entrypoints/cli.js:2836:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T19:26:04.174Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Team agent MCP permission approvals broken in tmux teammate mode — prompts unreachable

Environment:

  • Claude Code launched with claude --teammate-mode tmux
  • CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
  • macOS, tmux-backed team agents
  • MCP tools via claude.ai connectors (tested: DataDog, Slack)

Expected behavior: When a team agent needs permission to use a tool, the approval prompt is surfaced to the user in the main team-lead conversation window — matching the behavior that already works correctly for non-tmux foreground agents.

Actual behavior:

  1. Team agent tries to use a tool requiring permission
  2. A permission prompt appears in the agent's tmux pane — but the pane does not accept interactive input, so the user cannot approve it there
  3. The agent sits waiting indefinitely
  4. The team-lead (main conversation window) never surfaces an approval prompt to the user — no "Allow this tool?" appears there either
  5. The only resolution is manually killing the agents

Note: This works correctly outside of tmux teammate mode. Foreground agents running in the main conversation surface permission prompts as expected. This issue is specific to --teammate-mode tmux.

Steps to reproduce:

  1. Launch Claude Code with claude --teammate-mode tmux
  2. Enable CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
  3. Create a team with TeamCreate
  4. Spawn a team agent with a task that requires an MCP tool not in allowedTools
  5. Observe: agent's tmux pane shows a permission prompt but is non-interactive; main conversation window never shows an approval request; agent is stuck indefinitely

Workaround: Pre-approve the required tools in ~/.claude/settings.json under permissions.allow (e.g. "mcp__claude_ai_DataDog__*").

Additional context:

  • The team-lead has no tmux pane (tmuxPaneId: "" in team config), so there is no real-time interactive channel for agents to escalate permission requests to
  • Permission escalation via agent → team-lead messaging exists in the protocol but fails in practice because the team-lead only processes messages on the next user-triggered conversation turn, leaving the user with no actionable prompt

Environment Info

  • Platform: darwin
  • Terminal: tmux
  • Version: 2.1.101
  • Feedback ID: 8084033c-0b24-476c-86e8-0fca997adbba

Errors

[{"error":"Error: NON-FATAL: Lock acquisition failed for /Users/jason.mctaggart/.local/share/claude/versions/2.1.101 (expected in multi-process scenarios)\n    at Oc_ (/$bunfs/root/src/entrypoints/cli.js:2836:2153)\n    at Ve6 (/$bunfs/root/src/entrypoints/cli.js:2836:1233)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-10T19:26:04.174Z"}]

extent analysis

TL;DR

Pre-approving required tools in the ~/.claude/settings.json file under permissions.allow can serve as a workaround for the issue where team agent MCP permission approvals are broken in tmux teammate mode.

Guidance

  • The issue seems to stem from the non-interactive nature of the tmux pane where the permission prompt appears, and the team-lead conversation window not surfacing the approval prompt.
  • To verify the issue, follow the steps to reproduce provided in the bug description and observe the behavior of the team agent and the main conversation window.
  • A potential mitigation could involve modifying the protocol for permission escalation to allow for real-time interactive channels between agents and the team-lead.
  • Pre-approving tools as suggested in the workaround section of the bug description can prevent the issue from occurring, but it may not be desirable in all scenarios due to security considerations.

Example

No specific code example is provided due to the lack of direct code references in the issue description. However, the workaround involves editing the ~/.claude/settings.json file to include pre-approved tools under permissions.allow, such as "mcp__claude_ai_DataDog__*".

Notes

The provided error message does not seem directly related to the issue at hand, as it mentions a non-fatal error related to lock acquisition. The actual issue appears to be related to the interaction between tmux teammate mode and the permission approval process.

Recommendation

Apply the workaround by pre-approving required tools in the ~/.claude/settings.json file, as this provides a direct solution to the problem, albeit with potential security implications that need to be considered.

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