Skip to content

Manage models provider switch stalls on large catalogs #51480

Open

Description

@syyzit

Description

In Manage models, the switch on a provider row updates every model in that provider one at a time. With a large catalog, OpenRouter has a few hundred models, the switch sits there for about a second before it moves.

The visibility result is right. The write is just one store update per model, and each one refreshes the open list.

Plugins

None.

OpenCode version

Desktop 2.0.18

Steps to reproduce

  1. Connect OpenRouter.
  2. Open Manage models.
  3. Toggle the OpenRouter provider switch.

Screenshot and/or share link

None.

Operating System

macOS

Terminal

OpenCode Desktop

Activity

  1. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    Thanks for the clear report. I couldn't reproduce this here because it needs the Desktop app, which this environment can't run. A maintainer with the Desktop app and a large provider catalog will need to check it.

    From reading the code, the provider switch in Manage models calls the visibility update once for each model in the provider, and nothing groups those updates. That fits what you're seeing: each update refreshes the open list, so with a few hundred OpenRouter models it adds up to a noticeable pause before the switch moves. I haven't been able to confirm this by running it.

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