diff --git a/hive-subagent-mcp/src/session.rs b/hive-subagent-mcp/src/session.rs index 7043c167..a8d8dfae 100644 --- a/hive-subagent-mcp/src/session.rs +++ b/hive-subagent-mcp/src/session.rs @@ -1696,7 +1696,7 @@ async fn after_turn( fn spawn_and_track_acp( state: &Arc, name: &str, - runtime: AcpRuntime, + runtime: AcpRuntime, config: Config, prompt: String, verdict: Option, @@ -1743,11 +1743,20 @@ fn acp_session_file(sessions: &Path, name: &str) -> PathBuf { /// The ACP runtime `name`'s run drives, keeping its session id in /// [`acp_session_file`] and answering permission requests per /// [`acp_permits`]. -fn acp_runtime(command: AcpCommand, sessions: &Path, name: &str) -> AcpRuntime { +fn acp_runtime( + command: AcpCommand, + sessions: &Path, + name: &str, +) -> AcpRuntime { let groups = hive_sh4re::permissions::effective_tool_groups(); let permit: PermissionPolicy = Arc::new(move |ask: &PermissionAsk<'_>| acp_permits(ask, &groups)); - AcpRuntime::new(command, acp_session_file(sessions, name), permit) + AcpRuntime::new( + command, + acp_session_file(sessions, name), + permit, + hive_claude::NeverCompact, + ) } /// Whether an ACP subagent may run the tool call it asks about.