feat: set hx to yolo in sandbox mode else auto mode
This commit is contained in:
1 parent
3f396b112a
commit
8ecbd504a2
6 files changed
+79
-18
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user