fix parse error

This commit is contained in:
DennisYu07 2026-03-19 16:26:55 +08:00
parent 6d4a732257
commit 305d35e680
2 changed files with 11 additions and 17 deletions

View file

@ -113,10 +113,7 @@ export class ShellProcessor implements IPromptProcessor {
.replaceAll(SHORTHAND_ARGS_PLACEHOLDER, userArgsEscaped) // Replace {{args}}
.replaceAll(
'$ARGUMENTS',
userArgsRaw
.split(' ')
.map((arg) => escapeShellArg(arg, shell))
.join(' '),
userArgsRaw.replace(/^'([\s\S]*?)'$/, '$1'),
);
return { ...injection, resolvedCommand };
},