GeezerVison is showing github.com — fix(app): hide OpenCode Go from Settings popular providers by opencode-agent[bot] · Pull Request #65740 · anomalyco/opencode
Conversation
Issue for this PR
Closes #
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
Follow-up to #65466. That PR hid "OpenCode Go" from the connect dialog, TUI /connect and opencode 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.
popularProviders stays 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 typecheck in packages/app, bun run lint:changed
- ran the web app against a fresh local server with no providers and opened Settings → Providers before and after; screenshots are in the Slack thread
Screenshots / 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
- I have tested my changes locally
- I have not included unrelated changes in this PR
Requested by: @Hona (Hona via Slack)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|