fix(agent): avoid reasoning publish race on turn cancel

This commit is contained in:
Alix-007 2026-03-29 15:15:39 +08:00
parent d4a19cf53e
commit 902cade8d0

View file

@ -2102,7 +2102,7 @@ turnLoop:
reasoningContent = response.ReasoningContent
}
go al.handleReasoning(
turnCtx,
context.WithoutCancel(turnCtx),
reasoningContent,
ts.channel,
al.targetReasoningChannelID(ts.channel),