Skip to content

Commit 7d76e60

Browse files
committed
fix for conflicts
1 parent 239b19a commit 7d76e60

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ export class ChatController {
759759
const chatStream = new ChatStream(this.messenger, tabID, triggerID, toolUse, {
760760
requiresAcceptance: false,
761761
})
762-
762+
763763
if (tool.type === ToolType.FsWrite && toolUse.toolUseId) {
764764
const backup = await tool.tool.getBackup()
765765
session.setFsWriteBackup(toolUse.toolUseId, backup)
@@ -771,7 +771,11 @@ export class ChatController {
771771
return
772772
}
773773

774-
const output = await ToolUtils.invoke(tool, chatStream, cancellationToken)
774+
const output = await ToolUtils.invoke(
775+
tool,
776+
chatStream,
777+
ConversationTracker.getInstance().getTokenForTrigger(triggerID)
778+
)
775779
ToolUtils.validateOutput(output)
776780

777781
toolResults.push({

packages/core/src/codewhispererChat/tools/chatStream.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { ToolUse } from '@amzn/codewhisperer-streaming'
1010
import { CommandValidation } from './executeBash'
1111
import { Change } from 'diff'
1212
import { ConversationTracker } from '../storages/conversationTracker'
13-
import { ChatSession } from '../clients/chat/v0/chat'
1413

1514
/**
1615
* A writable stream that feeds each chunk/line to the chat UI.

0 commit comments

Comments
 (0)