You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add retry request control with delay settings
- Add requestDelaySeconds setting for configuring delay between retry attempts
- Add alwaysApproveResubmit option for automatic retry approval
- Add api_req_retry_delayed message type for delayed retries
- Update UI components to support new retry control settings
@@ -233,7 +235,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
233
235
diffEnabled,
234
236
fuzzyMatchThreshold
235
237
}=awaitthis.getState()
236
-
238
+
237
239
this.cline=newCline(
238
240
this,
239
241
apiConfiguration,
@@ -253,7 +255,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
253
255
diffEnabled,
254
256
fuzzyMatchThreshold
255
257
}=awaitthis.getState()
256
-
258
+
257
259
this.cline=newCline(
258
260
this,
259
261
apiConfiguration,
@@ -319,15 +321,15 @@ export class ClineProvider implements vscode.WebviewViewProvider {
319
321
320
322
// Use a nonce to only allow a specific script to be run.
321
323
/*
322
-
content security policy of your webview to only allow scripts that have a specific nonce
323
-
create a content security policy meta tag so that only loading scripts with a nonce is allowed
324
-
As your extension grows you will likely want to add custom styles, fonts, and/or images to your webview. If you do, you will need to update the content security policy meta tag to explicity allow for these resources. E.g.
content security policy of your webview to only allow scripts that have a specific nonce
325
+
create a content security policy meta tag so that only loading scripts with a nonce is allowed
326
+
As your extension grows you will likely want to add custom styles, fonts, and/or images to your webview. If you do, you will need to update the content security policy meta tag to explicity allow for these resources. E.g.
- 'unsafe-inline' is required for styles due to vscode-webview-toolkit's dynamic style injection
327
329
- since we pass base64 images to the webview, we need to specify img-src ${webview.cspSource} data:;
328
330
329
-
in meta tag we add nonce attribute: A cryptographic nonce (only used once) to allow scripts. The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource's policy is otherwise trivial.
330
-
*/
331
+
in meta tag we add nonce attribute: A cryptographic nonce (only used once) to allow scripts. The server must generate a unique nonce value each time it transmits a policy. It is critical to provide a nonce that cannot be guessed as bypassing a resource's policy is otherwise trivial.
332
+
*/
331
333
constnonce=getNonce()
332
334
333
335
// Tip: Install the es6-string-html VS Code extension to enable code highlighting below
@@ -555,7 +557,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
0 commit comments