mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 21:32:56 -07:00
refactor(cli): migrate core tools to native ToolDisplay property and fix UI rendering (#25186)
This commit is contained in:
@@ -430,6 +430,19 @@ class WriteFileToolInvocation extends BaseToolInvocation<
|
||||
|
||||
return {
|
||||
llmContent,
|
||||
display: {
|
||||
name: WRITE_FILE_DISPLAY_NAME,
|
||||
description: this.getDescription(),
|
||||
resultSummary: diffStat
|
||||
? `${diffStat.model_added_lines} added, ${diffStat.model_removed_lines} removed`
|
||||
: 'Written',
|
||||
result: {
|
||||
type: 'diff',
|
||||
path: this.resolvedPath,
|
||||
beforeText: correctedContentResult.originalContent ?? '',
|
||||
afterText: correctedContentResult.correctedContent,
|
||||
},
|
||||
},
|
||||
returnDisplay: displayResult,
|
||||
};
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user