Revert "chat: remove providerApi.enabled setting and legacy code paths (#308341)"#308448
Merged
Revert "chat: remove providerApi.enabled setting and legacy code paths (#308341)"#308448
Conversation
Contributor
Screenshot ChangesBase: Changed (36)Added (2) |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR reverts a prior change that removed the customizations provider API setting and associated legacy code paths, restoring a kill-switch and reintroducing built-in harness behavior (including a new Claude harness descriptor) alongside legacy, promptsService-based discovery in the Chat Customizations management UI.
Changes:
- Re-add
chat.customizations.providerApi.enabledconfiguration and gate provider registrations/harness exposure behind it. - Reintroduce the “core” (promptsService-based) discovery path in the customizations management list widget and adjust grouping (incl. Built-in vs Extensions).
- Add Claude harness descriptor support and update fixtures/docs accordingly.
Show a summary per file
| File | Description |
|---|---|
| src/vs/workbench/test/browser/componentFixtures/sessions/aiCustomizationManagementEditor.fixture.ts | Adds a Claude harness fixture for screenshot coverage. |
| src/vs/workbench/contrib/chat/test/common/customizationHarnessService.test.ts | Adjusts tests after CustomizationHarnessServiceBase is no longer a Disposable. |
| src/vs/workbench/contrib/chat/common/customizationHarnessService.ts | Adds Claude harness + root helpers; removes Disposable inheritance from base service. |
| src/vs/workbench/contrib/chat/common/constants.ts | Restores the provider API configuration key. |
| src/vs/workbench/contrib/chat/browser/chat.contribution.ts | Re-registers the provider API kill-switch setting + updates harness selector description. |
| src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.ts | Gates static harness registration based on provider API setting. |
| src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.ts | Restores core discovery pipeline; adds built-in grouping and Claude-related filtering behavior. |
| src/vs/workbench/api/browser/mainThreadChatAgents2.ts | Gates provider registration and disposes providers when kill-switch turns off. |
| src/vs/sessions/contrib/chat/browser/customizationHarnessService.ts | Removes sessions-specific built-in itemProvider wrapper (relies on restored core path). |
| src/vs/sessions/AI_CUSTOMIZATIONS.md | Updates documentation to reflect Claude harness + restored harness behavior. |
Copilot's findings
- Files reviewed: 10/10 changed files
- Comments generated: 4
jrieken
approved these changes
Apr 8, 2026
This was referenced Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This reverts commit 5dab13f.
The chat customozaion window for local did not show any entries any more.
Can also be seen on the Screenshot Changes section: #308341 (comment)