From 3e1bed201c22c506302f40d10e3e360518290b8f Mon Sep 17 00:00:00 2001 From: Rodolfo Olivieri Date: Thu, 26 Mar 2026 11:02:37 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20gate=20code-mode=20tool=20filtering=20be?= =?UTF-8?q?hind=20cfg(feature)=20for=20--no-defau=E2=80=A6=20(#8111)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rodolfo Olivieri Co-authored-by: Claude Opus 4.6 (1M context) --- crates/goose/src/agents/reply_parts.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/goose/src/agents/reply_parts.rs b/crates/goose/src/agents/reply_parts.rs index 3251001f..f7a96157 100644 --- a/crates/goose/src/agents/reply_parts.rs +++ b/crates/goose/src/agents/reply_parts.rs @@ -154,6 +154,7 @@ impl Agent { .await; #[cfg(not(feature = "code-mode"))] let code_execution_active = false; + #[cfg(feature = "code-mode")] if code_execution_active { let disclosure_style = crate::agents::platform_extensions::code_execution::get_tool_disclosure();