Skip to content

Commit 0299564

Browse files
committed
Revert "fix"
This reverts commit 6b331aa.
1 parent 6b331aa commit 0299564

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,12 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
13651365
await this.updateGlobalState("requestDelaySeconds", message.value ?? 5)
13661366
await this.postStateToWebview()
13671367
break
1368+
case "rateLimitSeconds":
1369+
// Rate limit seconds is now part of the API configuration
1370+
// and will be saved when the API configuration is saved
1371+
await this.updateGlobalState("rateLimitSeconds", message.value ?? 0)
1372+
await this.postStateToWebview()
1373+
break
13681374
case "writeDelayMs":
13691375
await this.updateGlobalState("writeDelayMs", message.value)
13701376
await this.postStateToWebview()

webview-ui/src/context/ExtensionStateContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export const ExtensionStateContextProvider: React.FC<{ children: React.ReactNode
129129
enableMcpServerCreation: true,
130130
alwaysApproveResubmit: false,
131131
requestDelaySeconds: 5,
132-
// rateLimitSeconds is now part of apiConfiguration
132+
rateLimitSeconds: 0, // Minimum time between successive requests (0 = disabled)
133133
currentApiConfigName: "default",
134134
listApiConfigMeta: [],
135135
mode: defaultModeSlug,

0 commit comments

Comments
 (0)