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
This commit is contained in:
Bennet Bo Fenner 2025-07-09 23:08:32 +02:00 committed by GitHub
parent 2c41e10c98
commit 16d02cfdb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)