Skip to content

v2: remote config failures discard settings and change the selected model #53666

Description

@Ayushlm10

Description

A failed authenticated remote-config fetch removes previously loaded provider settings and restrictions. If the selected model disappears, the TUI chooses another available model and saves that replacement when Enter is pressed.

Expected: retain valid settings or block model use, and preserve the selected model until the user changes it.

Plugins

Built-in only.

OpenCode version

v2, reproduced at 80c4a6b7 (2.0.24).

Steps to reproduce

  1. Use a local well-known endpoint whose remote config supplies a provider and an enabled_providers allowlist.
  2. Log in and open a session using that provider's model.
  3. Make the remote config endpoint return 503 and trigger a config refresh.
  4. Inspect the provider list and submit a synthetic prompt after the selected model becomes unavailable.

The remote settings disappear, and submission can commit a different model.

Screenshot and/or share link

Before / After. Synthetic terminal fixture captures.

Operating System

macOS

Terminal

Native TUI test fixture.

Activity

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