From b52c10ddb90af659b6c53ece9a5a93ffce902afe Mon Sep 17 00:00:00 2001 From: Bill Date: Sat, 9 May 2026 16:21:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DCI=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/logout/logout.tsx | 6 ++---- src/components/ConsoleOAuthFlow.tsx | 3 +-- src/components/ModelPicker.tsx | 14 ++------------ src/utils/model/chatgptModels.ts | 6 ++++-- 4 files changed, 9 insertions(+), 20 deletions(-) diff --git a/src/commands/logout/logout.tsx b/src/commands/logout/logout.tsx index 78eafc0cd..b5b604de0 100644 --- a/src/commands/logout/logout.tsx +++ b/src/commands/logout/logout.tsx @@ -56,9 +56,7 @@ function clearChatGPTSettingsAuthMode(): void { Boolean(env.OPENAI_API_KEY ?? process.env.OPENAI_API_KEY) && Boolean(env.OPENAI_BASE_URL ?? process.env.OPENAI_BASE_URL); const settingsUpdate: Parameters[1] = { - ...(userSettings.modelType === 'openai' && !hasOpenAICompatibleConfig - ? { modelType: undefined } - : {}), + ...(userSettings.modelType === 'openai' && !hasOpenAICompatibleConfig ? { modelType: undefined } : {}), env: { OPENAI_AUTH_MODE: undefined, } as unknown as Record, @@ -92,7 +90,7 @@ export async function clearAuthRelatedCaches(): Promise { export async function call(): Promise { await performLogout({ clearOnboarding: true }); - const message = Successfully logged out. + const message = Successfully logged out.; setTimeout(() => { gracefulShutdownSync(0, 'logout'); diff --git a/src/components/ConsoleOAuthFlow.tsx b/src/components/ConsoleOAuthFlow.tsx index 29b81ff47..084cdf2d0 100644 --- a/src/components/ConsoleOAuthFlow.tsx +++ b/src/components/ConsoleOAuthFlow.tsx @@ -458,8 +458,7 @@ function OAuthStatusMessage({ { label: ( - ChatGPT account with subscription ·{' '} - Plus, Pro, Business, Edu, or Enterprise + ChatGPT account with subscription · Plus, Pro, Business, Edu, or Enterprise {'\n'} ), diff --git a/src/components/ModelPicker.tsx b/src/components/ModelPicker.tsx index 6f1365325..2e878cb98 100644 --- a/src/components/ModelPicker.tsx +++ b/src/components/ModelPicker.tsx @@ -176,21 +176,11 @@ export function ModelPicker({ (direction: 'left' | 'right') => { if (!focusedSupportsEffort) return; setEffort(prev => - cycleEffortLevel( - prev ?? focusedDefaultEffort, - direction, - focusedSupportsXhigh, - focusedSupportsMax, - ), + cycleEffortLevel(prev ?? focusedDefaultEffort, direction, focusedSupportsXhigh, focusedSupportsMax), ); setHasToggledEffort(true); }, - [ - focusedSupportsEffort, - focusedSupportsXhigh, - focusedSupportsMax, - focusedDefaultEffort, - ], + [focusedSupportsEffort, focusedSupportsXhigh, focusedSupportsMax, focusedDefaultEffort], ); useKeybindings( diff --git a/src/utils/model/chatgptModels.ts b/src/utils/model/chatgptModels.ts index 813676545..4521b9ebf 100644 --- a/src/utils/model/chatgptModels.ts +++ b/src/utils/model/chatgptModels.ts @@ -11,7 +11,8 @@ export const CHATGPT_CODEX_MODEL_OPTIONS: ChatGPTCodexModelOption[] = [ { value: 'gpt-5.5', label: 'GPT-5.5', - description: 'Frontier model for complex coding, research, and real-world work', + description: + 'Frontier model for complex coding, research, and real-world work', }, { value: 'gpt-5.4', @@ -21,7 +22,8 @@ export const CHATGPT_CODEX_MODEL_OPTIONS: ChatGPTCodexModelOption[] = [ { value: 'gpt-5.4-mini', label: 'GPT-5.4-Mini', - description: 'Small, fast, and cost-efficient model for simpler coding tasks', + description: + 'Small, fast, and cost-efficient model for simpler coding tasks', }, { value: 'gpt-5.3-codex',