mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-19 00:01:19 +00:00
fix: auto-continue command execution when auto-approved
When command_output ask is auto-approved (e.g., in voice mode or via non-blocking ask), the process.continue() was only called when response was "messageResponse". This meant auto-approval with "yesButtonClicked" would not actually continue the command execution. Now process.continue() is called for any response type, ensuring auto-approval works correctly.
This commit is contained in:
parent
4647d0f3c5
commit
a281918c59
1 changed files with 4 additions and 1 deletions
|
|
@ -248,10 +248,13 @@ export async function executeCommandInTerminal(
|
|||
const { response, text, images } = await task.ask("command_output", "")
|
||||
runInBackground = true
|
||||
|
||||
// Handle both user clicking "Continue While Running" (yesButtonClicked)
|
||||
// and user providing a message (messageResponse)
|
||||
if (response === "messageResponse") {
|
||||
message = { text, images }
|
||||
process.continue()
|
||||
}
|
||||
// Always continue the process when user responds
|
||||
process.continue()
|
||||
} catch (_error) {
|
||||
// Silently handle ask errors (e.g., "Current ask promise was ignored")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue