Repository navigation
Better craft Copilot CLI identity in VS Code - #315086
Merged
Anthony Kim (anthonykim1) merged 7 commits intoMay 8, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves Copilot CLI’s in-product identity when used via the VS Code chat experience by injecting a VS Code-specific system message into Copilot CLI-backed sessions, ensuring the model doesn’t present itself as a “terminal assistant”.
Changes:
- Add a VS Code-specific
systemMessageto agent-host Copilot session configuration (including provisional-session materialization). - Add a VS Code Copilot CLI chat-panel identity system message to Copilot CLI session options (including when resuming/getting sessions).
- Add unit tests verifying that the system message is passed through in both the agent-host and extension session flows.
Show a summary per file
| File | Description |
|---|---|
| src/vs/platform/agentHost/node/copilot/copilotAgent.ts | Introduces and wires a VS Code-specific system message into the SDK session config builder. |
| src/vs/platform/agentHost/test/node/copilotAgent.test.ts | Adds coverage that provisional-session materialization forwards the system message to the SDK. |
| extensions/copilot/src/extension/chatSessions/copilotcli/node/copilotcliSessionService.ts | Always sets a Copilot CLI chat-panel identity system message (optionally prefixed by prompt variable context). |
| extensions/copilot/src/extension/chatSessions/copilotcli/node/test/copilotCliSessionService.spec.ts | Adds coverage that createSession/getSession pass the identity system message and preserve variable context ordering. |
Copilot's findings
- Files reviewed: 4/4 changed files
- Comments generated: 0
Anthony Kim (anthonykim1)
requested review from
Don Jayamanne (DonJayamanne) and
Peng Lyu (rebornix)
May 7, 2026 20:06
Anthony Kim (anthonykim1)
marked this pull request as ready for review
May 7, 2026 20:07
Anthony Kim (anthonykim1)
marked this pull request as draft
May 7, 2026 20:08
Anthony Kim (anthonykim1)
removed request for
Don Jayamanne (DonJayamanne) and
Peng Lyu (rebornix)
May 7, 2026 20:08
Anthony Kim (anthonykim1)
marked this pull request as ready for review
May 7, 2026 20:38
Dmitriy Vasyura (dmitrivMS)
previously approved these changes
May 7, 2026
Anthony Kim (anthonykim1)
marked this pull request as draft
May 7, 2026 22:26
Anthony Kim (anthonykim1)
marked this pull request as ready for review
May 7, 2026 23:43
TylerLeonhardt
previously approved these changes
May 8, 2026
Anthony Kim (anthonykim1)
marked this pull request as draft
May 8, 2026 01:02
Contributor
|
Base:
|
Anthony Kim (anthonykim1)
marked this pull request as ready for review
May 8, 2026 02:27
TylerLeonhardt
previously approved these changes
May 8, 2026
TylerLeonhardt
approved these changes
May 8, 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 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.
Resolves: #315055

/cc Don Jayamanne (@DonJayamanne) Peng Lyu (@rebornix)