fix(chat): do not mark tools with results as canceled

Kujtim Hoxha created

Change summary

internal/ui/chat/tools.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

internal/ui/chat/tools.go 🔗

@@ -44,7 +44,7 @@ type ToolRenderOpts struct {
 
 // Status returns the current status of the tool call.
 func (opts *ToolRenderOpts) Status() ToolStatus {
-	if opts.Canceled {
+	if opts.Canceled && opts.Result == nil {
 		return ToolStatusCanceled
 	}
 	if opts.Result != nil {