From e740278ce59e94bfdddd734a4e056aba1e283334 Mon Sep 17 00:00:00 2001 From: chezsmithy Date: Tue, 4 Mar 2025 20:03:32 -0800 Subject: [PATCH] fix-stdout-terminal --- core/tools/implementations/runTerminalCommand.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/tools/implementations/runTerminalCommand.ts b/core/tools/implementations/runTerminalCommand.ts index ccb79f290..9196cca2a 100644 --- a/core/tools/implementations/runTerminalCommand.ts +++ b/core/tools/implementations/runTerminalCommand.ts @@ -1,8 +1,8 @@ import childProcess from "node:child_process"; import util from "node:util"; -import { ToolImpl } from "."; import { fileURLToPath } from "node:url"; +import { ToolImpl } from "."; const asyncExec = util.promisify(childProcess.exec); @@ -26,7 +26,7 @@ export const runTerminalCommandImpl: ToolImpl = async (args, extras) => { { name: "Terminal", description: "Terminal command output", - content: error.stderr ?? error.toString(), + content: error.stderr || error.stdout || error.toString(), }, ]; }