Skip to content

feat: add global toggle to disable all AI features#496

Merged
datlechin merged 3 commits intomainfrom
feat/toggle-ai
Mar 29, 2026
Merged

feat: add global toggle to disable all AI features#496
datlechin merged 3 commits intomainfrom
feat/toggle-ai

Conversation

@datlechin
Copy link
Copy Markdown
Collaborator

Summary

Closes #494

  • Adds an "Enable AI Features" toggle in Settings > AI that completely disables all AI functionality when turned off
  • When disabled: AI Chat tab hidden, context menu AI items removed, "Ask AI to Fix" button removed from error alerts, inline suggestions suppressed, Ollama auto-detection skipped, per-connection AI policy section hidden
  • Defaults to enabled for existing users (backward-compatible)

Test plan

  • Toggle off in Settings > AI → all subsections collapse
  • Right sidebar shows only Details tab (no AI Chat)
  • Editor right-click with selection → no "Explain/Optimize with AI" items
  • Trigger a query error → no "Ask AI to Fix" button, just OK
  • Connection form → no AI policy section
  • Toggle back on → everything reappears
  • Fresh install (no existing settings) → AI enabled by default

@datlechin datlechin merged commit 5531c75 into main Mar 29, 2026
2 checks passed
@datlechin datlechin deleted the feat/toggle-ai branch March 29, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FR] Can we have a toggle AI usage on off to turn off all AI features just like Zed

1 participant