@@ -44,7 +44,7 @@ type ToolRenderOpts struct {
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
50 if opts.Result != nil {
50 if opts.Result != nil {