Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
db7ef65e4a | ||
|
|
d977e01d5d |
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": "0.1.3",
|
||||
"version": "0.1.4",
|
||||
"sha256": {
|
||||
"aarch64-apple-darwin": "b2cbabcd87ae7bda6c14638c24f5b80e37553954409a46828fd0bddb0aa1e7bc",
|
||||
"x86_64-unknown-linux-musl": "0f003750f85b40499036e3bf1591fa488b7bd34ad19787471c0bc968ab545427"
|
||||
"aarch64-apple-darwin": "ba5711a2cf4b27f5b37963e9562088f6f0159b3f87fdca1a4ca8258f510667d0",
|
||||
"x86_64-unknown-linux-musl": "3d134d6cbc0035f609772dcda2a3dfa55f688c7bb5a30410e2091fa1f13aeba0"
|
||||
}
|
||||
}
|
||||
+5
-5
@@ -63,17 +63,17 @@ impl Acp {
|
||||
pub fn spawn(p: &Profile, worktree: &Path, id: &str) -> Result<Self> {
|
||||
let mut parts = p.hx.split_whitespace();
|
||||
let mut cmd = Command::new(parts.next().context("empty hx command")?);
|
||||
cmd.args(parts)
|
||||
.args(["serve", "--acp", "--cwd"])
|
||||
.arg(worktree)
|
||||
.args(["--session", id]);
|
||||
// sandbox and permission flags are options of the root command, so they go before `serve`
|
||||
// the TUI answers permission requests itself, so yolo only when the profile asks for it explicitly
|
||||
let flags = p.hx_flags();
|
||||
cmd.args(
|
||||
cmd.args(parts).args(
|
||||
flags
|
||||
.iter()
|
||||
.filter(|f| **f != "--yolo" || p.yolo == Some(true)),
|
||||
);
|
||||
cmd.args(["serve", "--acp", "--cwd"])
|
||||
.arg(worktree)
|
||||
.args(["--session", id]);
|
||||
// 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