Skip to content

TUI fetches the whole provider catalog on every bootstrap #53590

Closed as not planned

Description

@moritzWa

Description

Every TUI bootstrap fetches GET /provider, at startup and again whenever it reloads for another directory or workspace. On my machine that response is 6.7 MB (227 providers, 8,452 models) and takes 185–420 ms even with a warm server. It goes into sync.data.provider_next, which only the connect dialog and the provider list in the model picker read.

I switch between sessions in different directories a lot, and this request was most of the time each directory reload spent before it could apply. Parsing it also blocked input for 50–90 ms each time.

Plugins

none

OpenCode version

dev (4ac0d9c)

Steps to reproduce

  1. Start the TUI and watch its requests, or switch to a session in another directory.
  2. GET /provider is fetched and parsed every time, even if no dialog is opened.

Operating System

macOS 26

Activity

  1. github-actions commented on Oct 6, 2026

    @github-actions
    Contributor

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

    • #52821: Reports the provider catalog loading slowly at startup and asks to defer it until needed.
    • #41078: Reports the TUI blocking its first content on the full provider payload and proposes loading it asynchronously.
    • #47677: Reports repeated full /provider catalog fetches during app bootstraps, including per-project bootstraps.
  2. moritzWa commented on Oct 6, 2026

    @moritzWa
    Author

    Duplicate of #47677.

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