feat: show hunk headers

This commit is contained in:
adamdottv
2025-05-01 09:02:14 -05:00
parent 7d5f0f9d18
commit e760d28c5a
2 changed files with 13 additions and 16 deletions

View File

@@ -446,8 +446,7 @@ func renderToolResponse(toolCall message.ToolCall, response message.ToolResult,
case tools.EditToolName:
metadata := tools.EditResponseMetadata{}
json.Unmarshal([]byte(response.Metadata), &metadata)
truncDiff := truncateHeight(metadata.Diff, maxResultHeight)
formattedDiff, _ := diff.FormatDiff(truncDiff, diff.WithTotalWidth(width))
formattedDiff, _ := diff.FormatDiff(metadata.Diff, diff.WithTotalWidth(width))
return formattedDiff
case tools.FetchToolName:
var params tools.FetchParams
@@ -636,4 +635,3 @@ func formatTimestampDiff(start, end int64) string {
}
return fmt.Sprintf("%.1fm", diffSeconds/60)
}