mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-12 12:13:37 +00:00
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
This commit is contained in:
1 parent
d64115f91a
commit
84484c06c3
1 file changed
+1
-1
@@ -553,7 +553,7 @@ export async function triggerOAuth(
|
||||
return new Promise<AccountInfo | null>((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,
|
||||
|
||||
Reference in new issue
Block a user