Repository navigation
agentHost: advertise only Copilot models over Mission Control - #340401
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
roblourens
marked this pull request as ready for review
October 7, 2026 23:43
roblourens
enabled auto-merge (squash)
October 7, 2026 23:43
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The projection is consistently applied without mutating authoritative state, with comprehensive regression coverage.
0 open findings
What changed in this PR
Restricts Mission Control model discovery to Copilot while preserving other agents and non-Mission-Control behavior.
Changes:
- Projects root snapshots, live updates, and reconnect replay.
- Configures Mission Control to advertise only
copilotclimodels. - Adds regression tests and documentation.
| File | Description |
|---|---|
protocolServerHandler.ts |
Adds per-handler model projection. |
missionControlHost.ts |
Enables Copilot-only advertisement. |
protocolServerHandler.test.ts |
Covers snapshots, updates, replay, and unaffected connections. |
missionControlHost.test.ts |
Verifies Mission Control configuration. |
MISSION_CONTROL.md |
Documents model advertisement behavior. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
Co-authored-by: Copilot <[email protected]> # Conflicts: # src/vs/platform/agentHost/node/missionControl/missionControlHost.ts # src/vs/platform/agentHost/node/protocolServerHandler.ts
Joaquín Ruales (jruales)
approved these changes
Oct 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 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
The iOS model picker currently combines models from all agents on an environment, even when the open conversation belongs to Copilot. Selecting a Codex or Claude model does not switch the conversation's agent, so an incompatible model can reach Copilot and fail with "The requested model is not supported".
As a host-side workaround, Mission Control connections advertise models only for the native Copilot agent (
copilotcli). Other agents remain advertised with empty model lists; their identities, capabilities, protected resources and existing sessions are preserved.This applies to all Mission Control clients, not just iOS. It limits model discovery, not agent execution, and does not fix the separate mobile-credential issue that can produce an empty Copilot model catalog.
Related client issue: github/mobile-ios#26865.
The PR diff contains only this workaround, related tests and documentation; diagnostic logging is excluded.
Validation
npm run build-fast -- --client-only— passed afternpm run install-fastrefreshed the SDK dependencies required by currentmain../scripts/test.sh --reporter dot --run src/vs/platform/agentHost/test/node/protocolServerHandler.test.ts --run src/vs/platform/agentHost/test/node/missionControlHost.test.ts --run src/vs/platform/agentHost/test/node/copilotAgent.test.ts --grep 'model advertisements|Mission Control model advertisements|Mission Control|relay|pre-authentication|reconnect|model catalog|model refresh|refreshModels|empty refresh|sign-out'— passed, 79 tests, including the sign-out test synchronized by the now-merged agentHost: add opt-in local credential delegation for Mission Control #340387.npm run typecheck-client— passed.npm run eslint -- src/vs/platform/agentHost/node/protocolServerHandler.ts src/vs/platform/agentHost/node/missionControl/missionControlHost.ts src/vs/platform/agentHost/test/node/protocolServerHandler.test.ts src/vs/platform/agentHost/test/node/missionControlHost.test.ts— passed.git diff --check— passed.Live iOS validation has not been performed for this workaround. To verify manually, connect iOS to a Mission Control environment with Copilot plus other agents: the Copilot conversation's model picker should offer only Copilot's models, including after reconnect or catalog refresh. Local VS Code, SSH and tunnel connections should still expose all agents' model lists.
(Written by Copilot)