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 8a70b98d1d
commit 2ad666a484
2 changed files with 78 additions and 23 deletions

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;