Remove chat.generalPurposeAgent.enabled and related code - #325259
Merged
Martin Aeschlimann (aeschli) merged 3 commits intoJul 12, 2026
Merged
Remove chat.generalPurposeAgent.enabled and related code#325259Martin Aeschlimann (aeschli) merged 3 commits into
chat.generalPurposeAgent.enabled and related code#325259Martin Aeschlimann (aeschli) merged 3 commits into
Conversation
Copilot started reviewing on behalf of
Martin Aeschlimann (aeschli)
July 10, 2026 09:18
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request removes the chat.generalPurposeAgent.enabled configuration and all associated “General Purpose” subagent behavior, simplifying both core and extension-side automatic-instructions generation and aligning tests with the new behavior. It also adjusts runSubagent so that omitting agentName inherits the current agent’s mode instructions.
Changes:
- Removed the
chat.generalPurposeAgent.enabledsetting registration and the correspondingChatConfigurationenum entry (plus theGeneralPurposeAgentNameconstant). - Simplified subagent listing/selection logic in core (
ComputeAutomaticInstructions,RunSubagentTool) and Copilot extension (AutomaticInstructionsCollector) to no longer special-case a built-in General Purpose agent. - Updated/removed tests that asserted General Purpose agent behavior; added a regression test ensuring omitted
agentNameinherits current mode instructions.
Show a summary per file
| File | Description |
|---|---|
| src/vs/workbench/contrib/chat/test/common/tools/builtinTools/runSubagentTool.test.ts | Removes GP-specific tests and adds coverage for inheriting current mode instructions when agentName is omitted. |
| src/vs/workbench/contrib/chat/test/common/promptSyntax/computeAutomaticInstructions.test.ts | Removes GP agent ordering test from automatic-instructions generation. |
| src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.ts | Removes GP gating and adds “inherit current agent” behavior when agentName is omitted. |
| src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.ts | Removes GP agent injection into <agents> list and updates tool guidance text. |
| src/vs/workbench/contrib/chat/common/constants.ts | Deletes the configuration key and the GeneralPurposeAgentName constant. |
| src/vs/workbench/contrib/chat/browser/chat.shared.contribution.ts | Removes configuration registration for chat.generalPurposeAgent.enabled. |
| extensions/copilot/src/platform/promptFiles/test/node/automaticInstructionsCollector.spec.ts | Removes GP agent ordering test in extension-side instruction collection. |
| extensions/copilot/src/platform/promptFiles/node/automaticInstructionsCollector.ts | Removes GP agent injection into <agents> list and updates tool guidance text. |
| extensions/copilot/src/platform/promptFiles/common/promptsService.ts | Removes the extension-side config constant for chat.generalPurposeAgent.enabled. |
Review details
- Files reviewed: 9/9 changed files
- Comments generated: 4
- Review effort level: Low
Sandeep Somavarapu (sandy081)
previously approved these changes
Jul 10, 2026
roblourens
previously approved these changes
Jul 10, 2026
Martin Aeschlimann (aeschli)
dismissed stale reviews from roblourens and Sandeep Somavarapu (sandy081)
via
July 11, 2026 11:57
95e94da
Martin Aeschlimann (aeschli)
enabled auto-merge (squash)
July 11, 2026 12:00
Ladislau Szomoru (lszomoru)
approved these changes
Jul 11, 2026
Member
|
@microsoft-github-policy-service rerun |
Ladislau Szomoru (lszomoru)
approved these changes
Jul 11, 2026
Tyler James Leonhardt (TylerLeonhardt)
approved these changes
Jul 11, 2026
auto-merge was automatically disabled
July 12, 2026 18:47
Pull request was closed
Martin Aeschlimann (aeschli)
enabled auto-merge (squash)
July 12, 2026 18:47
Martin Aeschlimann (aeschli)
deleted the
agents/remove-generalpurposeagent-enabled
branch
July 12, 2026 19:56
Martin Aeschlimann (aeschli)
added a commit
that referenced
this pull request
Jul 23, 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 pull request removes the
chat.generalPurposeAgent.enabledsetting and all associated code that relied on it being true, as the default value is false. Key changes include:chat.shared.contribution.ts.constants.tsandpromptsService.ts.runSubagentTool.ts,computeAutomaticInstructions.ts, andautomaticInstructionsCollector.ts.runSubagentTool.test.ts,computeAutomaticInstructions.test.ts, andautomaticInstructionsCollector.spec.tsto reflect these changes.Additionally, a regression was fixed where unnamed subagents were not inheriting the current agent correctly. All validation checks have passed successfully.