Unhandled Promise Rejection: Tool closeAllDiffTabs Not Found
Resolved 💬 1 comment Opened Jun 5, 2025 by mannie-exe Closed Jun 5, 2025
Bug Description
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
McpError: MCP error -32602: MCP error -32602: Tool closeAllDiffTabs not found
at Mc1._onresponse (file:///Users/zer0cell/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1358:20090)
at _transport.onmessage (file:///Users/zer0cell/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1358:17296)
at X.client.transport.onmessage (file:///Users/zer0cell/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cl
I believe this happens in this order:
- Claude Code uses VS Code integration to show a diff
- The edit/update is rejected, and the diff window closed
- I sit there, writing a prompt for 10 minutes
- Submitting prompt causes Claude Code to attempt to close null diff tabs
Environment Info
- Platform: macos
- Terminal: vscode
- Version: 1.0.15
- Feedback ID: ecfa8c48-81d9-4dbd-a63a-c8ad1a3b4417
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗