This repository was archived by the owner on May 20, 2026. It is now read-only.
Add inline YAML prompt override debug setting#5019
Closed
dileepyavan wants to merge 4 commits into
Closed
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new advanced debug configuration option to override the agent prompt/tool YAML inline (in settings) as an alternative to providing a YAML file, and wires this into the tool-calling loop so inline overrides take precedence when both are set.
Changes:
- Introduces
chat.debug.promptOverrideStringconfig key and contributes it topackage.jsonadvanced settings. - Updates prompt override application to support inline YAML or a YAML file (preferring inline when both exist).
- Adds unit tests covering the new configuration key and inline override behavior.
Show a summary per file
| File | Description |
|---|---|
| src/platform/configuration/common/configurationService.ts | Adds ConfigKey.Advanced.DebugPromptOverrideString to configuration keys. |
| package.json | Contributes the new github.copilot.chat.debug.promptOverrideString setting to the advanced configuration section. |
| src/extension/intents/node/toolCallingLoop.ts | Applies configured prompt overrides using either inline YAML or a file during prompt construction. |
| src/extension/intents/node/promptOverride.ts | Implements inline YAML parsing/application and a unified “configured overrides” entry point. |
| src/extension/intents/node/test/promptOverride.spec.ts | Adds tests for inline overrides and inline-vs-file precedence. |
| src/extension/test/node/configurations.spec.ts | Adds a test asserting the new setting key is camelCase and present in the advanced section. |
Copilot's findings
- Files reviewed: 6/6 changed files
- Comments generated: 2
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
karthiknadig
previously approved these changes
Apr 7, 2026
dmitrivMS
approved these changes
Apr 7, 2026
rwoll
reviewed
Apr 7, 2026
Member
Author
|
Closing this as copilot repo changed. Opened PR on vscode repo: microsoft/vscode#308309 |
auto-merge was automatically disabled
April 7, 2026 19:29
Pull request was closed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
example: "github.copilot.chat.debug.promptOverrideString": "systemPrompt: "You are a concise coding assistant. Always explain tool choices briefly."\ntoolDescriptions:\n read_file:\n description: "Read a file from the workspace when exact file content is needed."\n grep_search:\n description: "Search the workspace for exact text or regex matches before reading files.""