diff --git a/src/core/Cline.ts b/src/core/Cline.ts index f38da0b853a..f739900c9d9 100644 --- a/src/core/Cline.ts +++ b/src/core/Cline.ts @@ -1510,6 +1510,7 @@ export class Cline extends EventEmitter { yield firstChunk.value this.isWaitingForFirstChunk = false } catch (error) { + this.isWaitingForFirstChunk = false // 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. if (autoApprovalEnabled && alwaysApproveResubmit) { let errorMsg