Repository navigation
agentHost: use CLI host OAuth credentials for Mission Control - #348787
Merged
Merged
Conversation
Install CLI-owned GitHub execution credentials through trusted management IPC, separate from direct-client authentication. Apply the host's credential choice consistently to live and restored Mission Control work while retaining same-owner admission and credential revocation. Co-authored-by: Copilot <[email protected]>
Preserve standard authentication account hints alongside parent-owned execution credentials. Co-authored-by: Copilot <[email protected]>
This comment has been minimized.
This comment has been minimized.
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The local credential source rejects valid parent-owned credentials without a matching _tokens entry, causing host operations such as opening a session canvas to fail with AuthRequired.
1 open issue
What changed in this PR
This PR enables CLI-hosted Mission Control sessions to use the host’s GitHub OAuth credential for Copilot and repository operations, independently of connecting clients’ credentials.
Changes:
- Install parent-owned execution credentials before registration and reinstall them after an agent-host crash.
- Apply explicit host/client credential choices through owner-validated configuration, preserving the choice when registration is withdrawn.
- Add credential-isolation and lifecycle tests, and document the authentication boundaries.
| File | Description |
|---|---|
src/vs/workbench/contrib/chat/browser/remoteAgentHost/missionControlSharingService.ts |
Send explicit host/client credential choices. |
src/vs/server/test/node/serverAgentHostManager.test.ts |
Test credential installation, crash recovery, and startup rejection. |
src/vs/server/node/serverAgentHostManager.ts |
Install CLI OAuth credentials before registration. |
src/vs/platform/agentHost/test/node/missionControlProtocolServer.test.ts |
Test owner validation and credential-mode persistence. |
src/vs/platform/agentHost/test/node/missionControlHost.test.ts |
Exercise shared authentication configuration. |
src/vs/platform/agentHost/test/node/agentService.test.ts |
Supply the new management-service dependency. |
src/vs/platform/agentHost/test/node/agentHostAuthenticationScope.test.ts |
Test parent-owned credential isolation, replacement, and expiry. |
src/vs/platform/agentHost/node/missionControl/missionControlHost.ts |
Use shared authentication mode for relay credentials. |
src/vs/platform/agentHost/node/missionControl/missionControlEnvironment.ts |
Apply validated credential choices before relay attachment. |
src/vs/platform/agentHost/node/missionControl/MISSION_CONTROL.md |
Document CLI credentials and mode persistence. |
src/vs/platform/agentHost/node/missionControl/MISSION_CONTROL_SECURITY_REQUIREMENTS.md |
Document parent-owned credential security boundaries. |
src/vs/platform/agentHost/node/agentHostManagementService.ts |
Expose trusted credential installation. |
src/vs/platform/agentHost/node/agentHostAuthenticationService.ts |
Store and resolve isolated parent-owned credentials. |
src/vs/platform/agentHost/common/agentService.ts |
Define the management API and credential-choice semantics. |
Review effort: Balanced
Accept a current shared parent credential in local continuation without requiring an entry in the direct-client token pool. Retain capture lifetime and revocation checks. Co-authored-by: Copilot <[email protected]>
This comment has been minimized.
This comment has been minimized.
roblourens
marked this pull request as ready for review
November 17, 2026 06:52
roblourens
enabled auto-merge
November 17, 2026 06:53
Dmitriy Vasyura (dmitrivMS)
previously approved these changes
Nov 17, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 17, 2026
Preserve categorized Mission Control configuration errors alongside host credential selection. Co-authored-by: Copilot <[email protected]>
This comment has been minimized.
This comment has been minimized.
Bryan Chen (bryanchen-d)
previously approved these changes
Nov 17, 2026
Christof Marti (chrmarti)
previously approved these changes
Nov 17, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 17, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Nov 17, 2026
Expect explicit host-credential mode when validating canonical Windows drive grants through CLI environment registration. Co-authored-by: Copilot <[email protected]>
Preserve Mission Control background recovery alongside shared host execution authentication. Co-authored-by: Copilot <[email protected]>
roblourens
dismissed stale reviews from Christof Marti (chrmarti) and Bryan Chen (bryanchen-d)
via
November 17, 2026 19:17
a16a8e4
Contributor
|
No demo for |
roblourens
enabled auto-merge
November 17, 2026 19:29
Dmitriy Vasyura (dmitrivMS)
approved these changes
Nov 17, 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.

CLI-hosted GitHub environments have a repository-capable OAuth login, but Mission Control sessions use the connecting client's identity-only token unless host execution credentials are configured.
Install the CLI host's OAuth credential for Copilot and repository operations before registration, and reinstall it after an agent-host crash. Keep it in a trusted-parent-owned slot so direct-client authentication or sign-out cannot replace or revoke it. Apply explicit host/client credential choices through the same owner-validated configuration for desktop and CLI hosts. Live requests and restored background work use the shared host authentication mode; registration withdrawal does not reset that choice.
Same-account client admission, independent MCP authentication, and SSH/dev-tunnel credential behavior remain unchanged. The host OAuth login still needs any organization-required SSO authorization.
Local validation passed:
Result: build and type-check passed; 497 tests passed and 5 were pending. Live Windows host SSO was not exercised. To verify against GitHub, start an updated CLI GitHub environment, connect from the same GitHub account, and confirm an agent-shell
gh repo viewcan access an organization repository authorized for the host's OAuth login.(Written by Copilot)