[BUG]
Preflight Checklist
- [x] 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?
Title: MCP tool permission approval never reaches client — add_repo (and other gated tool calls) fail with “requires approval” indefinitely
Description:
In a Claude Code session (remote/web execution environment), calling a tool that requires interactive approval (add_repo from the claude-code-remote MCP server) consistently fails with:
Streamable HTTP error: Error POSTing to endpoint: MCP tool call requires approval
This happened on every retry (6+ attempts across the session), with no variation in the error. Earlier in the same session, other gated calls (AskUserQuestion, list_repos) intermittently failed with:
Tool permission request failed: Error: Tool permission stream closed before response received
and once with:
Denied by user
despite the user confirming they had not seen or interacted with any approval prompt. This suggests the approval request either never renders client-side, or the stream carrying the approval response closes/times out before the user’s client can respond.
Steps to reproduce:
- Start a Claude Code session in the remote/web execution environment.
- Have the assistant call a tool that requires interactive approval (e.g. add_repo to add a new GitHub repo to the session).
- Observe the approval prompt does not reliably appear in the client, or the response stream closes before an answer is recorded.
- Retries of the identical tool call return the same “requires approval” error with no prompt surfaced.
Impact: Session is completely blocked from using any tool gated behind interactive approval — no workaround available from within the chat.
Environment: Claude Code remote execution session (web/mobile client — exact surface unconfirmed by reporter).
What Should Happen?
Claude should be able to access GitHub Repository and continue
Error Messages/Logs
Steps to Reproduce
<img width="590" height="1278" alt="Image" src="https://github.com/user-attachments/assets/e281257a-eabe-4485-a00f-77d3c9cd0656" />
<img width="590" height="1278" alt="Image" src="https://github.com/user-attachments/assets/82d6cf6a-3479-4268-b8f0-7fcb1b6fcf18" />
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.201
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗