mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-08 03:07:53 +00:00
fix: Process queued messages after task completion
- Add processQueuedMessages() call after completion_result is accepted - Add processQueuedMessages() call after user provides feedback - Ensures follow-up messages from Linear/Slack are processed correctly - Fixes ROO-365: Linear agent hanging on follow-up messages after completion
This commit is contained in:
parent
586cf47fb2
commit
1e879d10b4
1 changed files with 8 additions and 3 deletions
|
|
@ -141,16 +141,21 @@ export class AttemptCompletionTool extends BaseTool<"attempt_completion"> {
|
|||
}
|
||||
|
||||
const { response, text, images } = await task.ask("completion_result", "", false)
|
||||
|
||||
|
||||
if (response === "yesButtonClicked") {
|
||||
// Process any queued messages after task completion is accepted
|
||||
task.processQueuedMessages()
|
||||
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>`
|
||||
pushToolResult(formatResponse.toolResult(feedbackText, images))
|
||||
|
||||
// Process any queued messages after feedback is provided
|
||||
task.processQueuedMessages()
|
||||
} catch (error) {
|
||||
await handleError("inspecting site", error as Error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue