Add GitHub Copilot OAuth provider#777
Open
TheSethRose wants to merge 3 commits intonextlevelbuilder:devfrom
Open
Add GitHub Copilot OAuth provider#777TheSethRose wants to merge 3 commits intonextlevelbuilder:devfrom
TheSethRose wants to merge 3 commits intonextlevelbuilder:devfrom
Conversation
- add backend device-flow auth, token refresh, provider registration, and model catalog support - add web UI onboarding and status handling for GitHub Copilot OAuth providers - fix existing timeout typing issues so ui/web builds cleanly during validation
- refresh provider queries when Copilot auth completes or disconnects - list Copilot models from live token-backed /models endpoints instead of placeholders
- buffer Copilot final message items until completion - select one canonical completed assistant message and add regression tests
|
good job |
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.
Summary
Add a first-class GitHub Copilot OAuth provider to GoClaw, including device-flow authentication, token refresh/runtime support, web UI setup flows, live Copilot model discovery, and a follow-up fix for duplicated final assistant messages in Copilot streaming.
What changed
github_copilot_oauthprovider type/modelsendpoints instead of placeholdersFiles of note
internal/oauth/github_copilot.gointernal/oauth/github_copilot_token.gointernal/http/oauth_github_copilot.gointernal/http/provider_models.gointernal/http/provider_models_fetch.gointernal/providers/github_copilot.goui/web/src/pages/providers/provider-github-copilot-oauth-section.tsxui/web/src/pages/providers/provider-form-dialog.tsxui/web/src/pages/setup/step-provider.tsxValidation
go test ./internal/oauth ./internal/httpgo test ./internal/providers -run 'GitHubCopilot|CodexProviderChat(FallsBackToOutputItemMessageContent|FallsBackToCompletedResponseOutput|IgnoresCommentaryAndKeepsFinalAnswer|ConcatenatesMultipleOutputTextDoneParts|FallsBackToContentPartDone)'go build ./...cd ui/web && pnpm build