mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-15 15:50:35 -07:00
bring new functiontruncateOutputIfNeeded without changes to current branch in there
This commit is contained in:
@@ -382,7 +382,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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user