Add Sonnet 5 prompt setting - #328884
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an experiment-gated system prompt customization and routing for Claude Sonnet 5.
Changes:
- Registers the Sonnet 5 experimental setting.
- Adds Sonnet 5 prompt instructions and resolver routing.
- Tests enabled, disabled, and non-Sonnet behavior.
Show a summary per file
| File | Description |
|---|---|
configurationService.ts |
Defines the experiment-backed setting. |
anthropicPrompts.spec.tsx |
Tests prompt selection and isolation. |
anthropicPrompts.tsx |
Implements and routes the Sonnet 5 prompt. |
package.nls.json |
Adds the localized setting description. |
package.json |
Contributes the experimental setting. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 0
- Review effort level: Balanced
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
bhavyaus
marked this pull request as ready for review
August 4, 2026 05:28
bhavyaus
enabled auto-merge (squash)
August 4, 2026 05:28
Contributor
There was a problem hiding this comment.
Review details
Suppressed comments (1)
extensions/copilot/src/extension/prompts/node/agent/anthropicPrompts.tsx:583
- The new experiment-enabled routing branch is not exercised by the agent prompt snapshots:
test/agentPrompt.spec.tsx:34-50has no Sonnet 5 family, and the flag defaults tofalse. Please add coverage that enablesClaudeSonnet5PromptEnabledfor a Sonnet 5 endpoint and verifies the new prompt (plus the disabled fallback), otherwise model matching or prompt rendering can regress unnoticed.
if (this.isSonnet5(endpoint) && this.configurationService.getExperimentBasedConfig(ConfigKey.ClaudeSonnet5PromptEnabled, this.experimentationService)) {
return ClaudeSonnet5Prompt;
- Files reviewed: 4/4 changed files
- Comments generated: 0 new
- Review effort level: Balanced
justschen
approved these changes
Aug 4, 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.
Adds an experiment-gated Sonnet 5 system prompt and model-routing coverage.
Tests: Copilot typecheck, lint, and agent prompt tests.