mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-21 05:52:35 +08:00
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.
134 B
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