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
@@ -1008,7 +1014,10 @@ export class Cline extends EventEmitter<ClineEvents> {
1008
1014
// If the previous API request's total token usage is close to the context window, truncate the conversation history to free up space for the new request
// this will never happen since if noButtonClicked, we will clear current task, aborting this instance
1140
1150
thrownewError("API request failed")
1141
1151
}
1152
+
1142
1153
awaitthis.say("api_req_retried")
1154
+
1143
1155
// delegate generator output from the recursive call
1144
1156
yield*this.attemptApiRequest(previousApiReqIndex)
1145
1157
return
@@ -1903,8 +1915,13 @@ export class Cline extends EventEmitter<ClineEvents> {
1903
1915
1904
1916
returndidEndLoop// will always be false for now
1905
1917
}catch(error){
1906
-
// this should never happen since the only thing that can throw an error is the attemptApiRequest, which is wrapped in a try catch that sends an ask where if noButtonClicked, will clear current task and destroy this instance. However to avoid unhandled promise rejection, we will end this loop which will end execution of this instance (see startTask)
1907
-
returntrue// needs to be true so parent loop knows to end task
1918
+
// This should never happen since the only thing that can throw an
1919
+
// error is the attemptApiRequest, which is wrapped in a try catch
1920
+
// that sends an ask where if noButtonClicked, will clear current
1921
+
// task and destroy this instance. However to avoid unhandled
1922
+
// promise rejection, we will end this loop which will end execution
1923
+
// of this instance (see `startTask`).
1924
+
returntrue// Needs to be true so parent loop knows to end task.
0 commit comments