Skip to content

agentHost: advertise only Copilot models over Mission Control - #340401

Merged
roblourens merged 2 commits into
mainfrom
roblou/agents/mission-control-copilot-models
Oct 8, 2026
Merged

roblourens merged 2 commits into
mainfrom
roblou/agents/mission-control-copilot-models

Conversation

@roblourens

@roblourens roblourens commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

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.

  • Apply the projection consistently to initial and subscribed root snapshots, reconnect snapshots/replay, and live agent updates.
  • Keep the authoritative host catalog and local, SSH and tunnel advertisements unchanged.
  • Cover mixed agents with duplicate model IDs, unauthenticated/authenticated discovery, live updates, both reconnect paths, existing non-Copilot sessions and unaffected connection kinds.

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 after npm run install-fast refreshed the SDK dependencies required by current main.
  • ./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)

Copilot AI balanced review requested due to automatic review settings October 7, 2026 23:39
@roblourens
roblourens marked this pull request as ready for review October 7, 2026 23:43
@roblourens
roblourens enabled auto-merge (squash) October 7, 2026 23:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 copilotcli models.
  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants