Remove obsolete sponsor-only AI features and add setting to control Copilot AI #993
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Details
Description
The
frontMatter.sponsors.ai.enabledsetting was ignored because two parallel AI systems existed: obsolete sponsor-only AI (using external API with GitHub tokens) and GitHub Copilot integration. Copilot AI activated automatically regardless of sponsor setting.Removed:
frontMatter.sponsors.ai.enabledsettingaiSuggestDescription,aiSuggestTaxonomyAdded:
frontMatter.ai.enabledsetting (default:true) controls Copilot AI featuresUpdated:
ai.enabledsetting and Copilot installationaiEnabled && copilotEnabledSETTING_AI_ENABLEDconstantBehavior:
AI features activate when
frontMatter.ai.enabled !== falseAND GitHub Copilot is installed.Setting
frontMatter.ai.enabled: falsedisables all AI features.Related Issue
Fixes issue where
frontMatter.sponsors.ai.enabledwas ignored and AI features couldn't be disabled.Motivation and Context
Over time, AI became free via GitHub Copilot, making the sponsor-only AI system obsolete. The codebase maintained both systems, causing the sponsor setting to be bypassed. This change removes technical debt and provides proper control over AI features.
How Has This Been Tested
Types of changes
Original prompt
frontMatter.sponsors.ai.enabledseems to be ignored #983💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.