Skip to content

ProviderModelNotFoundError: subagents fail on tool-using tasks across all categories #31141

Closed as not planned

Description

@carbon-evolution

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

  1. Ping tests pass but actual tasks fail — subagents can initialize and respond to text-only prompts, but crash when they need to use tools.

  2. Model fallback routing is broken — categories configured with opencode/minimax-m2.5 or opencode/glm-5.1 are falling back to opencode-go/qwen3.7-plus or opencode/mimo-v2.5-free instead of using the configured primary model.

  3. The error occurs at SessionPrompt.getModel — suggesting the model resolution fails when the subagent session tries to actually execute, not during initialization.

  4. 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

  1. Configure categories in ~/.config/opencode/oh-my-openagent.json with model mappings
  2. Call task(category="writing", prompt="Write a file", subagent_type="Sisyphus-Junior")
  3. 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

  1. github-actions commented on Jun 6, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. duncancmcleod97 commented on Jun 6, 2026

    @duncancmcleod97

    Same issue here. it happens on both subagents and main agents. tried with Qwen3.6 27b and deepseek v4 flash

  3. abdelrahman-aboelnour commented on Jun 14, 2026

    @abdelrahman-aboelnour

    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.

  4. github-actions commented on Aug 14, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions