fix: failed to initialize/send message in Electron using SDK

This commit is contained in:
Mingholy 2026-02-08 21:45:24 +08:00
parent 36931e1eab
commit 07cd73ce01

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);
}