fix(coding-agent): parse launch cwd flag

This commit is contained in:
DarkPhilosophy
2026-06-07 20:57:14 +03:00
parent b6d422ff65
commit a58f0bcbeb
4 changed files with 27 additions and 0 deletions
+2
View File
@@ -109,6 +109,8 @@ export function parseArgs(inputArgs: string[], extensionFlags?: Map<string, { ty
result.version = true;
} else if (arg === "--allow-home") {
result.allowHome = true;
} else if (arg === "--cwd" && i + 1 < args.length) {
result.cwd = args[++i];
} else if (arg === "--mode" && i + 1 < args.length) {
const mode = args[++i];
if (mode === "text" || mode === "json" || mode === "rpc" || mode === "acp" || mode === "rpc-ui") {