fix: preserve Antigravity cancellation errors
This commit is contained in:
@@ -894,19 +894,12 @@ attemptLoop:
|
|||||||
reporter.Publish(ctx, detail)
|
reporter.Publish(ctx, detail)
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
out <- cliproxyexecutor.StreamChunk{Payload: payload}
|
||||||
case out <- cliproxyexecutor.StreamChunk{Payload: payload}:
|
|
||||||
case <-ctx.Done():
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if errScan := scanner.Err(); errScan != nil {
|
if errScan := scanner.Err(); errScan != nil {
|
||||||
helps.RecordAPIResponseError(ctx, e.cfg, errScan)
|
helps.RecordAPIResponseError(ctx, e.cfg, errScan)
|
||||||
reporter.PublishFailure(ctx)
|
reporter.PublishFailure(ctx)
|
||||||
select {
|
out <- cliproxyexecutor.StreamChunk{Err: errScan}
|
||||||
case out <- cliproxyexecutor.StreamChunk{Err: errScan}:
|
|
||||||
case <-ctx.Done():
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
reporter.EnsurePublished(ctx)
|
reporter.EnsurePublished(ctx)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user