Skip to content

Commit 29bc7d4

Browse files
committed
Addressing comments
1 parent d5c2e8d commit 29bc7d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/core/src/codewhispererChat/controllers/chat/controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

packages/core/src/codewhispererChat/controllers/chat/messenger/messenger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)