Skip to content

fix(vscode): keep active terminal for @terminal context#9917

Open
marius-kilocode wants to merge 1 commit intomainfrom
gem-tomato
Open

fix(vscode): keep active terminal for @terminal context#9917
marius-kilocode wants to merge 1 commit intomainfrom
gem-tomato

Conversation

@marius-kilocode
Copy link
Copy Markdown
Collaborator

Agent Manager now preserves the active VS Code integrated terminal when resolving @terminal context, so Run task output and manually focused integrated terminals can be sent to the model.

It only falls back to the session/worktree terminal when there is no active integrated terminal, avoiding unexpected terminal switches during prompt send.

@marius-kilocode marius-kilocode enabled auto-merge May 5, 2026 13:48
@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented May 5, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (5 files)
  • .changeset/terminal-context-active.md
  • packages/kilo-vscode/src/agent-manager/AgentManagerProvider.ts
  • packages/kilo-vscode/src/agent-manager/SessionTerminalManager.ts
  • packages/kilo-vscode/tests/unit/agent-manager-arch.test.ts
  • packages/kilo-vscode/tests/unit/session-terminal-manager.test.ts

Reviewed by gpt-5.5-20260423 · 539,476 tokens

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant