feat: set hx to yolo in sandbox mode else auto mode
build / version (push) Successful in 11s
build / build (aarch64-apple-darwin) (push) Successful in 5m13s
build / build (x86_64-unknown-linux-musl) (push) Successful in 4m21s
build / release (push) Successful in 20s

This commit is contained in:
johannes committed 2026-11-15 16:12:54 +01:00
1 parent 3f396b112a
commit 8ecbd504a2
6 files changed
+79 -18

No files matched your search

+7
View File
@@ -67,6 +67,13 @@ impl Acp {
.args(["serve", "--acp", "--cwd"])
.arg(worktree)
.args(["--session", id]);
// the TUI answers permission requests itself, so yolo only when the profile asks for it explicitly
let flags = p.hx_flags();
cmd.args(
flags
.iter()
.filter(|f| **f != "--yolo" || p.yolo == Some(true)),
);
// same cleared environment as the batch runner: orch's secrets never reach the agent
cmd.env_clear().envs(hx_env(std::env::vars(), p));
if let Some(h) = &p.home {