From 438385d763d16ad05a2c948d72be69969b7e6cc7 Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Mon, 15 Dec 2025 13:07:06 +0100 Subject: [PATCH] fix: nil exception --- internal/ui/chat/tool_items.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ui/chat/tool_items.go b/internal/ui/chat/tool_items.go index 3c4405e1d1cc02d8f9a5a6176a107ba339665080..78a7e38d374607397f0af037d1afb39e32fd2ae0 100644 --- a/internal/ui/chat/tool_items.go +++ b/internal/ui/chat/tool_items.go @@ -98,7 +98,7 @@ func (m *BashToolItem) Render(width int) string { cmd = strings.ReplaceAll(cmd, "\t", " ") // Check if this is a background job that finished - if m.ctx.Call.Finished { + if m.ctx.Call.Finished && m.ctx.HasResult() { var meta tools.BashResponseMetadata unmarshalParams(m.ctx.Result.Metadata, &meta) if meta.Background {