Skip to content

doctor command fails for models having 2 slashes #697

Open

Description

@xRahul

Short description

doctor command fails for models having 2 slashes like openrouter/openrouter/free

What happened?

doctor command fails for models having 2 slashes like openrouter/openrouter/free . details in #696

Diagnostics

Plugin version

No response

OpenCode version

No response

Platform

No response

Client

OpenCode Desktop

Log output (optional)

Activity

  1. magic-alfonso commented on Oct 15, 2026

    @magic-alfonso

    Thanks for the report and the fix. Confirmed: doctor split provider/model with split("/", 2), which cuts model ids that contain a slash themselves (such as OpenRouter's openrouter/free), so the host catalog check wrongly said the model wasn't offered. Splitting on the first slash only, as #696 does, is the right fix. We'll review and merge it shortly.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions