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
This commit is contained in:
Roo Code 2025-06-30 17:04:02 +00:00
parent df6f9cf74a
commit a3c85b512e
2 changed files with 4 additions and 2 deletions

View file

@ -1640,8 +1640,8 @@ export class Task extends EventEmitter<ClineEvents> {
autoApprovalEnabled,
alwaysApproveResubmit,
requestDelaySeconds,
minRetryDelaySeconds,
maxRetryDelaySeconds,
minRetryDelaySeconds = 5,
maxRetryDelaySeconds = 100,
mode,
autoCondenseContext = true,
autoCondenseContextPercent = 100,

View file

@ -1673,6 +1673,8 @@ export class ClineProvider
codebaseIndexEmbedderModelId: "",
},
profileThresholds: stateValues.profileThresholds ?? {},
minRetryDelaySeconds: stateValues.minRetryDelaySeconds ?? 5,
maxRetryDelaySeconds: stateValues.maxRetryDelaySeconds ?? 100,
}
}