Repository navigation
fix(app): hide OpenCode Go from Settings popular providers - #65740
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Looks correct. It brings Settings → Providers in line with #65466: providers.popular() returned opencode-go first and the Popular list only filtered out connected providers, so a fresh user was offered the Go API key form. A saved Go key still shows under Connected providers, and removing the Go "Recommended" badge case is right since that row can no longer appear. Model ordering is unchanged.
I checked the code path, ran the packages/app type check (passes) and ran the tests in src/settings/providers (all 26 pass). I couldn't open the web Settings page here, so could you attach the before/after screenshots mentioned in the description to the PR?
Public API is unchanged.
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #
Type of change
What does this PR do?
Follow-up to #65466. That PR hid "OpenCode Go" from the connect dialog, TUI
/connectandopencode auth login, but Settings → Providers builds its own "Popular providers" list and still showed Go first. Its Connect button opened the Go API key form, so new users were still asked for a Go key.opencode-gois listed only when it already has a saved credentialpopularProvidersstays as is because it also orders model groups, where Go models should still come first for people with a Go key.How did you verify your code works?
bun run typecheckinpackages/app,bun run lint:changedScreenshots / recordings
Before: "OpenCode Go" is the first popular row, and Connect opens "OpenCode Go API key".
After: "OpenCode" is the first row with no note, and Connect offers "OpenCode account" or "API key (service account)".
Checklist
Requested by: @Hona (Hona via Slack)