zed/crates/settings/src
Oliver Azevedo Barnes 692a137782
agent: Add project-level disable_ai setting (#47902)
Closes #47854

Move `disable_ai` from root settings to `ProjectSettingsContent` to
enable per-project AI configuration via `.zed/settings.json`.

- Update settings UI to allow viewing/editing at both user and project
level
- Update editor to check project-level settings for edit predictions and
context menus
- Prevent MCP servers from starting when AI is disabled at project level

Note: SaturatingBool ensures that if user globally disables AI, projects
cannot re-enable it. Projects can only further restrict AI, not grant
it.

Release Notes:

- added support for disabling AI in project settings 

---------

Co-authored-by: Ben Kunkle <ben.kunkle@gmail.com>
2026-02-13 11:57:43 -06:00
..
base_keymap_setting.rs Automate settings registration (#42238) 2025-11-07 22:27:14 +00:00
content_into_gpui.rs Split settings content into its own crate (#46845) 2026-01-15 18:10:21 +00:00
editable_setting_control.rs Settings refactor (#38367) 2025-09-18 16:47:23 +00:00
editorconfig_store.rs settings: Improve performance for internal editorconfig resolution (#48243) 2026-02-03 11:45:45 +05:30
keymap_file.rs Use anyOf instead of oneOf in keymap schema (#47248) 2026-01-20 21:03:17 +00:00
settings.rs Fix settings migrations for nested platform/channel/profile keys (#48550) 2026-02-06 16:50:36 +00:00
settings_file.rs Fix config file watch task leak (#47246) 2026-01-20 15:58:35 -05:00
settings_store.rs agent: Add project-level disable_ai setting (#47902) 2026-02-13 11:57:43 -06:00
vscode_import.rs agent: Add project-level disable_ai setting (#47902) 2026-02-13 11:57:43 -06:00