[BUG] Any action in Claude Code opens the terminal in VSCode when linked through /ide

Resolved 💬 1 comment Opened Jun 5, 2026 by grubstarstar Closed Jun 5, 2026

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?

If I run Claude Code in iTerm outside of VSCode's terminal it will open the VSCode terminal window any time an event happens in Claude Code.

For example, the Claude Code: Insert @-Mention Reference command in VScode will add the mention to the Claude Code terminal interface but also open the terminal window in VSCode even though Claude Code isn't running there.

What Should Happen?

It should leave the open state of the VSCode terminal unaffected.

Error Messages/Logs

Steps to Reproduce

Use Claude Code: Insert @-Mention Reference

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.163

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

iTerm2

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗