File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/core/src/codewhispererChat/controllers/chat Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -753,7 +753,7 @@ export class ChatController {
753753 await fs . mkdir ( resultArtifactsDir )
754754 const tempFilePath = path . join (
755755 resultArtifactsDir ,
756- `temp-${ path . basename ( ( session . toolUse ?. input as any ) . path ) } `
756+ `temp-${ path . basename ( ( session . toolUse ?. input as unknown as FsWriteParams ) . path ) } `
757757 )
758758
759759 // If we have existing filePath copy file content from existing file to temporary file.
Original file line number Diff line number Diff line change @@ -435,7 +435,7 @@ export class Messenger {
435435 requiresAcceptance = false
436436 ) {
437437 const buttons : ChatItemButton [ ] = [ ]
438- let fileList : ChatItemContent [ 'fileList' ] = { }
438+ let fileList : ChatItemContent [ 'fileList' ] = undefined
439439 if ( requiresAcceptance && toolUse ?. name === ToolType . ExecuteBash ) {
440440 buttons . push ( {
441441 id : 'confirm-tool-use' ,
@@ -483,7 +483,7 @@ export class Messenger {
483483 contextList : undefined ,
484484 canBeVoted : false ,
485485 buttons,
486- fileList : toolUse ?. name === ToolType . FsWrite ? fileList : undefined ,
486+ fileList,
487487 } ,
488488 tabID
489489 )
You can’t perform that action at this time.
0 commit comments