# Stricter \`disable_ai\` overrides \(\#35977\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6478e66e7a6e0c2c580190c674e1f9f1db92f764

Requested commit: 6478e66e7a6e0c2c580190c674e1f9f1db92f764

Commit: 6478e66e7a6e0c2c580190c674e1f9f1db92f764

Tree: 3419ddd26d5469e479f20e3787a206e788f4bcbc

Author: Richard Feldman

Committer: GitHub

## Message

```
Stricter `disable_ai` overrides (#35977)

Settings overrides (e.g. local project settings, server settings) can no
longer change `disable_ai` to `false` if it was `true`; they can only
change it to `true`. In other words, settings can only cause AI to be
*more* disabled, they can't undo the user's preference for no AI (or the
project's requirement not to use AI).

Release Notes:

- Settings overrides (such as local project settings) can now only
override `disable_ai` to become `true`; they can no longer cause
otherwise-disabled AI to become re-enabled.

---------

Co-authored-by: Assistant <assistant@anthropic.com>
Co-authored-by: David Kleingeld <git@davidsk.dev>
```

## Parents

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

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