User-level configured model is not used in new sessions
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 11.2k
- Forks
- 1.9k
- Avg merge
- 14h 16m
- Merged PRs (30d)
- 6
Description
Describe the bug
When setting a user-default model via "/config model" it is not used when creating a new session via "/clear" or via the sessions interface. Only when exiting and restarting the CLI client is the user-default model being used.
Affected version
No response
Steps to reproduce the behavior
- /config model (set a model e.g. Sonnet 5)
- /model (set a session model e.g. GPT-5.6 Luna)
- /clear or /new (used model for the session is still GPT-5.6 Luna NOT Sonnet 5)
Expected behavior
When creating a new session the user-default model should be used
Additional context
- GitHub Copilot CLI 1.0.79
- macOS
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.
Research direction
Reproduce the issue in the CLI with /config model, /model, and then /clear or /new, and compare the selected model with a restarted client. Trace the session-creation paths used by /clear, /new, and the sessions interface, then verify that they read the user-default model rather than the previous session model. Done means a new session uses the configured user-default model without restarting the CLI.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100