Files
kilocode/.changeset/agent-manager-worktree-sandbox.md
T
marius-kilocode 9e04e74ebd feat(agent-manager): add sandbox toggle to new worktree modal
Let users choose whether a worktree session starts in the sandbox from the
Agent Manager New Worktree modal. The lock button mirrors the sidebar prompt
sandbox toggle and is gated by the same features().sandboxControls flag.

The CLI session.create endpoint exposes no sandbox parameter, so after each
worktree session is created the provider reconciles its sandbox override to
the user's choice via sandbox.status then sandbox.toggle (toggling only when
the current state differs, so it is safe regardless of the global default).
Sandbox setup is best-effort: failures are logged and the worktree stays
usable with manual toggle available from the prompt.

Visibility is forward-compatible with the sandbox experiment exposure work:
the button is hidden until sandboxControls is available, so it requires no
change to appear once that lands.
2026-06-25 13:01:31 +02:00

134 B

kilo-code
kilo-code
minor

Add a sandbox toggle to the Agent Manager New Worktree modal so each worktree session can start sandboxed