mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Don't allow setting a retry period below 5 seconds, default to 10
This commit is contained in:
@@ -1847,7 +1847,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|||||||
fuzzyMatchThreshold: fuzzyMatchThreshold ?? 1.0,
|
fuzzyMatchThreshold: fuzzyMatchThreshold ?? 1.0,
|
||||||
mcpEnabled: mcpEnabled ?? true,
|
mcpEnabled: mcpEnabled ?? true,
|
||||||
alwaysApproveResubmit: alwaysApproveResubmit ?? false,
|
alwaysApproveResubmit: alwaysApproveResubmit ?? false,
|
||||||
requestDelaySeconds: requestDelaySeconds ?? 5,
|
requestDelaySeconds: requestDelaySeconds ?? 10,
|
||||||
currentApiConfigName: currentApiConfigName ?? "default",
|
currentApiConfigName: currentApiConfigName ?? "default",
|
||||||
listApiConfigMeta: listApiConfigMeta ?? [],
|
listApiConfigMeta: listApiConfigMeta ?? [],
|
||||||
mode: mode ?? defaultModeSlug,
|
mode: mode ?? defaultModeSlug,
|
||||||
@@ -2152,7 +2152,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|||||||
})(),
|
})(),
|
||||||
mcpEnabled: mcpEnabled ?? true,
|
mcpEnabled: mcpEnabled ?? true,
|
||||||
alwaysApproveResubmit: alwaysApproveResubmit ?? false,
|
alwaysApproveResubmit: alwaysApproveResubmit ?? false,
|
||||||
requestDelaySeconds: requestDelaySeconds ?? 5,
|
requestDelaySeconds: Math.max(5, requestDelaySeconds ?? 10),
|
||||||
currentApiConfigName: currentApiConfigName ?? "default",
|
currentApiConfigName: currentApiConfigName ?? "default",
|
||||||
listApiConfigMeta: listApiConfigMeta ?? [],
|
listApiConfigMeta: listApiConfigMeta ?? [],
|
||||||
modeApiConfigs: modeApiConfigs ?? ({} as Record<Mode, string>),
|
modeApiConfigs: modeApiConfigs ?? ({} as Record<Mode, string>),
|
||||||
|
|||||||
@@ -281,7 +281,7 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
|
|||||||
<div style={{ display: "flex", alignItems: "center", gap: "10px" }}>
|
<div style={{ display: "flex", alignItems: "center", gap: "10px" }}>
|
||||||
<input
|
<input
|
||||||
type="range"
|
type="range"
|
||||||
min="0"
|
min="5"
|
||||||
max="100"
|
max="100"
|
||||||
step="1"
|
step="1"
|
||||||
value={requestDelaySeconds}
|
value={requestDelaySeconds}
|
||||||
|
|||||||
Reference in New Issue
Block a user