From 8df9a80cc474d4055d6de67f235055510bb6a605 Mon Sep 17 00:00:00 2001 From: "A.K.M. Adib" Date: Mon, 9 Mar 2026 12:03:23 -0400 Subject: [PATCH] bring new functiontruncateOutputIfNeeded without changes to current branch in there --- packages/core/src/scheduler/tool-executor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/scheduler/tool-executor.ts b/packages/core/src/scheduler/tool-executor.ts index ef6e5ce217..4c5fdef5c0 100644 --- a/packages/core/src/scheduler/tool-executor.ts +++ b/packages/core/src/scheduler/tool-executor.ts @@ -382,7 +382,6 @@ export class ToolExecutor { ): Promise { let { truncatedContent: content, outputFile } = await this.truncateOutputIfNeeded(call, toolResult.llmContent); - const toolName = call.request.originalRequestName || call.request.name; const callId = call.request.callId; @@ -413,6 +412,7 @@ export class ToolExecutor { }), ); } else { + // If the content is not truncated, we don't need the temporary file. try { await fsPromises.unlink(toolResult.fullOutputFilePath); } catch (error) {