Skip to content

chat: remove providerApi.enabled setting and Claude harness from core#308590

Merged
joshspicer merged 1 commit intomainfrom
copilot/cleanup-provider-api-setting
Apr 8, 2026
Merged

chat: remove providerApi.enabled setting and Claude harness from core#308590
joshspicer merged 1 commit intomainfrom
copilot/cleanup-provider-api-setting

Conversation

@joshspicer
Copy link
Copy Markdown
Member

Summary

Minimal cleanup that removes the chat.customizations.providerApi.enabled kill-switch setting and the built-in Claude harness from core VS Code. The provider API is now permanently enabled.

Re-attempt of the non-breaking parts of #308341 (reverted in #308448). The core discovery path (fetchCoreItemsForSection) and all its grouping/filtering logic are preserved — only the kill-switch and Claude harness are removed. Further cleanup will be done in follow-up PRs.

What changed (6 files, +7 / -119 lines)

File Change
constants.ts Removed CustomizationsProviderApi enum value
chat.contribution.ts Removed setting registration, updated harness selector description
mainThreadChatAgents2.ts Removed IConfigurationService dep, kill-switch config listener, and provider registration guard
common/customizationHarnessService.ts Removed Claude enum value, getClaudeUserRoots(), createClaudeHarnessDescriptor()
browser/customizationHarnessService.ts Simplified to always register only Local harness (no conditional branching)
aiCustomizationManagementEditor.fixture.ts Removed Claude imports, fixture, and harness descriptor

What was NOT changed

  • Core discovery path (fetchCoreItemsForSection, filterItemsForCore, applyBuiltinGroupKeys) — preserved
  • CLI harness descriptor factory — preserved (used by Sessions)
  • All semantic instruction grouping, applyTo badges, and built-in extension grouping — preserved

Validation

  • TypeScript compilation clean
  • All 15 customizationHarnessService unit tests pass
  • Component explorer fixtures verified: LocalHarness, InstructionsTabWithItems both render correctly with full grouping and metadata"

Copilot AI review requested due to automatic review settings April 8, 2026 19:00
The provider API is now permanently enabled. This removes the
chat.customizations.providerApi.enabled kill-switch setting and all
associated conditional logic:

- Removed CustomizationsProviderApi enum value and setting registration
- Removed IConfigurationService dependency and kill-switch guards from
  mainThreadChatAgents2 (config listener + registration gate)
- Simplified core CustomizationHarnessService to always register only
  the Local harness (no conditional CLI/Claude fallback)
- Removed Claude harness enum value, factory, and user-root helper
  from common customizationHarnessService (now extension-contributed)
- Removed Claude harness fixture and imports
- Updated harness selector setting description (removed harness names)
@joshspicer joshspicer force-pushed the copilot/cleanup-provider-api-setting branch from f0a8f21 to b0e02cb Compare April 8, 2026 19:04
Copy link
Copy Markdown
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 removes the chat.customizations.providerApi.enabled kill-switch and the built-in Claude customization harness from VS Code core, making the provider API path permanently available while keeping the legacy/core discovery logic intact as a fallback.

Changes:

  • Removed the chat.customizations.providerApi.enabled configuration key (schema + enum) and its corresponding guard logic in the main thread.
  • Removed Claude harness support from the shared harness utilities and from the component fixture coverage.
  • Simplified the core harness service to only statically register the Local (VS Code) harness.
Show a summary per file
File Description
src/vs/workbench/test/browser/componentFixtures/sessions/aiCustomizationManagementEditor.fixture.ts Removes Claude harness descriptor and fixture scenario from the component fixtures.
src/vs/workbench/contrib/chat/common/customizationHarnessService.ts Removes Claude harness enum value and descriptor/root helpers; updates restricted-harness docs.
src/vs/workbench/contrib/chat/common/constants.ts Removes ChatConfiguration.CustomizationsProviderApi enum value.
src/vs/workbench/contrib/chat/browser/chat.contribution.ts Removes configuration registration for the provider API kill-switch; updates harness-selector setting description.
src/vs/workbench/contrib/chat/browser/aiCustomization/customizationHarnessService.ts Removes conditional harness registration; always registers only the Local harness in core.
src/vs/workbench/api/browser/mainThreadChatAgents2.ts Removes configuration dependency + kill-switch listener and the registration guard for customization providers.

Copilot's findings

  • Files reviewed: 7/7 changed files
  • Comments generated: 1

Comment thread src/vs/workbench/contrib/chat/browser/chat.contribution.ts
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

Screenshot Changes

Base: 2d7de178 Current: 571f52c5

Removed (2)

chat/aiCustomizations/aiCustomizationManagementEditor/ClaudeHarness/Dark

baseline

chat/aiCustomizations/aiCustomizationManagementEditor/ClaudeHarness/Light

baseline

@joshspicer joshspicer merged commit 956e12a into main Apr 8, 2026
23 checks passed
@joshspicer joshspicer deleted the copilot/cleanup-provider-api-setting branch April 8, 2026 20:45
@vs-code-engineering vs-code-engineering bot added this to the 1.116.0 milestone Apr 8, 2026
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.

3 participants