subagent provider/id parser is dead ? provider/model not found on subagent #6483

Closed
opened 2026-02-16 18:04:21 -05:00 by yindo · 6 comments
Owner

Originally created by @aptdnfapt on GitHub (Jan 16, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

i had this sub agent for like 4 month now and im sure i didnt made any changes .

Image

now this agent doesnt works

Image

getting this error

model id in models.json in opencode cache seems to be same as what i wrote

Image

ig recent commits messed up the id parser ? and now : and / somehow messing up the whole thing ? idk

Plugins

No response

OpenCode version

• OpenCode 1.1.23

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

ubuntu

Terminal

ssh
No response

Originally created by @aptdnfapt on GitHub (Jan 16, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description i had this sub agent for like 4 month now and im sure i didnt made any changes . <img width="612" height="447" alt="Image" src="https://github.com/user-attachments/assets/8d79cf83-06e0-4141-a389-023cdba29982" /> now this agent doesnt works <img width="506" height="379" alt="Image" src="https://github.com/user-attachments/assets/9d1d9dea-8712-4147-910e-6a1d9e49f379" /> getting this error model id in models.json in opencode cache seems to be same as what i wrote <img width="419" height="148" alt="Image" src="https://github.com/user-attachments/assets/be2ba448-b906-424b-b2c1-56a627d18ed5" /> ig recent commits messed up the id parser ? and now : and / somehow messing up the whole thing ? idk ### Plugins _No response_ ### OpenCode version • OpenCode 1.1.23 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System ubuntu ### Terminal ssh _No response_
yindo added the bug label 2026-02-16 18:04:21 -05:00
yindo closed this issue 2026-02-16 18:04:21 -05:00
Author
Owner

@rekram1-node commented on GitHub (Jan 21, 2026):

do opencode models synthetic and show me what u see?

The model id cited should match that

@rekram1-node commented on GitHub (Jan 21, 2026): do `opencode models synthetic` and show me what u see? The model id cited should match that
Author
Owner

@aptdnfapt commented on GitHub (Jan 22, 2026):

❯ opencode models synthetic
synthetic/hf:deepseek-ai/DeepSeek-R1
synthetic/hf:deepseek-ai/DeepSeek-R1-0528
synthetic/hf:deepseek-ai/DeepSeek-V3
synthetic/hf:deepseek-ai/DeepSeek-V3-0324
synthetic/hf:deepseek-ai/DeepSeek-V3.1
synthetic/hf:deepseek-ai/DeepSeek-V3.1-Terminus
synthetic/hf:deepseek-ai/DeepSeek-V3.2
synthetic/hf:meta-llama/Llama-3.1-405B-Instruct
synthetic/hf:meta-llama/Llama-3.1-70B-Instruct
synthetic/hf:meta-llama/Llama-3.1-8B-Instruct
synthetic/hf:meta-llama/Llama-3.3-70B-Instruct
synthetic/hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8
synthetic/hf:meta-llama/Llama-4-Scout-17B-16E-Instruct
synthetic/hf:MiniMaxAI/MiniMax-M2
synthetic/hf:MiniMaxAI/MiniMax-M2.1
synthetic/hf:moonshotai/Kimi-K2-Instruct-0905
synthetic/hf:moonshotai/Kimi-K2-Thinking
synthetic/hf:openai/gpt-oss-120b
synthetic/hf:Qwen/Qwen2.5-Coder-32B-Instruct
synthetic/hf:Qwen/Qwen3-235B-A22B-Instruct-2507
synthetic/hf:Qwen/Qwen3-235B-A22B-Thinking-2507
synthetic/hf:Qwen/Qwen3-Coder-480B-A35B-Instruct
synthetic/hf:zai-org/GLM-4.5
synthetic/hf:zai-org/GLM-4.6
synthetic/hf:zai-org/GLM-4.7

@aptdnfapt commented on GitHub (Jan 22, 2026): ❯ opencode models synthetic synthetic/hf:deepseek-ai/DeepSeek-R1 synthetic/hf:deepseek-ai/DeepSeek-R1-0528 synthetic/hf:deepseek-ai/DeepSeek-V3 synthetic/hf:deepseek-ai/DeepSeek-V3-0324 synthetic/hf:deepseek-ai/DeepSeek-V3.1 synthetic/hf:deepseek-ai/DeepSeek-V3.1-Terminus synthetic/hf:deepseek-ai/DeepSeek-V3.2 synthetic/hf:meta-llama/Llama-3.1-405B-Instruct synthetic/hf:meta-llama/Llama-3.1-70B-Instruct synthetic/hf:meta-llama/Llama-3.1-8B-Instruct synthetic/hf:meta-llama/Llama-3.3-70B-Instruct synthetic/hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8 synthetic/hf:meta-llama/Llama-4-Scout-17B-16E-Instruct synthetic/hf:MiniMaxAI/MiniMax-M2 synthetic/hf:MiniMaxAI/MiniMax-M2.1 synthetic/hf:moonshotai/Kimi-K2-Instruct-0905 synthetic/hf:moonshotai/Kimi-K2-Thinking synthetic/hf:openai/gpt-oss-120b synthetic/hf:Qwen/Qwen2.5-Coder-32B-Instruct synthetic/hf:Qwen/Qwen3-235B-A22B-Instruct-2507 synthetic/hf:Qwen/Qwen3-235B-A22B-Thinking-2507 synthetic/hf:Qwen/Qwen3-Coder-480B-A35B-Instruct synthetic/hf:zai-org/GLM-4.5 synthetic/hf:zai-org/GLM-4.6 synthetic/hf:zai-org/GLM-4.7
Author
Owner

@dbkblk commented on GitHub (Jan 26, 2026):

I noticed the same problem with synthetic. Using it with or without "synthetic/" prefix works, but opencode still display a warning showing "invalid model" at each agent change.

@dbkblk commented on GitHub (Jan 26, 2026): I noticed the same problem with synthetic. Using it with or without "synthetic/" prefix works, but opencode still display a warning showing "invalid model" at each agent change.
Author
Owner

@MandarinoMcZumo commented on GitHub (Jan 28, 2026):

It happens too whith the CLI opencode run --agent ... (Opencode 1.1.30).

I think the error is caused by a parsing error, the exception captured adds a \n at the end of the subagent model...

1076 |     const info = provider.models[modelID]
1077 |     if (!info) {
1078 |       const availableModels = Object.keys(provider.models)
1079 |       const matches = fuzzysort.go(modelID, availableModels, { limit: 3, threshold: -10000 })
1080 |       const suggestions = matches.map((m) => m.target)
1081 |       throw new ModelNotFoundError({ providerID, modelID, suggestions })
                   ^
ProviderModelNotFoundError: ProviderModelNotFoundError
 data: {
  providerID: "amazon-bedrock",
  modelID: "anthropic.claude-haiku-4-5-20251001-v1:0\n",
  suggestions: [ "anthropic.claude-haiku-4-5-20251001-v1:0" ],
},
@MandarinoMcZumo commented on GitHub (Jan 28, 2026): It happens too whith the CLI `opencode run --agent ...` (Opencode 1.1.30). I think the error is caused by a parsing error, the exception captured adds a `\n` at the end of the subagent model... ``` 1076 | const info = provider.models[modelID] 1077 | if (!info) { 1078 | const availableModels = Object.keys(provider.models) 1079 | const matches = fuzzysort.go(modelID, availableModels, { limit: 3, threshold: -10000 }) 1080 | const suggestions = matches.map((m) => m.target) 1081 | throw new ModelNotFoundError({ providerID, modelID, suggestions }) ^ ProviderModelNotFoundError: ProviderModelNotFoundError data: { providerID: "amazon-bedrock", modelID: "anthropic.claude-haiku-4-5-20251001-v1:0\n", suggestions: [ "anthropic.claude-haiku-4-5-20251001-v1:0" ], }, ```
Author
Owner

@aptdnfapt commented on GitHub (Jan 28, 2026):

@rekram1-node should i make a pr ?

@aptdnfapt commented on GitHub (Jan 28, 2026): @rekram1-node should i make a pr ?
Author
Owner

@rekram1-node commented on GitHub (Jan 29, 2026):

fixed in next release

@rekram1-node commented on GitHub (Jan 29, 2026): fixed in next release
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6483