feat(app): auto-open oauth links for codex and copilot (#10258)

This commit is contained in:
Edin 2026-01-23 16:35:44 +01:00 committed by GitHub
commit 65c236c071
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 37 additions and 0 deletions

View file

@ -373,6 +373,9 @@ export function DialogConnectProvider(props: { provider: string }) {
})
onMount(async () => {
if (store.authorization?.url) {
platform.openLink(store.authorization.url)
}
const result = await globalSDK.client.provider.oauth
.callback({
providerID: props.provider,

View file

@ -56,6 +56,12 @@ export const DialogSelectProvider: Component = () => {
<Show when={i.id === "anthropic"}>
<div class="text-14-regular text-text-weak">{language.t("dialog.provider.anthropic.note")}</div>
</Show>
<Show when={i.id === "openai"}>
<div class="text-14-regular text-text-weak">{language.t("dialog.provider.openai.note")}</div>
</Show>
<Show when={i.id.startsWith("github-copilot")}>
<div class="text-14-regular text-text-weak">{language.t("dialog.provider.copilot.note")}</div>
</Show>
</div>
)}
</List>