Selecting a foreground custom agent leaves the session model unchanged (Windows 1.1.23)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
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.
- Open the repository in the desktop app and start an existing local repository session in Interactive mode.
- With GPT-6 Astra selected, select APEX using
/agentor the agent picker. - Check the model picker before and after a short prompt such as
test. - Observe that APEX is selected but the model picker remains on Astra.
- 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
- Manual model selection is a usable workaround for our foreground test, but does not establish automatic routing.
- Related: https://github.com/github/app/issues/3775 reports model declarations being ignored for delegated subagents.
This report concerns selecting a foreground custom agent. - Reference: https://docs.github.com/en/copilot/reference/custom-agents-configuration
- No credentials, private repository content or raw session logs are attached.
- Dominant language
- No language data
- Stars
- 2.1k
- Forks
- 157
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/app
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Similar issues
-
ai-observability bug team/ai-observability
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
dair-ai/Prompt-Engineering-Guide#810 · 1 comment ·
-
[addtool] DeepZero Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
gwen001/offsectools_www#2055 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
UKGovernmentBEIS/inspect_evals#2503 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
google-gemma/gemma-skills#13 ·