From 858f0dcdaf08e66552bff06e80e7bc693ed01bb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E6=98=8A=E4=BA=AE?= Date: Fri, 30 May 2025 18:10:11 +0800 Subject: [PATCH] feat: support current env uriScheme --- webview-ui/src/components/settings/ApiOptions.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webview-ui/src/components/settings/ApiOptions.tsx b/webview-ui/src/components/settings/ApiOptions.tsx index 7320db8f864..95e9efeb464 100644 --- a/webview-ui/src/components/settings/ApiOptions.tsx +++ b/webview-ui/src/components/settings/ApiOptions.tsx @@ -62,7 +62,6 @@ import { ModelsServiceClient } from "@/services/grpc-client" import { getAsVar, VSC_DESCRIPTION_FOREGROUND } from "@/utils/vscStyles" import VSCodeButtonLink from "@/components/common/VSCodeButtonLink" import { createOAuthUrl } from "@nutstore/sso-js" -// import { _dont_use_in_prod_createOAuthUrl } from "@nutstore/sso-js" import OpenRouterModelPicker, { ModelDescriptionMarkdown, OPENROUTER_MODEL_PICKER_Z_INDEX } from "./OpenRouterModelPicker" import { ClineAccountInfoCard } from "./ClineAccountInfoCard" import RequestyModelPicker from "./RequestyModelPicker" @@ -166,7 +165,7 @@ const ApiOptions = ({ createOAuthUrl({ // _dont_use_in_prod_createOAuthUrl({ - app: "cline", + app: `cline-${uriScheme}`, }).then((url) => { setNutstoreAuthUrl(`${url}`) })