mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
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:
parent
df6f9cf74a
commit
a3c85b512e
2 changed files with 4 additions and 2 deletions
|
|
@ -1640,8 +1640,8 @@ export class Task extends EventEmitter<ClineEvents> {
|
|||
autoApprovalEnabled,
|
||||
alwaysApproveResubmit,
|
||||
requestDelaySeconds,
|
||||
minRetryDelaySeconds,
|
||||
maxRetryDelaySeconds,
|
||||
minRetryDelaySeconds = 5,
|
||||
maxRetryDelaySeconds = 100,
|
||||
mode,
|
||||
autoCondenseContext = true,
|
||||
autoCondenseContextPercent = 100,
|
||||
|
|
|
|||
|
|
@ -1673,6 +1673,8 @@ export class ClineProvider
|
|||
codebaseIndexEmbedderModelId: "",
|
||||
},
|
||||
profileThresholds: stateValues.profileThresholds ?? {},
|
||||
minRetryDelaySeconds: stateValues.minRetryDelaySeconds ?? 5,
|
||||
maxRetryDelaySeconds: stateValues.maxRetryDelaySeconds ?? 100,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue