From affd3cae9afd9785064849cac8009409b661e515 Mon Sep 17 00:00:00 2001 From: Jainam M Date: Fri, 10 Oct 2025 22:29:44 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20Prevent=20garbled=20input=20during=20"Lo?= =?UTF-8?q?gin=20With=20Google"=20OAuth=20prompt=20on=E2=80=A6=20(#10888)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/cli/src/gemini.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/cli/src/gemini.tsx b/packages/cli/src/gemini.tsx index e25b8bff1a..77ee378863 100644 --- a/packages/cli/src/gemini.tsx +++ b/packages/cli/src/gemini.tsx @@ -380,7 +380,6 @@ export async function main() { } const wasRaw = process.stdin.isRaw; - let kittyProtocolDetectionComplete: Promise | undefined; if (config.isInteractive() && !wasRaw && process.stdin.isTTY) { // Set this as early as possible to avoid spurious characters from // input showing up in the output. @@ -395,11 +394,10 @@ export async function main() { }); // Detect and enable Kitty keyboard protocol once at startup. - kittyProtocolDetectionComplete = detectAndEnableKittyProtocol(); + await detectAndEnableKittyProtocol(); } setMaxSizedBoxDebugging(isDebugMode); - const initializationResult = await initializeApp(config, settings); if ( @@ -423,8 +421,6 @@ export async function main() { // Render UI, passing necessary config values. Check that there is no command line question. if (config.isInteractive()) { - // Need kitty detection to be complete before we can start the interactive UI. - await kittyProtocolDetectionComplete; await startInteractiveUI( config, settings,