You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Copilot keeps reverting back to Auto in VS Code Agents #314211
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?
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.
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?
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.
Activity
hex1c-oss commentedon May 4, 2026
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?
hex1c-oss commentedon May 4, 2026
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.
kythant commentedon May 6, 2026
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
kythant commentedon May 6, 2026
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?
hex1c-oss commentedon May 7, 2026
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.
dmitrivMS commentedon Jun 8, 2026
My fix does not apply to Agents window.
beelzebubba666 commentedon Sep 14, 2026
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