{"slug": "vscode-silently-switches-to-microsoft-models-ignoring-byo-agent-configuration", "title": "VSCode silently switches to Microsoft models, ignoring BYO agent configuration", "summary": "A GitHub issue filed against Visual Studio Code version 1.142.0-insider (commit d2a9268) reports that the editor resets a user's agent selection back to Copilot every time a new chat is started, overriding bring-your-own-model configurations. The reporter states that setting the agent to Local and choosing a model, then clicking new chat, causes VSCode to automatically switch the agent configuration back to Copilot, resulting in unintentional use of the free-tier `mai-code-flash` model, which the reporter says collects data. The issue, tracked as #340651, was filed with the @github/copilot extension at version 1.0.94-3 and @github/copilot-sdk 1.0.18-preview.3 on Windows_NT x64 10.0.19044, and reproduces with all extensions disabled.", "body_md": "## Repository navigation\n\n# Agent switches back to Copilot from Local when a new chat is created #340651\n\nCopy link\n\nCopy link\n\nOpen\n\n## Agent suggestions\n\n[Public preview](https://github.com/orgs/community/discussions/202617)\n\nMore actions\n\n## Description\n\nDoes this issue occur when all extensions are disabled?: Yes\n\n## What is the issue\n\nI bring my own models when developing using VSCode. This includes locally hosted models and cost effective API models depending on the context.\n\nVSCode overrides my agent selection every time I start a new chat. This makes me unintentionally use `mai-code-flash` free tier, which collects data (unacceptable in commercial and private contexts).\n\n## System\n\nVersion: 1.142.0-insider (user setup)\n\nCommit: `d2a9268`\n\nDate: 2026-10-08T09:31:50-07:00\n\nElectron: 43.7.7\n\nElectronBuildId: 15553055\n\nChromium: 150.0.7871.250\n\nNode.js: 24.21.0\n\nV8: 15.0.245.31-electron.0\n\n@github/copilot: 1.0.94-3\n\n@github/copilot-sdk: 1.0.18-preview.3\n\nOS: Windows_NT x64 10.0.19044\n\nSteps to Reproduce:\n\n1. Set your agent to `Local` and pick your model\n\n1. Click on new chat\n\n1. VSCode automatically changes agent configuration back to Copilot\n\nReactions are currently unavailable\n\n## Activity\n\n## Metadata\n\n## Metadata\n\n### Assignees\n\n### Labels\n\nNo labels", "url": "https://wpnews.pro/news/vscode-silently-switches-to-microsoft-models-ignoring-byo-agent-configuration", "canonical_source": "https://github.com/microsoft/vscode/issues/340651", "published_at": "2026-10-09 04:57:42+00:00", "updated_at": "2026-10-09 05:17:10.027268+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-products"], "entities": ["Visual Studio Code", "Microsoft", "GitHub Copilot", "mai-code-flash", "@github/copilot", "@github/copilot-sdk"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/vscode-silently-switches-to-microsoft-models-ignoring-byo-agent-configuration", "markdown": "https://wpnews.pro/news/vscode-silently-switches-to-microsoft-models-ignoring-byo-agent-configuration.md", "text": "https://wpnews.pro/news/vscode-silently-switches-to-microsoft-models-ignoring-byo-agent-configuration.txt", "jsonld": "https://wpnews.pro/news/vscode-silently-switches-to-microsoft-models-ignoring-byo-agent-configuration.jsonld"}}