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:
Roo Code 2026-01-02 16:49:21 +00:00
parent 586cf47fb2
commit 1e879d10b4

View file

@ -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)
}