Repository navigation
Turn on Claude sessions by default but as preview - #3187
Conversation
Let's get this in people's hands Fixes microsoft/vscode#289180
There was a problem hiding this comment.
Pull request overview
This PR enables Claude Agent sessions by default in VS Code as a preview feature. The change renames and promotes the Claude Code configuration from an experimental advanced setting to a standard preview setting that is enabled by default.
Changes:
- Renamed configuration key from
chat.claudeCode.enabledtochat.claudeAgent.enabledand enabled it by default - Updated the configuration description to be more descriptive and user-friendly
- Moved the setting from advanced/experimental to standard preview category
- Updated the chat session visibility condition to check the new configuration key
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/platform/configuration/common/configurationService.ts | Removed old EnableClaudeCodeAgent configuration and added new ClaudeAgentEnabled configuration with default value true |
| package.nls.json | Updated localization key and description to reflect new configuration name and provide detailed user-facing description |
| package.json | Added new claudeAgent.enabled setting as a preview feature with default true, removed old claudeCode.enabled setting, removed advanced tags from allowDangerouslySkipPermissions, and updated chat session when clause |
| export const AutomaticRenameSuggestions = defineSetting('renameSuggestions.triggerAutomatically', ConfigType.Simple, true); | ||
| export const TerminalToDebuggerEnabled = defineSetting('chat.copilotDebugCommand.enabled', ConfigType.Simple, true); | ||
| export const CodeSearchAgentEnabled = defineSetting<boolean>('chat.codesearch.enabled', ConfigType.Simple, false); | ||
| export const ClaudeAgentEnabled = defineSetting<boolean>('chat.claudeAgent.enabled', ConfigType.Simple, true); |
There was a problem hiding this comment.
Missing migration path from old configuration key. The old configuration key chat.advanced.claudeCode.enabled / chat.claudeCode.enabled is being removed without a migration to the new key chat.claudeAgent.enabled. This will cause users who have already configured the old setting to lose their preferences.
Consider using defineAndMigrateSetting instead of defineSetting to provide a migration path:
export const ClaudeAgentEnabled = defineAndMigrateSetting<boolean>('chat.advanced.claudeCode.enabled', 'chat.claudeAgent.enabled', true);This pattern is used elsewhere in this file (see lines 661-662 for similar migrations).
| export const ClaudeAgentEnabled = defineSetting<boolean>('chat.claudeAgent.enabled', ConfigType.Simple, true); | |
| export const ClaudeAgentEnabled = defineAndMigrateSetting<boolean>('chat.advanced.claudeCode.enabled', 'chat.claudeAgent.enabled', true); |
Let's get this in people's hands
Fixes microsoft/vscode#289180