From 16d02cfdb342cc0cad973f90d0e7a739eab63042 Mon Sep 17 00:00:00 2001 From: Bennet Bo Fenner Date: Wed, 9 Jul 2025 23:08:32 +0200 Subject: [PATCH] agent: Allow thinking in edit file tool (#34155) Follow up to #34141. As pointed out by @maan2003 changing the thinking parameters invalidates the message cache ([Docs](https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching#what-invalidates-the-cache)). All the other places where `thinking_allowed ` is set to `false` should be fine since we do not do any caching there. Release Notes: - N/A --- crates/assistant_tools/src/edit_agent.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/assistant_tools/src/edit_agent.rs b/crates/assistant_tools/src/edit_agent.rs index af7dae2e20..0184dff36c 100644 --- a/crates/assistant_tools/src/edit_agent.rs +++ b/crates/assistant_tools/src/edit_agent.rs @@ -719,7 +719,7 @@ impl EditAgent { tools, stop: Vec::new(), temperature: None, - thinking_allowed: false, + thinking_allowed: true, }; Ok(self.model.stream_completion_text(request, cx).await?.stream)