[BUG] Agents window model picker
The Agents window model picker is still bugged. E.g., showing models disabled by the user.
This applies to session local and copilot.
Model picker for copilot does not allow pinning or shows the cogwheel to display other models.
Hey @hu3bi, thanks for flagging this. Reproduced on my end, and it's actually two separate things:
1. Disabled models still showing in the Agents window picker
This one is on us. OpenCode models for the Agents window are registered under separate vendor IDs (opencodego-agent, opencodezen-agent) to keep the regular Chat view clean. Problem: the enable/disable toggle in the Manage Language Models panel is per-vendor, and the agent vendors are hidden from that panel by default. So when you disable a model under opencodego, the matching opencodego-agent entry stays on and keeps showing up in the Agents window.
Fix in progress: syncing the enabled/disabled state across base and agent vendors, so disabling once covers both.
2. No pin / cogwheel in the Copilot CLI picker
This one's a VS Code limitation, not something we can fix from the extension side. The pin and cogwheel UI in the Copilot CLI model picker belongs to the Copilot extension itself, and there's no API for third-party language model providers to hook into it. Models registered with targetChatSessionType: "copilotcli" show up as regular dropdown options, but you can't pin them. For now the model has to be picked manually each session.
To make sure I'm fixing #1 against the same setup you're seeing, could you drop:
- VS Code version (from Code → About)
- Whether
extensions.supportAgentsWindowhasltmoerdani.opencode-copilot-chatenabled - A quick screenshot of your Manage Language Models panel, with the disabled models visible
That tells me which models you expected hidden vs. which actually appeared.
To make sure I'm fixing https://github.com/ltmoerdani/opencode-copilot-chat/pull/1 against the same setup you're seeing, could you drop:
VS Code version (from Code → About): Version: 1.126.0 Commit: 7e7950df89d055b5a378379db9ee14290772148a Date: 2026-06-23T01:46:13Z Electron: 42.2.0 ElectronBuildId: 14159160 Chromium: 148.0.7778.97 Node.js: 24.15.0 V8: 14.8.178.14-electron.0 OS: Linux x64 7.0.13-arch1-1
Whether extensions.supportAgentsWindow has ltmoerdani.opencode-copilot-chat enabled
"extensions.supportAgentsWindow": {
"ltmoerdani.opencode-copilot-chat": true
},
A quick screenshot of your Manage Language Models panel, with the disabled models visible
Just a reminder, this is only relevant to the new vscode agents window! It makes no sense to send a screenshot to show which models I expect to be seen or not seen, since it happens to all models (I tried).
The only workaround, which you also mentioned is to set opencodego.showAgentModelsInManagePanel to true and then disable agent models.
That tells me which models you expected hidden vs. which actually appeared.
I implemented a fix that queries the base vendor's enabled models via selectChatModels and filters agent variants to match. However, after testing, this approach doesn't work: selectChatModels returns ALL registered models regardless of the enable/disable state — the hidden state is internal to VS Code's LanguageModelsService and not exposed through the extension API.
The real problem is architectural: VS Code's enable/disable toggle is per-vendor, and agent vendors (opencodego-agent, opencodezen-agent) are separate vendors from the base (opencodego). The hidden model IDs stored in VS Code's chatModelVisibility key are vendor-scoped, so disabling opencodego/deepseek-v4-flash doesn't affect opencodego-agent/deepseek-v4-flash.
I've reverted the non-functional fix. This needs to be resolved upstream in VS Code — either by exposing isModelHidden/setModelHidden through the public API, or by making the toggle work across vendor pairs. The showAgentModelsInManagePanel: true workaround (enabling agent models in the Manage panel so users can toggle them directly) remains the only user-facing option for now.
@hu3bi, quick update on this one.
So we dug into both issues. Turns out the enable/disable toggle in VS Code works per vendor, not per model. When we disable a model under opencodego, the agent version under opencodego-agent stays on because VS Code sees them as separate vendors. We tried syncing them from the extension side, but VS Code does not expose the visibility state through its public API, so there is no way for us to check or change which models are hidden.
What works for now: set opencodego.showAgentModelsInManagePanel to true in your settings. That shows the agent models in the Manage panel, so you can disable them there directly. Not perfect, but it is the only workaround until VS Code adds better API support for this.
The pin/cogwheel thing on the Copilot CLI picker is similar, that UI is handled by the Copilot extension itself and there is no hook for third-party providers to plug into.
Keeping this open for now. If the Manage panel workaround covers your use case, let me know and we can close it.
@ltmoerdani I rarely use the vscode agents window right now. This might change in the future. So for me this isn't an issue. I just saw a bug or potential qol change to make https://github.com/ltmoerdani/opencode-copilot-chat better. As it looks right now, this isn't possible.
I agree with @Wallacy
I've reverted the non-functional fix. This needs to be resolved upstream in VS Code — either by exposing
isModelHidden/setModelHiddenthrough the public API, or by making the toggle work across vendor pairs. TheshowAgentModelsInManagePanel: trueworkaround (enabling agent models in the Manage panel so users can toggle them directly) remains the only user-facing option for now.
If anyone else cares enough and needs that feature right now, they can file an upstream issue at https://github.com/microsoft/vscode/issues
Other than that I would just wait. I think vscode will eventually fix that even without our reporting.
Sooner or later they'll provide that:
The pin/cogwheel thing on the Copilot CLI picker is similar, that UI is handled by the Copilot extension itself and there is no hook for third-party providers to plug into.