Skip to content

feat: support adding GitHub Copilot AI provider via UI (#25888)#25902

Merged
f0ssel merged 1 commit into
release/2.34from
backport/25888-to-2.34
Jun 1, 2026
Merged

feat: support adding GitHub Copilot AI provider via UI (#25888)#25902
f0ssel merged 1 commit into
release/2.34from
backport/25888-to-2.34

Conversation

@github-actions
Copy link
Copy Markdown

@github-actions github-actions Bot commented Jun 1, 2026

Cherry-pick of #25888

Original PR: #25888 — feat: support adding GitHub Copilot AI provider via UI
Merge commit: a85462b
Requested by: @dannykopping

Copilot is the only AI provider type that could not be added through the `/ai/settings` UI. The aibridge runtime and the env-var seeding path already supported it, but the runtime CRUD API rejected `type=copilot` and the UI omitted it entirely. The root cause is that Copilot's auth model (a per-request GitHub OAuth token, with no pre-shared key) does not fit the credential-centric add-provider flow that every other provider uses.

## Backend

Allow `type=copilot` in `CreateAIProviderRequest.Validate()`, and reject `api_keys` for Copilot on both create (validation) and update (handler sentinel), mirroring the existing Bedrock guards. Copilot carries no stored credential.

## Frontend

Add Copilot to the provider type picker (with the `github-copilot.svg` icon) and give the form a credential-free branch: name, display name, and a free-text endpoint defaulting to `https://api.business.githubcopilot.com`, with copy explaining that authentication happens via the user's GitHub token at request time. Copilot maps to the distinct `copilot` wire type rather than collapsing to `openai`, and the edit flow recovers it correctly.

The endpoint stays required with a business-tier default; users on the individual or enterprise endpoints edit the field.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

(cherry picked from commit a85462b)
@f0ssel f0ssel merged commit ec2d20a into release/2.34 Jun 1, 2026
6 checks passed
@f0ssel f0ssel deleted the backport/25888-to-2.34 branch June 1, 2026 17:40
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants