From 919011a37290db4cefeceb2978821acaf34e35e6 Mon Sep 17 00:00:00 2001 From: claude-code-best Date: Mon, 6 Apr 2026 11:28:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20login=20=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E7=9A=84=20enter=20=E8=A6=86=E7=9B=96=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ConsoleOAuthFlow.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/ConsoleOAuthFlow.tsx b/src/components/ConsoleOAuthFlow.tsx index 90a2e2b36..a9782fa5c 100644 --- a/src/components/ConsoleOAuthFlow.tsx +++ b/src/components/ConsoleOAuthFlow.tsx @@ -689,11 +689,12 @@ function OAuthStatusMessage({ const handleEnter = useCallback(() => { const idx = FIELDS.indexOf(activeField) - setOAuthStatus(buildState(activeField, inputValue)) if (idx === FIELDS.length - 1) { + setOAuthStatus(buildState(activeField, inputValue)) doSave() } else { const next = FIELDS[idx + 1]! + setOAuthStatus(buildState(activeField, inputValue, next)) setInputValue(displayValues[next] ?? '') setInputCursorOffset((displayValues[next] ?? '').length) } @@ -885,11 +886,12 @@ function OAuthStatusMessage({ const handleOpenAIEnter = useCallback(() => { const idx = OPENAI_FIELDS.indexOf(activeField) - setOAuthStatus(buildOpenAIState(activeField, openaiInputValue)) if (idx === OPENAI_FIELDS.length - 1) { + setOAuthStatus(buildOpenAIState(activeField, openaiInputValue)) doOpenAISave() } else { const next = OPENAI_FIELDS[idx + 1]! + setOAuthStatus(buildOpenAIState(activeField, openaiInputValue, next)) setOpenaiInputValue(openaiDisplayValues[next] ?? '') setOpenaiInputCursorOffset((openaiDisplayValues[next] ?? '').length) } @@ -1117,11 +1119,12 @@ function OAuthStatusMessage({ const handleGeminiEnter = useCallback(() => { const idx = GEMINI_FIELDS.indexOf(activeField) - setOAuthStatus(buildGeminiState(activeField, geminiInputValue)) if (idx === GEMINI_FIELDS.length - 1) { + setOAuthStatus(buildGeminiState(activeField, geminiInputValue)) doGeminiSave() } else { const next = GEMINI_FIELDS[idx + 1]! + setOAuthStatus(buildGeminiState(activeField, geminiInputValue, next)) setGeminiInputValue(geminiDisplayValues[next] ?? '') setGeminiInputCursorOffset((geminiDisplayValues[next] ?? '').length) }