Skip to content

model: inherit in agent frontmatter causes ProviderModelNotFoundError; subagents hidden from /agents dialog #17890

@flacks

Description

@flacks

Description

Two related regressions affecting externally-installed subagents (e.g. get-shit-done):

  1. Agents with model: inherit in their frontmatter have inherit passed to Provider.parseModel(), producing { providerID: "inherit", modelID: "" }. Since the field is non-null, the ?? fallback in task.ts is skipped and the spawned session fails with ProviderModelNotFoundError.
  2. The /agents dialog only shows agents where mode !== "subagent", so any externally-installed subagent is invisible — even though the agents load correctly and appear in permission logs.

Plugins

N/A

OpenCode version

1.2.27-cb69501

Steps to reproduce

  1. Install get-shit-done for OpenCode.
  2. Try to use any get-shit-done command, see spawned subagents failed with ProviderModelNotFoundError.
  3. Open /agents and see none of the installed agents.

Screenshot and/or share link

Image Image

Operating System

NixOS

Terminal

COSMIC Terminal

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)nix

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions