Skip to content

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

Closed as not planned

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

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 17, 2026
  2. mrevanzak commented on Mar 17, 2026

    @mrevanzak

    do you find any workaround before this get merge? its break my gsd workflow

  3. justinwyer commented on Mar 17, 2026

    @justinwyer

    downgrade to GSD v1.23.0, GSD v1.24.0 introduces this issue, or go and put a valid name in your GSD agent configurations, valid model names are: https://models.dev/model-schema.json#/$defs/Model

  4. ariane-emory commented on Mar 17, 2026

    @ariane-emory
    Contributor

    Subagents are not meant to show up in the modal dialogue that the /agents command produces as they cannot be selected for use.

  5. flacks commented on Mar 17, 2026

    @flacks
    Author

    Subagents are not meant to show up in the modal dialogue that the /agents command produces as they cannot be selected for use.

    Agreed, updated.

  6. ariane-emory commented on Mar 17, 2026

    @ariane-emory
    Contributor

    Fantastic! My previous thumbs down react has now been replaced with a thumbs up since this now appears to be a straightforward bug fix.

  7. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  8. github-actions commented on Jul 6, 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

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