feat(app): auto-open oauth links for codex and copilot (#10258)
This commit is contained in:
parent
d6c5ddd6dc
commit
65c236c071
16 changed files with 37 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue