Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -928,13 +928,24 @@ export class ChatController {
case 'reject-shell-command':
case 'reject-tool-use':
await this.rejectShellCommand(message)
await this.processToolUseMessage(message)
if (message.tabID) {
await this.sendCommandRejectMessage(message.tabID)
}
if (message.triggerId) {
ConversationTracker.getInstance().markTriggerCompleted(message.triggerId)
}
break
default:
getLogger().warn(`Unhandled action: ${message.action.id}`)
}
}

private async sendCommandRejectMessage(tabID: string) {
const session = this.sessionStorage.getSession(tabID)
session.setAgenticLoopInProgress(false)
this.messenger.sendDirectiveMessage(tabID, '', 'Command Rejected')
}

private async restoreBackup(message: CustomFormActionMessage) {
const tabID = message.tabID
const toolUseId = message.action.formItemValues?.toolUseId
Expand Down