fix(agent): correct misspelling of 'canceled'

This commit is contained in:
Hoshina
2026-02-28 13:00:21 +08:00
parent d1b10a0004
commit 7f425f1d11
+1 -1
View File
@@ -587,7 +587,7 @@ func (al *AgentLoop) handleReasoning(ctx context.Context, reasoningContent, chan
Content: reasoningContent,
}); err != nil {
// Treat context.DeadlineExceeded / context.Canceled as expected
// (bus full under load, or parent cancelled). Check the error
// (bus full under load, or parent canceled). Check the error
// itself rather than ctx.Err(), because pubCtx may time out
// (5 s) while the parent ctx is still active.
if errors.Is(err, context.DeadlineExceeded) || errors.Is(err, context.Canceled) {