on main help sign in
fix(chat): do not mark tools with results as canceled
commit03beedc2002cb9f909568ec3c32775fca0faf023 authorKujtim Hoxha <kujtimii.h@gmail.com> dateThu 18 Dec 2025, 14:33 (1 year ago) parent14ff224
1 file changed+1−1
internal/ui/chat/tools.go+1−1
internal/ui/chat/tools.go+1−1
@@ -44,7 +44,7 @@ type ToolRenderOpts struct {
4444
4545// Status returns the current status of the tool call.
4646func (opts *ToolRenderOpts) Status() ToolStatus {
47− if opts.Canceled {
47+ if opts.Canceled && opts.Result == nil {
4848 return ToolStatusCanceled
4949 }
5050 if opts.Result != nil {