Repository navigation
Description
Bug Description
Subagents (Sisyphus-Junior) fail with ProviderModelNotFoundError when executing tasks that require tool calls (write, read, websearch). Text-only ping tests succeed on some categories, but any real work task fails immediately.
Environment
- OpenCode version: 1.16.0
- Platform: macOS (darwin)
- Shell: zsh
- Config file:
~/.config/opencode/oh-my-openagent.json
Error Message
ProviderModelNotFoundError:
at <anonymous> (/$bunfs/root/chunk-zdvbgwzc.js:668:62221)
at SessionPrompt.getModel (/$bunfs/root/chunk-m71nm5wk.js:1067:1879)
at SessionPrompt.getModel (definition) (/$bunfs/root/chunk-m71nm5wk.js:1066:1056)
at SessionPrompt.run (/$bunfs/root/chunk-m71nm5wk.js:1068:1367)
at SessionPrompt.run (definition) (/$bunfs/root/chunk-m71nm5wk.js:1067:929)
at SessionRunState.ensureRunning (/$bunfs/root/chunk-m71nm5wk.js:1068:1338)
at SessionRunState.ensureRunning (definition) (/$bunfs/root/chunk-m71nm5wk.js:933:5264)
at SessionPrompt.loop (/$bunfs/root/chunk-m71nm5wk.js:1067:653)
at SessionPrompt.loop (definition) (/$bunfs/root/chunk-m71nm5wk.js:1068:1274)
at SessionPrompt.prompt (/$bunfs/root/chunk-ech9cm9d.js:3:14109)
at SessionPrompt.prompt (definition) (/$bunfs/root/chunk-m71nm5wk.js:1067:272)
Category Model Configuration
=== CATEGORIES ===
visual-engineering: model=opencode/minimax-m2.5, fallbacks=[deepseek/deepseek-v4-flash-free, opencode/nemotron-3-super-free, opencode/mimo-v2.5-free, opencode/big-pickle]
ultrabrain: model=opencode/glm-5.1, fallbacks=[opencode-go/qwen3.7-plus, deepseek/deepseek-v4-flash-free, opencode/nemotron-3-super-free, opencode/big-pickle]
deep: model=opencode/minimax-m2.5, fallbacks=[opencode-go/qwen3.7-plus, deepseek/deepseek-v4-flash-free, opencode/nemotron-3-super-free, opencode/mimo-v2.5-free, opencode/big-pickle]
artistry: model=opencode/glm-5.1, fallbacks=[opencode-go/qwen3.7-plus, deepseek/deepseek-v4-flash-free, opencode/nemotron-3-super-free, opencode/big-pickle]
writing: model=opencode-go/qwen3.7-plus, fallbacks=[deepseek/deepseek-v4-flash-free, opencode/nemotron-3-super-free, opencode/mimo-v2.5-free, opencode/big-pickle]
unspecified-high: model=opencode/minimax-m2.5, fallbacks=[deepseek/deepseek-v4-flash-free, opencode/nemotron-3-super-free, opencode/mimo-v2.5-free, opencode/big-pickle]
quick: (not configured — uses default)
=== AGENTS ===
sisyphus: model=opencode/minimax-m2.5
oracle: model=opencode/glm-5.1
prometheus: model=opencode-go/qwen3.7-plus
metis: model=opencode/glm-5.1
momus: model=opencode/glm-5.1
explore: model=deepseek/deepseek-v4-flash-free
librarian: model=opencode-go/qwen3.7-plus
sisyphus-junior: model=opencode-go/qwen3.7-plus
Test Results
Text-only ping tests (no tool calls)
| Category | Configured Model | Ping Result | Actual Model Used |
|---|---|---|---|
| writing | opencode-go/qwen3.7-plus | ✅ OK | opencode-go/qwen3.7-plus |
| deep | opencode/minimax-m2.5 | ✅ OK | opencode-go/qwen3.7-plus (fell back) |
| visual-engineering | opencode/minimax-m2.5 | ✅ OK | opencode/mimo-v2.5-free (fell back) |
| ultrabrain | opencode/glm-5.1 | ✅ OK | opencode-go/qwen3.7-plus (fell back) |
| artistry | opencode/glm-5.1 | ✅ OK | opencode-go/qwen3.7-plus (fell back) |
| unspecified-high | opencode/minimax-m2.5 | ✅ OK | opencode/mimo-v2.5-free (fell back) |
| quick | (default) | ❌ ProviderModelNotFoundError | N/A |
Tool-using tasks (write/read/websearch)
| Category | Task | Result |
|---|---|---|
| writing | Write Chapter 1 (research + write file) | ❌ ProviderModelNotFoundError |
| deep | Write 100-word summary to file | ❌ ProviderModelNotFoundError |
| deep | Write test file | ❌ ProviderModelNotFoundError |
| unspecified-high | Write Chapter 1 (research + write file) | ❌ ProviderModelNotFoundError |
| quick | Write "test" to file | ❌ ProviderModelNotFoundError |
Key Observations
-
Ping tests pass but actual tasks fail — subagents can initialize and respond to text-only prompts, but crash when they need to use tools.
-
Model fallback routing is broken — categories configured with
opencode/minimax-m2.5oropencode/glm-5.1are falling back toopencode-go/qwen3.7-plusoropencode/mimo-v2.5-freeinstead of using the configured primary model. -
The error occurs at
SessionPrompt.getModel— suggesting the model resolution fails when the subagent session tries to actually execute, not during initialization. -
Main session works fine — the parent session (running on
opencode-go/qwen3.7-plus) can use all tools without error. Only subagent spawning is affected.
Steps to Reproduce
- Configure categories in
~/.config/opencode/oh-my-openagent.jsonwith model mappings - Call
task(category="writing", prompt="Write a file", subagent_type="Sisyphus-Junior") - Observe
ProviderModelNotFoundError
Expected Behavior
Subagents should be able to execute tool calls (write, read, websearch, etc.) using their configured model or a working fallback.
Actual Behavior
Subagents crash with ProviderModelNotFoundError when attempting any task that requires tool execution.
Workaround
Parent agent (Sisyphus) performs all work directly without delegation. This defeats the purpose of the subagent system.
Activity
github-actions commentedon Jun 6, 2026
This issue might be a duplicate of existing issues. Please check:
duncancmcleod97 commentedon Jun 6, 2026
Same issue here. it happens on both subagents and main agents. tried with Qwen3.6 27b and deepseek v4 flash
abdelrahman-aboelnour commentedon Jun 14, 2026
same issue happening with minimax m3 for me, the session silently stops when writing to a file.
chat continued after I instructed it to tell me what it was writing and saved it myself and told it to continue.
github-actions commentedon Aug 14, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.