Skip to content

fix: claude --session-id opens new VS Code windows due to IDE integration #71

@mleonmendiola-ionos

Description

@mleonmendiola-ionos

Describe the bug
Every time "+ Agent" is clicked, a new VS Code window opens. If multiple agents are created, multiple windows keep spawning, eventually cascading.

Root cause
launchNewTerminal runs claude --session-id <uuid> in a VS Code integrated terminal. The Claude Code CLI detects it's inside VS Code and activates its IDE integration, which opens a new VS Code window for the connected session. Each new window also activates pixel-agents, which can trigger additional JSONL scans and compound the problem.

Expected behavior
Creating an agent opens a new terminal inside the current VS Code window, not a new VS Code window.

Suggested fix
Pass a flag to suppress the IDE integration when launching the terminal, e.g.:

terminal.sendText(`claude --session-id ${sessionId} --ide none`);

(exact flag TBD based on Claude Code CLI options — claude config set ide disabled works as a global workaround)

Workaround
Run claude config set ide disabled globally. Note: this disables IDE features (diffs, file opening in editor) for all Claude Code sessions.

Environment

  • OS: Windows 11
  • VS Code version: latest
  • Pixel Agents version: latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: hostHost layer: agentManager, fileWatcher, transcriptParsertype: bugBug report (on issues)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions