Repository navigation
Fix persisted Agent Host MCP authentication - #327154
Merged
Ulugbek Abdullaev (ulugbekna) merged 1 commit intoJul 23, 2026
Merged
Ulugbek Abdullaev (ulugbekna) merged 1 commit into
Ulugbek Abdullaev (ulugbekna) merged 1 commit into
Conversation
Restore persisted dynamic OAuth providers silently after extension host restarts while preserving consent and noninteractive client behavior. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 111cc987-c300-40e6-83f7-f5f524b35fed
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: TylerLeonhardtMatched files:
|
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes persisted Agent Host MCP OAuth authentication after extension-host restarts.
Changes:
- Restores persisted dynamic OAuth providers during silent authentication.
- Prevents interactive client rotation during silent token refresh.
- Serializes provider authentication and adds regression tests.
Show a summary per file
| File | Description |
|---|---|
authentication.ts |
Adds silent session-resolution options. |
agentHostAuth.ts |
Restores providers and serializes authentication. |
agentHostAuth.test.ts |
Covers restoration and concurrency. |
extHostAuthentication.ts |
Makes refresh behavior silence-aware. |
extHostAuthentication.test.ts |
Tests invalid-client silent refresh. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 0
- Review effort level: Medium
roblourens
approved these changes
Jul 23, 2026
Ulugbek Abdullaev (ulugbekna)
deleted the
ulugbekna/fix-agent-host-mcp-auth-restore
branch
July 23, 2026 17:46
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.
Fixes #327137
cc Connor Peet (@connor4312)
Summary
Testing
NODE_OPTIONS=--max-old-space-size=8192 npm run typecheck-client./scripts/test.sh --run src/vs/workbench/contrib/chat/test/browser/agentSessions/agentHostAuth.test.ts --run src/vs/workbench/api/test/browser/extHostAuthentication.test.ts./scripts/test.sh --run src/vs/workbench/contrib/chat/test/browser/agentSessions/agentHostChatContribution.test.ts --grep "mcp auth prompt|silently authenticates|deduplicates concurrent silent authentication"npm run valid-layers-checknpm run precommit