Merge pull request #1758 from QwenLM/mingholy/fix/fork-mode-ipc

Fix CLI argument parsing for /dist/cli/cli.js entry point
This commit is contained in:
Mingholy 2026-02-09 09:59:10 +08:00 committed by GitHub
commit c8e8581978
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -166,7 +166,8 @@ export async function parseArguments(): Promise<CliArgs> {
if (
rawArgv.length > 0 &&
(rawArgv[0].endsWith('/dist/qwen-cli/cli.js') ||
rawArgv[0].endsWith('/dist/cli.js'))
rawArgv[0].endsWith('/dist/cli.js') ||
rawArgv[0].endsWith('/dist/cli/cli.js'))
) {
rawArgv = rawArgv.slice(1);
}