You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: retry API requests on stream failures instead of aborting task
Previously, when a stream failed mid-execution, the task would abort entirely,
requiring manual intervention to resume. This change modifies the error handling
logic to distinguish between user cancellations and stream failures.
Changes:
- Stream failures now clean up partial state and retry automatically
- User cancellations still abort the task as expected
- Retry uses existing rate limiting to prevent rapid request loops
- Failed requests are retried from the start with the same content
This allows tasks to recover gracefully from transient network issues or
temporary API failures without losing progress.
0 commit comments