Skip to content

claude-vscode.editor.open always opens tab in first/primary VS Code window instead of focused window #30793

Description

@sdultsin

Bug

When multiple VS Code windows are open (including across macOS desktops/Spaces), running claude-vscode.editor.open via the command palette or keybinding always opens the Claude Code tab in the leftmost/primary VS Code window, not the currently focused one.

Steps to reproduce

  1. Open two VS Code windows (optionally on different macOS desktops)
  2. Focus the second (non-primary) window
  3. Run claude-vscode.editor.open via Cmd+Shift+P or keybinding
  4. The Claude Code tab opens in the first window, not the focused one

Note: The command palette itself appears in the correct (focused) window - it's only the resulting tab that opens in the wrong window.

Expected behavior

The Claude Code tab should open in the currently focused VS Code window.

Environment

  • macOS 24.6.0 (Darwin)
  • Claude Code extension v2.1.68
  • VS Code latest
  • Apple Silicon (arm64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas reproHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOSplatform:vscodeIssue specifically occurs in VS CodestaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions