# agent: Allow thinking in edit file tool \(\#34155\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/16d02cfdb342cc0cad973f90d0e7a739eab63042)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 16d02cfdb342cc0cad973f90d0e7a739eab63042

Requested commit: 16d02cfdb342cc0cad973f90d0e7a739eab63042

Commit: 16d02cfdb342cc0cad973f90d0e7a739eab63042

Tree: 4f994833a9eb296f299655d6ba554844da99c4c9

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
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
```

## Parents

- [2c41e10c98101394529bb1dbd63f311818a12b78](https://git.cafe/gitcafe/zed/commit/2c41e10c98101394529bb1dbd63f311818a12b78?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/16d02cfdb342cc0cad973f90d0e7a739eab63042?format=markdown)
