Skip to content

Commit a3c85b5

Browse files
committed
Add default values for retry delay settings
- Set default values in Task.ts parameter destructuring (5s min, 100s max) - Add fallback defaults in ClineProvider.ts getStateToPostToWebview method - Ensures consistent behavior when settings are undefined
1 parent df6f9cf commit a3c85b5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/core/task/Task.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,8 +1640,8 @@ export class Task extends EventEmitter<ClineEvents> {
16401640
autoApprovalEnabled,
16411641
alwaysApproveResubmit,
16421642
requestDelaySeconds,
1643-
minRetryDelaySeconds,
1644-
maxRetryDelaySeconds,
1643+
minRetryDelaySeconds = 5,
1644+
maxRetryDelaySeconds = 100,
16451645
mode,
16461646
autoCondenseContext = true,
16471647
autoCondenseContextPercent = 100,

src/core/webview/ClineProvider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,6 +1673,8 @@ export class ClineProvider
16731673
codebaseIndexEmbedderModelId: "",
16741674
},
16751675
profileThresholds: stateValues.profileThresholds ?? {},
1676+
minRetryDelaySeconds: stateValues.minRetryDelaySeconds ?? 5,
1677+
maxRetryDelaySeconds: stateValues.maxRetryDelaySeconds ?? 100,
16761678
}
16771679
}
16781680

0 commit comments

Comments
 (0)