Repository navigation
feat(desktop): sign in to GitHub and manage model accounts in Connections - #4313
Merged
Merged
Conversation
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.
What
Settings › Connections could only show sign-in state and told you to run
gh auth loginyourself. The engine already had the whole flow (_rustcode/connections/github/{login,wait,cancel,logout}andaccount/{logout,refresh}), left over from the SwiftUI app; nothing called it.gh auth login --web. The page shows the one-time code large, with Copy code and open GitHub, Cancel, and a waiting spinner; when GitHub approves, the list updates and a toast names the account. A token that went invalid offers Sign in again. Each account has a sign-out button behind a confirm.openai · chat_gpt), with refresh-models and sign-out actions. Adding one stays/loginin a thread.Settings.tsxintoui/SettingsConnections.tsx, with parsing and labels instate/connections.ts. The mock's connections answers moved toacp/mockConnections.ts(acp/mock.tswas 3 lines under its size cap) and now play out a device-code sign-in.@containerrow stayed at 0 px height until the page was reopened.Changelog
Settings › Connections: sign in to GitHub and sign accounts out without a terminal; model accounts can refresh their models.
Testing
bun run checkinapps/desktop;check-comments.py,check-rust-size.py.gh(that would sign the user's real GitHub CLI in and out).