[BUG] VSCode Extension: Alt+K (@-Mention) jumps to bottom-most chat tab instead of staying on current tab

Resolved 💬 3 comments Opened Apr 2, 2026 by miyamacats-blip Closed Jun 2, 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?

When multiple Claude Code chat tabs are open in a VS Code editor group, using the "Insert @-Mention Reference" shortcut (Alt+K) causes the visible tab focus to jump to the bottom-most chat tab in that group (i.e., the last-listed tab in the "Open Editors" tree view — not necessarily the most recently opened one).

The @-mention itself is correctly inserted into the input field of the originally focused chat tab, but the editor group visually switches to display the last tab. This forces the user to manually click back to the original tab to continue typing.

This only occurs when there are 2 or more Claude Code chat tabs in the same editor group. With a single chat tab, the behavior is correct.

What Should Happen?

After pressing Alt+K, the originally focused Claude Code chat tab should remain visible and focused. The user should be able to see the inserted @-mention and continue typing in the same tab without any tab switching.

Error Messages/Logs

No error messages. The @-mention is inserted correctly into the intended tab's input field — the issue is purely a focus/visibility problem.

Steps to Reproduce

  1. Open a VS Code window with the Claude Code extension installed.
  2. Open a file (e.g., any .md or .ts file) in the left editor group.
  3. Open 2 or more Claude Code chat tabs in the right editor group (e.g., by using "Claude Code: Open in New Tab" multiple times, or by starting new conversations).
  4. Click on a chat tab that is NOT the last (rightmost) tab in the group, and place your cursor in its input field.
  5. Click on the file tab in the left editor group and select some text.
  6. Press Alt+K (Insert @-Mention Reference).

Expected: The @-mention is inserted into the chat tab from step 4, and that tab remains visible.
Actual: The @-mention IS correctly inserted into the chat tab from step 4, but the visible tab jumps to the bottom-most (last-listed in "Open Editors") Claude Code chat tab in the group.

Environment:

  • OS: Windows 11

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.90 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Cursor

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗