diff --git a/pkg/agent/loop.go b/pkg/agent/loop.go index e7229bb5a..694fb63c1 100644 --- a/pkg/agent/loop.go +++ b/pkg/agent/loop.go @@ -2102,7 +2102,7 @@ turnLoop: reasoningContent = response.ReasoningContent } go al.handleReasoning( - turnCtx, + context.WithoutCancel(turnCtx), reasoningContent, ts.channel, al.targetReasoningChannelID(ts.channel),