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: packages/core/src/codewhispererChat/controllers/chat/controller.ts
+14-7Lines changed: 14 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -744,6 +744,7 @@ export class ChatController {
744
744
consttoolResults: ToolResult[]=[]
745
745
746
746
letresponse=''
747
+
letshouldSkipHistory=false
747
748
if(toolUseError){
748
749
toolResults.push({
749
750
content: [{text: toolUseError.message}],
@@ -753,6 +754,7 @@ export class ChatController {
753
754
if(toolUseErrorinstanceofSyntaxError){
754
755
response=
755
756
"Your toolUse input isn't valid. Please check the syntax and make sure the input is complete. If the input is large, break it down into multiple tool uses with smaller input."
757
+
shouldSkipHistory=true
756
758
}
757
759
}else{
758
760
constresult=ToolUtils.tryFromToolUse(toolUse)
@@ -844,6 +846,7 @@ export class ChatController {
844
846
contextLengths: {
845
847
...defaultContextLengths,
846
848
},
849
+
skipHistoryRecord: shouldSkipHistory,
847
850
},
848
851
triggerID
849
852
)
@@ -1120,9 +1123,6 @@ export class ChatController {
0 commit comments