feat(agent-manager): run project scripts in the selected terminal - #12680
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge OverviewThis incremental commit ( Files Reviewed (incremental — 3 files)
Note: Prior WARNING findings on files not touched in this increment ( Previous Review Summaries (4 snapshots, latest commit a6f6655)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit a6f6655)Status: No Issues Found | Recommendation: Merge OverviewThis incremental commit addresses all 7 WARNING findings from the previous review (double stop/dispose race in Files Reviewed (incremental — 14 files)
Previous review (commit 3a829f5)Status: 8 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (incremental — 1 file)
This incremental commit only deletes the implementation plan doc Fix these issues in Kilo Cloud Previous review (commit 4016919)Status: 8 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (37 files)
The new commit ( Fix these issues in Kilo Cloud Previous review (commit 22d1a50)Status: 9 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (32 files)
Command injection claims in the PR description hold up: Reviewed by claude-sonnet-5 · Input: 24 · Output: 6.8K · Cached: 510.7K Review guidance: REVIEW.md from base branch |
|
@kilocode-bot can you do a quick security review of this? Is there any difference security wise that represent major blockers? |
Security review (focused)Verdict: no blockers. The core execution path is sound — Run still resolves an allowlisted Findings
Path traversal / executable selectionNo issues. |
|
Security review already posted here: #12680 (comment) Verdict: no blockers. Core execution path is sound — allowlisted Two
Plus minor hardening notes (no Nothing further needed unless you want me to spawn a follow-up agent to fix the two warnings. |
…o-agent-manager-terminal feat(agent-manager): run project scripts in the selected terminal
Agent Manager Run scripts previously executed only as VS Code Tasks with
TaskRevealKind.Always, which forced the bottom terminal panel open even when the Agent Manager terminal was selected.This change makes the existing terminal destination dropdown the single source of truth for both terminal opening and Run execution:
Runtab in the Agent Manager side terminal.The panel-local dropdown choice travels with every Run request, so no second setting or cross-window preference is needed. The legacy integrated adapter remains isolated in
run/task.ts, and the routing decision remains onepickRunStartbranch. Once the embedded terminal is the only supported target, the dropdown option, adapter file, and routing branch can be deleted together.Behavior of the embedded path:
client.v2.ptyAPI. Linux and macOS usesh; Windows uses PowerShell or CMD based on the existing script precedence. No shell string construction and no command injection through terminal input.Runtab streams live output, accepts input for interactive scripts, and replays retained output after natural exit and after Agent Manager webview reloads.taskkill /f /ton Windows. Worktree deletion, provider shutdown, and tab close route through the same removal path.pty.exitedevents and status reads, so fast scripts and SSE reconnects cannot strand Run/Stop status.PTY hardening in
packages/core, kept behind narrowkilocode_changemarkers:commandplusargsno longer receives an implicit login-shell-largument./api/ptyattachments can replay retained output after exit. Legacy/ptybehavior is unchanged.Setup scripts remain VS Code Tasks and are intentionally unchanged here. Their migration is tracked in #12649.\n\nFollow-up to the original Run-script feature in #7526.
Screenshots