mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-02 13:40:46 +00:00
improve to change extension path instead of tmp path and fix shell multiple input
This commit is contained in:
parent
257934f1e9
commit
b5186d3c8a
6 changed files with 427 additions and 119 deletions
|
|
@ -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 };
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue