xonecas.io
62159
Sy

symb / commit 63e24f2

fix: show tool now correctly displays diffs

xonecas2026-02-14 63e24f25497936aea618a7ae159f32aa6be367d5 parent afb2a20

1 file changed

internal/tui/update.go+5−1
@@ -233,7 +233,11 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
233233 case mcp_tools.ShowMsg:
234234 m.editor.SetValue(msg.Content)
235235 m.editor.Language = msg.Language
236- m.editor.SetLineBg(nil)
236+ if msg.Language == "diff" {
237+ m.editor.SetLineBg(diffLineBg(msg.Content))
238+ } else {
239+ m.editor.SetLineBg(nil)
240+ }
237241 m.editor.DiagnosticLines = nil // Clear stale diagnostics on file switch.
238242 if msg.FilePath != "" {
239243 markers := mcp_tools.GitFileMarkers(m.ctx, msg.FilePath)