From 84484c06c33b19a198d876bc7c071d9f83f3741f Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Fri, 12 Dec 2025 15:54:11 -0500 Subject: [PATCH] fix(cliproxy): inherit stdin for OAuth interactive prompts Change stdio from 'ignore' to 'inherit' for stdin in auth subprocess, allowing CLIProxy to receive user input for email/alias prompts during Qwen and other OAuth flows. Fixes #91 --- src/cliproxy/auth-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cliproxy/auth-handler.ts b/src/cliproxy/auth-handler.ts index 6a3a5d80..d1d8840a 100644 --- a/src/cliproxy/auth-handler.ts +++ b/src/cliproxy/auth-handler.ts @@ -553,7 +553,7 @@ export async function triggerOAuth( return new Promise((resolve) => { // Spawn CLIProxyAPI with auth flag (and --no-browser if headless) const authProcess = spawn(binaryPath, args, { - stdio: ['ignore', 'pipe', 'pipe'], + stdio: ['inherit', 'pipe', 'pipe'], env: { ...process.env, CLI_PROXY_AUTH_DIR: tokenDir,