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
* Show status code / message when API request error occurs.
* Moved logic to a helper method.
* Different error message format.
* Removed old comment.
---------
Co-authored-by: Michael Overhorst <[email protected]>
// request failed after retrying automatically once, ask user if they want to retry again
1311
1319
// note that this api_req_failed ask is unique in that we only present this option if the api hasn't streamed any content yet (ie it fails on the first chunk due), as it would allow them to hit a retry button. However if the api failed mid-stream, it could be in any arbitrary state where some tools may have executed, so that error is handled differently and requires cancelling the task entirely.
// this will never happen since if noButtonClicked, we will clear current task, aborting this instance
1318
1325
thrownewError("API request failed")
@@ -3060,7 +3067,9 @@ export class Cline {
3060
3067
// abandoned happens when extension is no longer waiting for the cline instance to finish aborting (error is thrown here when any function in the for loop throws due to this.abort)
3061
3068
if(!this.abandoned){
3062
3069
this.abortTask()// if the stream failed, there's various states the task could be in (i.e. could have streamed some tools the user may have executed), so we just resort to replicating a cancel task
0 commit comments