Skip to content

Remove things when AI is disabled#8458

Merged
alexr00 merged 1 commit intomainfrom
alexr00/liable-lungfish
Feb 2, 2026
Merged

Remove things when AI is disabled#8458
alexr00 merged 1 commit intomainfrom
alexr00/liable-lungfish

Conversation

@alexr00
Copy link
Member

@alexr00 alexr00 commented Feb 2, 2026

Fixes #8376

Copilot AI review requested due to automatic review settings February 2, 2026 11:24
@alexr00 alexr00 enabled auto-merge (squash) February 2, 2026 11:24
@alexr00 alexr00 self-assigned this Feb 2, 2026
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 2, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements a solution to hide AI-related features when the chat.disableAIFeatures setting is set to true, addressing issue #8376 where the "Refresh Chat Sessions" command remained available after AI features were disabled.

Changes:

  • Added new setting key constants (CHAT_SETTINGS_NAMESPACE and DISABLE_AI_FEATURES) for referencing the AI disable setting
  • Updated various AI-related commands and menu items in package.json to check for !config.chat.disableAIFeatures
  • Modified code to conditionally hide/disable AI features including notification prioritization, title/description generation, auto-reviewer, and query editing with AI

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/common/settingKeys.ts Adds constants for the chat namespace and AI features disable setting
src/common/settingsUtils.ts Conditionally hides the "Edit with AI" option in query editing when AI is disabled
src/github/folderRepositoryManager.ts Returns undefined for AI-powered title/description provider and auto-reviewer when AI is disabled
src/notifications/notificationsProvider.ts Skips AI-based notification prioritization when AI features are disabled
package.json Updates menu item visibility conditions to hide AI-related commands when AI is disabled

@alexr00 alexr00 merged commit a5b7228 into main Feb 2, 2026
12 checks passed
@alexr00 alexr00 deleted the alexr00/liable-lungfish branch February 2, 2026 14:04
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.

GitHub Pull Requests: Refresh Chat Sessions command remains available with disableAIFeature set to true

2 participants