-
Notifications
You must be signed in to change notification settings - Fork 707
Description
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