Skip to content

Copilot keeps reverting back to Auto in VS Code Agents #314211

Open

Description

@kythant
  • Copilot Chat Extension Version: 0.45.1
  • VS Code Version: 1.119.0-insider
  • OS Version: Windows 11 Enterprise 10.0.26200
  • Feature (e.g. agent/edit/ask mode): Agent Mode
  • Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): N/A (reverts to Auto)
  • Logs: lmk how

Steps to Reproduce:

  1. I am in normal usage. I have to keep selecting the model I specifically want.

Activity

  1. added
    chat-ext-issue
    on May 4, 2026
  2. hex1c-oss commented on May 4, 2026

    @hex1c-oss

    Kyaw Thant (@kythant) I can try to reproduce this issue on my end. I'm using Windows 11 as well. If I can confirm the behavior, I'd like to look into the model selection persistence logic. May I take this?

  3. hex1c-oss commented on May 4, 2026

    @hex1c-oss

    Kyaw Thant (@kythant)

    After you select a specific model in Agent Mode (e.g. Claude 3.7 Sonnet or GPT-4.1), does the selection persist in normal Chat mode (non-Agent)?
    When does the model reset to "Auto"?
    When creating a new chat / new Agent session?
    After restarting VS Code?
    When switching between tabs or refocusing the window?

    Are you using any chat.agent.defaultModel or github.copilot.chat.model settings in your settings.json (User or Workspace)?
    Can you open the Command Palette → "Chat: Open Model Picker" and send a screenshot of the available models?
    Does the issue still occur if you run VS Code with all other extensions disabled (code --disable-extensions)?
    (Optional but very helpful) Could you share the relevant logs?
    Go to Command Palette → "Developer: Open Logs Folder", then check the GitHub Copilot folder or window.log after trying to change the model.

  4. kythant commented on May 6, 2026

    @kythant
    Author

    After you select a specific model in Agent Mode (e.g. Claude 3.7 Sonnet or GPT-4.1), does the selection persist in normal Chat mode (non-Agent)?
    Yes

    When does the model reset to "Auto"?
    Not exactly sure when but always after Copilot has responded or in progress of responding

    When creating a new chat / new Agent session?
    No

    After restarting VS Code?
    Yes issue persists after restarting

    When switching between tabs or refocusing the window?
    Not sure

  5. kythant commented on May 6, 2026

    @kythant
    Author

    Are you using any chat.agent.defaultModel or github.copilot.chat.model settings in your settings.json (User or Workspace)?
    I"ve try defaulting to my preferring model but it didn't work

    Does the issue still occur if you run VS Code with all other extensions disabled (code --disable-extensions)?
    I have not tried

    (Optional but very helpful) Could you share the relevant logs?
    Go to Command Palette → "Developer: Open Logs Folder", then check the GitHub Copilot folder or window.log after trying to change the model.
    I can but I don't want to do it here. Got a Microsoft Teams alias?

  6. hex1c-oss commented on May 7, 2026

    @hex1c-oss

    Kyaw Thant (@kythant) Thanks for the details!

    I don't have a Teams alias, but you can send the logs to me via Telegram or email (Gmail) — whatever works best for you. I'll DM you my contact info.

    About the chat.agent.defaultModel / github.copilot.chat.model settings:
    Got it, so even explicitly setting a default model doesn't prevent the reset. That's helpful — it means the override isn't coming from the configuration layer, but likely from the agent session lifecycle itself.

    Quick ask while we wait for logs:
    Could you try running with code --disable-extensions? That'll rule out extension conflicts. Should take 2 minutes — just:

    bash
    code-insiders --disable-extensions
    Then open Copilot Chat → Agent Mode → pick a model → ask something → see if it resets.

    For the logs (once you're ready to send):

    Ctrl+Shift+P → "Developer: Open Logs Folder"

    Go to the GitHub Copilot folder

    After reproducing the bug, grab the relevant .log files

    Zip them up and send over

    I'll start digging into the agent session code on our side — the fact that it only happens in Agent Mode narrows it down a lot.

  7. removed
    chat-ext-issue
    on May 9, 2026
  8. added
    bug
    on Jun 8, 2026
  9. dmitrivMS commented on Jun 8, 2026

    @dmitrivMS
    Collaborator

    My fix does not apply to Agents window.

  10. beelzebubba666 commented on Sep 14, 2026

    @beelzebubba666

    I can get it to work if i remove copilot from the chatlanguagemodels.json

    system info:
    Version: 1.136.2
    Commit: 88e44fa
    Date: 2026-09-04T21:40:42Z (1 wk ago)
    Electron: 42.10.0
    Chromium: 148.0.7778.280
    Node.js: 24.18.1
    V8: 14.8.178.38-electron.0
    @github/copilot: 1.0.81-0
    @github/copilot-sdk: 1.0.11
    OS: Linux x64 6.8.0-138-generic snap

    Model: custom openai endpoint for Qwen3.8 27B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugmodel-picker

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions