This commit is contained in:
John Burtt 2026-04-07 00:43:19 +00:00 committed by GitHub
commit 7e551c4be3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -314,10 +314,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")
}