Update src/core/Cline.ts

Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
This commit is contained in:
Mike C 2025-01-14 20:50:21 -06:00 • committed by GitHub
parent 029bf4345d
commit c2883cdab9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2054,6 +2054,11 @@ export class Cline {
await this.say("completion_result", result, undefined, false)
}
// complete command message
const didApprove = await askApproval("command", command)
if (!didApprove) {
break
}
// Execute command from attempt_completion
const [userRejected, execCommandResult] = await this.executeCommandTool(command!)
if (userRejected) {