From 9201e1f7b7f4830863d9e2612dcf67dc8f0200fe Mon Sep 17 00:00:00 2001 From: Michael Benfield Date: Fri, 23 Jan 2026 09:32:27 -0800 Subject: [PATCH] Don't always expose streaming edit tool (#47495) Release Notes: - N/A --- crates/agent/src/thread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/agent/src/thread.rs b/crates/agent/src/thread.rs index bdf49e625c47702f2c2525d0e7146c75cd3b036e..db01622b97eeb59a2e8cfc9d2c8862bc5f4750f6 100644 --- a/crates/agent/src/thread.rs +++ b/crates/agent/src/thread.rs @@ -2310,11 +2310,11 @@ impl Thread { && profile.is_tool_enabled(profile_tool_name) { match (tool_name.as_ref(), use_streaming_edit_tool) { + ("streaming_edit_file", false) | ("edit_file", true) => None, ("streaming_edit_file", true) => { // Expose streaming tool as "edit_file" Some((SharedString::from("edit_file"), tool.clone())) } - ("edit_file", true) => None, _ => Some((truncate(tool_name), tool.clone())), } } else {