Selecting a foreground custom agent leaves the session model unchanged (Windows 1.1.23)

Open
#4,097 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
github
Domain
ai, desktop

Research direction

Start by reproducing the issue in the GitHub Copilot desktop app with the repository's .github/agents/apex.agent.md profile, checking the model picker before and after selecting APEX. Compare the effective model with standalone Copilot CLI, then determine whether the mismatch is only in the picker or also affects inference; done means the declared model is applied or precedence differences are documented.

Written by the indexing model from the issue text.

Description

Short summary

Selecting a repository custom agent in the desktop app leaves the session model unchanged, despite an explicit
model: in the agent profile. The same coordinator profile switches models in standalone Copilot CLI.

Affected version or release

GitHub Copilot app 1.1.23, verified through Windows installation metadata.

Installation context
  • Windows 11 x64, build 26200.
  • Local repository, Interactive session, repository agents under .github/agents/.
  • Comparison client: standalone Copilot CLI 1.0.86 running in Ubuntu/WSL2.
  • The desktop app's embedded engine version has not been established. This is not an identical-engine comparison.
What happened?

After selecting APEX, the app showed both APEX and GPT-6 Astra / Medium. Sending a short prompt started the
session and returned a response, but the picker still showed Astra. MAI-Code-1.1-Flash was available in the model picker.

Selecting APEX in standalone CLI changed the model to mai-code-1.1-flash. In the desktop app, manually selecting MAI
worked and allowed us to continue testing. We did not need to replace the agent's model setting with Auto.

The observation concerns the session's displayed selection. We have not captured inference telemetry proving whether
the mismatch is limited to the UI or also affects the actual model request.

Steps to reproduce

Our installed .github/agents/apex.agent.md begins with:

---
name: APEX
description: Fast coordinator for APEX status, resume, and direct specialist handoff.
target: github-copilot
model: mai-code-1.1-flash
user-invocable: true
disable-model-invocation: true
tools:
  - ask_user
  - apex/status
  - apex/nextTask
  - apex/projectCreate
  - apex/projectList
  - apex/projectUse
  - apex/projectDelete
  - apex/gateDecide
---

This is the tested profile excerpt, not a separately verified minimal reproduction; its body contains APEX workflow
instructions and its project has an APEX MCP server.

  1. Open the repository in the desktop app and start an existing local repository session in Interactive mode.
  2. With GPT-6 Astra selected, select APEX using /agent or the agent picker.
  3. Check the model picker before and after a short prompt such as test.
  4. Observe that APEX is selected but the model picker remains on Astra.
  5. In standalone CLI, select APEX with the same coordinator declaration and observe the switch to MAI.

We initially encountered a separate missing-agent error in a new worktree. The model-selection observation above
persisted after creating a working local-repository session; this report is not about that startup error.

Expected behavior

Selecting a custom agent should apply its declared model when available, or clearly explain that an explicit session
selection takes precedence. The picker should show the effective model. If desktop and CLI intentionally use different
precedence rules, please document those differences.

Additional context
Dominant language
No language data
Stars
2.1k
Forks
157
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from github/app

All issues in github/app

Similar issues

More AI Infra & Agents issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.