opencode-copilot-chat icon indicating copy to clipboard operation
opencode-copilot-chat copied to clipboard

[FEATURE] agent models should use non agent model configuration if "opencodego.showAgentModelsInManagePanel": false,

Open hu3bi opened this issue 5 months ago • 1 comments

@ltmoerdani

What is the behavior if the following setting is set?

    "opencodego.showAgentModelsInManagePanel": false,

Will Agent Models than behave the same as non Agent models?

With this setting enabled, I do not see the agent models (which is expected). See screenshot below.

Image

But what will happen if I now change configuration options? In my opinion, changing configuration options should in the case of "opencodego.showAgentModelsInManagePanel": false, affect both agent and non agent models.

hu3bi avatar Jun 25 '26 19:06 hu3bi

@hu3bi short answer: no, the base vendor config does not carry over to agent models when showAgentModelsInManagePanel is false. VS Code treats them as separate vendors, so disabling a model under opencodego does not affect opencodego-agent.

We tried fixing this in PR #60, but VS Code does not expose the visibility state through its public API, so there is no way to sync them from the extension side. This overlaps with #58, and both need an upstream VS Code fix.

For now, the workaround is the same: set showAgentModelsInManagePanel to true, then disable agent models directly in the Manage panel. Not ideal, but it covers the use case until VS Code adds better API support.

ltmoerdani avatar Jun 30 '26 03:06 ltmoerdani