switch to spawn for shell mode (#467)

This commit is contained in:
Olcan
2025-05-21 09:31:13 -07:00
committed by GitHub
parent 58b1156e93
commit c6fdf8d23e
2 changed files with 78 additions and 23 deletions
+2
View File
@@ -178,6 +178,8 @@ export class ShellTool extends BaseTool<ShellToolParams, ToolResult> {
let error: Error | null = null;
shell.on('error', (err: Error) => {
error = err;
// remove wrapper from user's command in error message
error.message = error.message.replace(command, params.command);
});
let code: number | null = null;