fix(coding-agent): handle frontmatter prompts in print mode

closes #4163
This commit is contained in:
Mario Zechner
2026-05-04 22:37:01 +02:00
parent 3c9c54d51b
commit bac2df36b9
3 changed files with 24 additions and 0 deletions

View File

@@ -122,6 +122,11 @@ export function parseArgs(args: string[]): Args {
}
} else if (arg === "--print" || arg === "-p") {
result.print = true;
const next = args[i + 1];
if (next !== undefined && !next.startsWith("@") && (!next.startsWith("-") || next.startsWith("---"))) {
result.messages.push(next);
i++;
}
} else if (arg === "--export" && i + 1 < args.length) {
result.export = args[++i];
} else if ((arg === "--extension" || arg === "-e") && i + 1 < args.length) {