Skip to content

Commit 6f67f63

Browse files
fix: reset isWaitingForFirstChunk when catch exception
1 parent c665d3c commit 6f67f63

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/Cline.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,7 @@ export class Cline extends EventEmitter<ClineEvents> {
15101510
yield firstChunk.value
15111511
this.isWaitingForFirstChunk = false
15121512
} catch (error) {
1513+
this.isWaitingForFirstChunk = false
15131514
// 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.
15141515
if (autoApprovalEnabled && alwaysApproveResubmit) {
15151516
let errorMsg

0 commit comments

Comments
 (0)