mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: prevent infinite loop when attempt_completion succeeds (#9325)
This commit is contained in:
parent
3091506942
commit
e742511d90
1 changed files with 1 additions and 1 deletions
|
|
@ -83,10 +83,10 @@ export class AttemptCompletionTool extends BaseTool<"attempt_completion"> {
|
|||
const { response, text, images } = await task.ask("completion_result", "", false)
|
||||
|
||||
if (response === "yesButtonClicked") {
|
||||
pushToolResult("")
|
||||
return
|
||||
}
|
||||
|
||||
// User provided feedback - push tool result to continue the conversation
|
||||
await task.say("user_feedback", text ?? "", images)
|
||||
|
||||
const feedbackText = `The user has provided feedback on the results. Consider their input to continue the task, and then attempt completion again.\n<feedback>\n${text}\n</feedback>`
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue