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
Copy file name to clipboardExpand all lines: src/core/controller/index.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -504,7 +504,7 @@ export class Controller {
504
504
break
505
505
}
506
506
case"checkpointRestore": {
507
-
awaitthis.cancelTask()// we cannot alter message history say if the task is active, as it could be in the middle of editing a file or running a command, which expect the ask to be responded to rather than being superceded by a new message eg add deleted_api_reqs
507
+
awaitthis.cancelTask()// we cannot alter message history say if the task is active, as it could be in the middle of editing a file or running a command, which expect the ask to be responded to rather than being superseded by a new message eg add deleted_api_reqs
508
508
// cancel task waits for any open editor to be reverted and starts a new cline instance
509
509
if(message.number){
510
510
// wait for messages to be loaded
@@ -1740,7 +1740,7 @@ Here is the project's README to help you get started:\n\n${mcpDetails.readmeCont
1740
1740
}
1741
1741
}
1742
1742
// if we tried to get a task that doesn't exist, remove it from state
1743
-
// FIXME: this seems to happen sometimes when the json file doesnt save to disk for some reason
1743
+
// FIXME: this seems to happen sometimes when the json file doesn't save to disk for some reason
1744
1744
awaitthis.deleteTaskFromState(id)
1745
1745
thrownewError("Task not found")
1746
1746
}
@@ -1917,7 +1917,7 @@ Here is the project's README to help you get started:\n\n${mcpDetails.readmeCont
1917
1917
// conversation history to send in API requests
1918
1918
1919
1919
/*
1920
-
It seems that some API messages do not comply with vscode state requirements. Either the Anthropic library is manipulating these values somehow in the backend in a way thats creating cyclic references, or the API returns a function or a Symbol as part of the message content.
1920
+
It seems that some API messages do not comply with vscode state requirements. Either the Anthropic library is manipulating these values somehow in the backend in a way that's creating cyclic references, or the API returns a function or a Symbol as part of the message content.
1921
1921
VSCode docs about state: "The value must be JSON-stringifyable ... value — A value. MUST not contain cyclic references."
1922
1922
For now we'll store the conversation history in memory, and if we need to store in state directly we'd need to do a manual conversion to ensure proper json stringification.
Copy file name to clipboardExpand all lines: src/core/task/index.ts
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -440,7 +440,7 @@ export class Task {
440
440
return
441
441
}
442
442
443
-
// TODO: handle if this is called from outside original workspace, in which case we need to show user error message we cant show diff outside of workspace?
443
+
// TODO: handle if this is called from outside original workspace, in which case we need to show user error message we can't show diff outside of workspace?
// Now present the cline messages to the user and ask if they want to resume (NOTE: we ran into a bug before where the apiconversationhistory wouldnt be initialized when opening a old task, and it was because we were waiting for resume)
888
+
// Now present the cline messages to the user and ask if they want to resume (NOTE: we ran into a bug before where the apiconversationhistory wouldn't be initialized when opening a old task, and it was because we were waiting for resume)
889
889
// This is important in case the user deletes messages without resuming the task first
// since depending on an upcoming parameter, requiresApproval this may become an ask - we cant partially stream a say prematurely. So in this particular case we have to wait for the requiresApproval parameter to be completed before presenting it.
2436
+
// since depending on an upcoming parameter, requiresApproval this may become an ask - we can't partially stream a say prematurely. So in this particular case we have to wait for the requiresApproval parameter to be completed before presenting it.
2437
2437
// await this.say(
2438
2438
// "command",
2439
2439
// removeClosingTag("command", command),
@@ -2479,7 +2479,7 @@ export class Task {
2479
2479
2480
2480
letdidAutoApprove=false
2481
2481
2482
-
// If the model says this command is safe and auto aproval for safe commands is true, execute the command
2482
+
// If the model says this command is safe and auto approval for safe commands is true, execute the command
2483
2483
// If the model says the command is risky, but *BOTH* auto approve settings are true, execute the command
// userContent has a tool rejection, so interrupt the assistant's response to present the user's feedback
3410
3410
assistantMessage+="\n\n[Response interrupted by user feedback]"
3411
-
// this.userMessageContentReady = true // instead of setting this premptively, we allow the present iterator to finish and set userMessageContentReady when its ready
3411
+
// this.userMessageContentReady = true // instead of setting this preemptively, we allow the present iterator to finish and set userMessageContentReady when its ready
3412
3412
break
3413
3413
}
3414
3414
@@ -3463,7 +3463,7 @@ export class Task {
3463
3463
partialBlocks.forEach((block)=>{
3464
3464
block.partial=false
3465
3465
})
3466
-
// this.assistantMessageContent.forEach((e) => (e.partial = false)) // cant just do this bc a tool could be in the middle of executing ()
3466
+
// this.assistantMessageContent.forEach((e) => (e.partial = false)) // can't just do this bc a tool could be in the middle of executing ()
3467
3467
if(partialBlocks.length>0){
3468
3468
this.presentAssistantMessage()// if there is content to update then it will complete and update this.userMessageContentReady to true, which we pwaitfor before making the next request. all this is really doing is presenting the last partial message that we just set to complete
Copy file name to clipboardExpand all lines: src/core/webview/index.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -193,7 +193,7 @@ export class WebviewProvider implements vscode.WebviewViewProvider {
193
193
/*
194
194
content security policy of your webview to only allow scripts that have a specific nonce
195
195
create a content security policy meta tag so that only loading scripts with a nonce is allowed
196
-
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.
196
+
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 explicitly allow for these resources. E.g.
Copy file name to clipboardExpand all lines: src/integrations/diagnostics/DiagnosticsMonitor.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -61,7 +61,7 @@ class DiagnosticsMonitor {
61
61
return currentDiagnostics
62
62
}
63
63
64
-
let timeout = 300 // only way this happens is if theres no errors
64
+
let timeout = 300 // only way this happens is if there's no errors
65
65
66
66
// if diagnostics contain existing errors (since the check above didn't trigger) then it's likely cline just did something that should have fixed the error, so we'll give a longer grace period for diagnostics to catch up
0 commit comments