summaryrefslogtreecommitdiffhomepage
path: root/internal/tui
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-05-01 09:02:14 -0500
committeradamdottv <[email protected]>2025-05-01 09:02:14 -0500
commite760d28c5a125f7f4de30cf0491be53e32bb897d (patch)
tree6e69c1a995655dc7c4c8df4365685c08e8387301 /internal/tui
parent7d5f0f9d18f327d0df89270a3b581ce4812f7638 (diff)
downloadopencode-e760d28c5a125f7f4de30cf0491be53e32bb897d.tar.gz
opencode-e760d28c5a125f7f4de30cf0491be53e32bb897d.zip
feat: show hunk headers
Diffstat (limited to 'internal/tui')
-rw-r--r--internal/tui/components/chat/message.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/tui/components/chat/message.go b/internal/tui/components/chat/message.go
index 715e00d66..f8d721f19 100644
--- a/internal/tui/components/chat/message.go
+++ b/internal/tui/components/chat/message.go
@@ -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)
}
-