Skip to content

Commit 8ac0127

Browse files
committed
enble use input after user reject execute command
1 parent d637201 commit 8ac0127

File tree

1 file changed

+2
-0
lines changed
  • packages/core/src/codewhispererChat/controllers/chat

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,8 @@ export class ChatController {
894894
currentToolUse.name === ToolType.ListDirectory)
895895
) {
896896
session.toolUseWithError.error = new Error('Tool use was rejected by the user.')
897+
session.setToolUseWithError(undefined)
898+
this.messenger.sendAsyncEventProgress(message.tabID!, false, undefined)
897899
} else {
898900
getLogger().error(
899901
`toolUse name: ${currentToolUse!.name} of toolUseWithError in the stored session doesn't match when click shell command reject button.`

0 commit comments

Comments
 (0)