# agent: Disable thinking when using inline assistant/edit file tool \(\#34141\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 41fe2a2ab4600c41e94d0fa97b9fe1e76977ea33

Requested commit: 41fe2a2ab4600c41e94d0fa97b9fe1e76977ea33

Commit: 41fe2a2ab4600c41e94d0fa97b9fe1e76977ea33

Tree: 7e787ba9540af14675f7da5c37c826273522a6bd

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
agent: Disable thinking when using inline assistant/edit file tool (#34141)

This introduces a new field `thinking_allowed` on `LanguageModelRequest`
which lets us control whether thinking should be enabled if the model
supports it.
We permit thinking in the Inline Assistant, Edit File tool and the Git
Commit message generator, this should make generation faster when using
a thinking model, e.g. `claude-sonnet-4-thinking`

Release Notes:

- N/A
```

## Parents

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

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