Skip to content

Commit cc89b0b

Browse files
monkeyDluffy6017mehmetsunkur
authored andcommitted
fix: reset the variable isWaitingForFirstChunk when catch exception (RooCodeInc#3262)
1 parent 411b286 commit cc89b0b

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
@@ -1515,6 +1515,7 @@ export class Cline extends EventEmitter<ClineEvents> {
15151515
yield firstChunk.value
15161516
this.isWaitingForFirstChunk = false
15171517
} catch (error) {
1518+
this.isWaitingForFirstChunk = false
15181519
// 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.
15191520
if (autoApprovalEnabled && alwaysApproveResubmit) {
15201521
let errorMsg

0 commit comments

Comments
 (0)