From ff9c92db86394d8f744600efce397d174566be2d Mon Sep 17 00:00:00 2001 From: daniel Date: Sun, 13 Sep 2026 21:47:36 +0100 Subject: [PATCH] fix(acp): launch built-in subagents with protocol v2 --- src/acp_child.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/acp_child.rs b/src/acp_child.rs index 59d5f06..a755a0b 100644 --- a/src/acp_child.rs +++ b/src/acp_child.rs @@ -290,7 +290,7 @@ impl AcpHarnesses { command } else { let mut command = Command::new(std::env::current_exe().map_err(|e| e.to_string())?); - command.arg("acp"); + command.args(["acp", "--protocol-version", "2"]); command }; let (id, resume) = persisted.ok_or("Kit harness requires a persistent session")?; @@ -2632,6 +2632,7 @@ mod tests { args.windows(2) .any(|pair| pair == ["--request-budget-seconds", "300"]) ); + assert_eq!(&args[..3], ["acp", "--protocol-version", "2"]); assert_eq!(args.iter().any(|arg| arg == "--resume"), resume); let command = serve_command( root.path(),