File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
server/aws-lsp-codewhisperer/src/language-server/agenticChat Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -597,11 +597,13 @@ export class AgenticChatController implements ChatHandlers {
597
597
result . data . chatResult . relatedContent . content . length > 0
598
598
? result . data ?. chatResult . relatedContent
599
599
: undefined ,
600
- toolUses : Object . keys ( result . data ?. toolUses ! ) . map ( k => ( {
601
- toolUseId : result . data ! . toolUses [ k ] . toolUseId ,
602
- name : result . data ! . toolUses [ k ] . name ,
603
- input : result . data ! . toolUses [ k ] . input ,
604
- } ) ) ,
600
+ toolUses : Object . keys ( result . data ?. toolUses ! )
601
+ . filter ( k => result . data ! . toolUses [ k ] . stop )
602
+ . map ( k => ( {
603
+ toolUseId : result . data ! . toolUses [ k ] . toolUseId ,
604
+ name : result . data ! . toolUses [ k ] . name ,
605
+ input : result . data ! . toolUses [ k ] . input ,
606
+ } ) ) ,
605
607
} )
606
608
} else {
607
609
this . #features. logging . warn ( 'No ChatResult body in response, skipping adding to history' )
You can’t perform that action at this time.
0 commit comments