refactor(cli): migrate core tools to native ToolDisplay property and fix UI rendering (#25186)

This commit is contained in:
Michael Bleigh
2026-05-06 14:23:26 -07:00
committed by GitHub
parent 4a10751b49
commit 90304b279c
33 changed files with 1033 additions and 57 deletions
+13
View File
@@ -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) {