github / github/copilot-cli

User-level configured model is not used in new sessions

Open
#4,434 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage
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
  1. /config model (set a model e.g. Sonnet 5)
  2. /model (set a session model e.g. GPT-5.6 Luna)
  3. /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

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.