sessions: support signed-out Copilot Agent Host sessions - #330094
Merged
Vritant Bhardwaj (vritant24) merged 5 commits intoAug 11, 2026
Conversation
Vritant Bhardwaj (vritant24)
force-pushed
the
vritant24/agent-host-copilot-resource-optional
branch
from
August 10, 2026 21:21
8b64944 to
ca9a681
Compare
Vritant Bhardwaj (vritant24)
force-pushed
the
vritant24/agent-host-signed-out-models
branch
from
August 10, 2026 21:21
3e0a03c to
b97805e
Compare
Copilot started reviewing on behalf of
Vritant Bhardwaj (vritant24)
August 10, 2026 21:22
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Adds signed-out BYOK support for Copilot Agent Host sessions while retaining authentication for GitHub-backed models.
Changes:
- Adds signed-out model setup guidance.
- Makes authentication depend on the selected model’s advertised BYOK metadata.
- Adds related availability and authentication tests.
Show a summary per file
| File | Description |
|---|---|
agentHostAuth.test.ts |
Tests model-specific authentication decisions. |
agentHostSignedOutModelsNotification.ts |
Adds signed-out model guidance. |
agentHostSessionHandler.ts |
Passes model selection into authentication. |
agentHostAuth.ts |
Implements BYOK authentication bypass. |
sessionTypeAuthRequirement.test.ts |
Tests notification readiness and visibility. |
localAgentHost.contribution.ts |
Registers the notification contribution. |
Review details
Tip
Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 6/6 changed files
- Comments generated: 2
- Review effort level: Balanced
Vritant Bhardwaj (vritant24)
force-pushed
the
vritant24/agent-host-copilot-resource-optional
branch
from
August 10, 2026 21:37
6b9794b to
8f16c2a
Compare
Vritant Bhardwaj (vritant24)
force-pushed
the
vritant24/agent-host-signed-out-models
branch
from
August 10, 2026 21:37
b97805e to
83140e6
Compare
Vritant Bhardwaj (vritant24)
force-pushed
the
vritant24/agent-host-copilot-resource-optional
branch
from
August 10, 2026 23:09
8f16c2a to
278805b
Compare
Vritant Bhardwaj (vritant24)
force-pushed
the
vritant24/agent-host-signed-out-models
branch
2 times, most recently
from
August 10, 2026 23:34
a7e8792 to
e3bb8d0
Compare
Vritant Bhardwaj (vritant24)
force-pushed
the
vritant24/agent-host-copilot-resource-optional
branch
2 times, most recently
from
August 10, 2026 23:39
dce238f to
ed98646
Compare
Vritant Bhardwaj (vritant24)
force-pushed
the
vritant24/agent-host-signed-out-models
branch
from
August 10, 2026 23:39
e3bb8d0 to
c9b7417
Compare
Vritant Bhardwaj (vritant24)
marked this pull request as ready for review
August 11, 2026 00:11
Guide signed-out users to configure a BYOK model, and allow sessions using those models to proceed without GitHub authentication. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Preserve optional authentication for providers without bridged BYOK models, and require a visible targeted model before suppressing setup guidance. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Expose the model picker from the signed-out Agents welcome state when BYOK operation is enabled. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Vritant Bhardwaj (vritant24)
force-pushed
the
vritant24/agent-host-copilot-resource-optional
branch
from
August 11, 2026 00:28
ed98646 to
a181ca4
Compare
Vritant Bhardwaj (vritant24)
force-pushed
the
vritant24/agent-host-signed-out-models
branch
from
August 11, 2026 00:28
634071e to
b456b81
Compare
Dmitriy Vasyura (dmitrivMS)
previously approved these changes
Aug 11, 2026
Don Jayamanne (DonJayamanne)
approved these changes
Aug 11, 2026
Don Jayamanne (DonJayamanne)
previously approved these changes
Aug 11, 2026
TylerLeonhardt
approved these changes
Aug 11, 2026
TylerLeonhardt
previously approved these changes
Aug 11, 2026
Base automatically changed from
vritant24/agent-host-copilot-resource-optional
to
main
August 11, 2026 14:59
Vritant Bhardwaj (vritant24)
dismissed stale reviews from TylerLeonhardt and Don Jayamanne (DonJayamanne)
August 11, 2026 14:59
The base branch was changed.
Vritant Bhardwaj (vritant24)
dismissed
Dmitriy Vasyura (dmitrivMS)’s stale review
August 11, 2026 14:59
The base branch was changed.
Co-authored-by: vritant24 <13074644+vritant24@users.noreply.github.com>
Vritant Bhardwaj (vritant24)
enabled auto-merge
August 11, 2026 15:16
Ben Villalobos (benvillalobos)
approved these changes
Aug 11, 2026
Vritant Bhardwaj (vritant24)
deleted the
vritant24/agent-host-signed-out-models
branch
August 11, 2026 16:07
2 tasks
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.
Summary
Technical context for AI-assisted review
Intent and previous behavior
The signed-out Agent Host gate from the base branch makes the Copilot Agent Host target available when BYOK use is enabled. Session creation still treated every selected model as requiring the agent's GitHub authentication, however, and users without a ready model had no guidance in the chat input.
Implementation
A session-type-scoped chat input notification observes sign-in state, extension registration, configuration, and Agent Host model availability. It offers model management and sign-in actions when the Copilot Agent Host target is selected but no usable BYOK model is available.
The session handler now passes the selected model into the authentication decision. Required agent authentication is bypassed only when that model is an advertised BYOK model; all other selections continue through the existing authentication flow.
Behavior and constraints
Review context
This change is stacked on #330082 and relies on its signed-out session-type availability behavior.