bring new functiontruncateOutputIfNeeded without changes to current branch in there

This commit is contained in:
A.K.M. Adib
2026-03-09 12:03:23 -04:00
committed by Spencer
parent 5c42d0309a
commit 749b6b35b5
+1 -1
View File
@@ -381,7 +381,6 @@ export class ToolExecutor {
): Promise<SuccessfulToolCall> {
let { truncatedContent: content, outputFile } =
await this.truncateOutputIfNeeded(call, toolResult.llmContent);
const toolName = call.request.originalRequestName || call.request.name;
const callId = call.request.callId;
@@ -412,6 +411,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) {