Insert @-Mention Reference command only works when Output panel is open

Resolved 💬 2 comments Opened May 23, 2026 by lnj0lin Closed Jun 22, 2026

Description

The VS Code command "Claude Code: Insert @-Mention Reference" only functions correctly when the Output panel is visible. If the Output panel is closed or not in focus, the command does not insert the @-mention reference as expected.

Steps to Reproduce

  1. Open a project in VS Code with the Claude Code extension installed.
  2. Close the Output panel (if it's open).
  3. Run the command "Claude Code: Insert @-Mention Reference" via the Command Palette (Ctrl/Cmd + Shift + P).
  4. Observe that the @-mention reference is not inserted.
  5. Open the Output panel (View → Output).
  6. Run the same command again.
  7. The @-mention reference is now inserted correctly.

Expected Behavior

The "Insert @-Mention Reference" command should work regardless of whether the Output panel is open or not.

Actual Behavior

The command only takes effect when the Output panel is visible/open.

Environment

  • OS: macOS (Darwin 25.5.0)
  • VS Code version: latest
  • Claude Code extension version: latest

Possible Cause

The command may depend on a specific webview panel having focus or being visible in order to execute correctly. The Output panel's visibility might trigger a focus/context state that enables the command to work.

View original on GitHub ↗

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