Conversation
OpenCode Go and OpenCode (Zen) now start the Console device sign-in as soon as they are picked, open the browser automatically, and keep the API key path behind an Advanced toggle. The dialog holds one stable state until the authorization URL is ready, hidden form fields no longer render as empty inputs, abandoned attempts are cancelled, and models unlocked by the new connection are shown in the picker. Adds a /connect command matching the TUI and the Console setup steps.
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.
Desktop onboarding for OpenCode Go / OpenCode Console. Picking either provider now goes straight to the Console sign-in in the browser; the API key path is tucked behind Advanced.
Before → after
opencode-gointegration only has a key method → API key form, no Console optionopencodeConsole device sign-in (consoleIntegration("opencode-go") → "opencode")Connect opencode-go/Connect Anomaly / OpenCode→ method list → empty text input + Continue (hiddenserverfield rendered) → code viewConnect OpenCode→Opening your browser…→ waiting view. Two states, no method list, no empty fieldplatform.openExternal(url)as soon as the attempt starts (same asopencode auth login), plus an Open browser buttonAdvanced→ "Connect with an API key or service account instead"integration.oauth.cancelon cleanup / method switchshow. Console sign-in returns Go models inside theopencodeprovider, so Go models are included/connectprovider.connect, slashconnectController (
packages/app/src/providers/connect/controller.ts)The dialog passes
autoSelectfor Console providers so theoauthmethod starts without a menu; other providers keep the method list. Client ID becomesopencode-desktopfor the Console URL on desktop, so the Console page reads "Authorize OpenCode Desktop".Screenshots: I could not capture the review-pane tab (not visible), so none attached yet. Flow verified against the live server in the web app: two dialog states, browser tab opened to
console/login?next=/console/device?user_code=…, Advanced → key → back returns to sign-in.