From 6bced3a8348409d9439756a8e8bd6f2aa48b9707 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Fri, 21 Mar 2025 10:22:00 -0400 Subject: [PATCH] assistant2: Ensure scripting tool gets disabled when switching profiles (#27244) This PR fixes an issue where the scripting tool wasn't being disabled when switching to a profile that did not have it enabled. Release Notes: - N/A --- crates/assistant2/src/tool_selector.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/assistant2/src/tool_selector.rs b/crates/assistant2/src/tool_selector.rs index 138a462842172d899330ab8b69c013bf070f9d49..270f339629eaf166453e0bc6ea01b194f0acdb64 100644 --- a/crates/assistant2/src/tool_selector.rs +++ b/crates/assistant2/src/tool_selector.rs @@ -63,6 +63,7 @@ impl ToolSelector { let tools = tool_set.clone(); move |_window, cx| { tools.disable_source(ToolSource::Native, cx); + tools.disable_scripting_tool(); tools.enable( ToolSource::Native, &profile