claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG]

Open GratefulDave opened this issue 6 months ago • 3 comments

Environment

  • Platform (select one):
    • [x ] Anthropic API
  • Claude CLI version: 1.10.25
  • Operating System: Sequoia 15.5
  • Terminal: iTerm2

Bug Description

When making any request:

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 -32603: Tool not found: closeAllDiffTabs at Mc1._onresponse (file:///Users/davidandrews/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1358:20090)

Steps to Reproduce

  1. Launch code.
  2. Make request.

Expected Behavior

No error.

Actual Behavior

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 -32603: Tool not found: closeAllDiffTabs at Mc1._onresponse (file:///Users/{username}/.nvm/versions/node/v23.10.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1358:20090)

GratefulDave avatar Jun 06 '25 00:06 GratefulDave

'claude update' to resolve

igorkofman avatar Jun 06 '25 01:06 igorkofman

'claude update' to resolve

> claude update
Current version: 1.0.16
Checking for updates...
Claude Code is up to date (1.0.16)

Still experiencing the issue after a claude update which says there are no updates. It only seemed to happen after I installed the updated VSCode extension, and "Install specific version" is greyed out and doesn't appear to be supported.

digismack avatar Jun 06 '25 04:06 digismack

What does claude --version show? What error exactly are you hitting?

igorkofman avatar Jun 06 '25 05:06 igorkofman

The error message is similar to OP's:

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:
Error: command 'type' already exists
    at hX2 (file:///Users/digismack/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1376:12108)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async oY5 (file:///Users/digismack/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1921:10075)
    at async J (file:///Users/digismack/.nvm/versions/node/v22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1921:8929)

claude --version outputs:

1.0.16 (Claude Code)

Any time it tries to modify code in what would pull up the new VSCode integrated diff viewer/editor, it shows this error.

Edit: Someone just opened a ticket for this exact error message here.

digismack avatar Jun 06 '25 14:06 digismack

Let's continue on that issue

igorkofman avatar Jun 06 '25 17:06 igorkofman

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Aug 09 '25 14:08 github-actions[bot]