improve to change extension path instead of tmp path and fix shell multiple input

This commit is contained in:
DennisYu07 2026-03-19 12:02:54 +08:00
parent 257934f1e9
commit b5186d3c8a
6 changed files with 427 additions and 119 deletions

View file

@ -111,7 +111,13 @@ export class ShellProcessor implements IPromptProcessor {
const resolvedCommand = command
.replaceAll(SHORTHAND_ARGS_PLACEHOLDER, userArgsEscaped) // Replace {{args}}
.replaceAll('$ARGUMENTS', userArgsEscaped); // Replace $ARGUMENTS
.replaceAll(
'$ARGUMENTS',
userArgsRaw
.split(' ')
.map((arg) => escapeShellArg(arg, shell))
.join(' '),
);
return { ...injection, resolvedCommand };
},
);