on main help sign in
fix(chat): do not mark tools with results as canceled
03beedcKujtim Hoxha
internal/ui/chat/tools.go+1−1
@@ -44,7 +44,7 @@ type ToolRenderOpts struct {
44
44
45// Status returns the current status of the tool call.
45// Status returns the current status of the tool call.
46func (opts *ToolRenderOpts) Status() ToolStatus {
46func (opts *ToolRenderOpts) Status() ToolStatus {
47− if opts.Canceled {
47+ if opts.Canceled && opts.Result == nil {
48 return ToolStatusCanceled
48 return ToolStatusCanceled
49 }
49 }
50 if opts.Result != nil {
50 if opts.Result != nil {