-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix: prevent duplicated tool call rendering in parallel execution #10995
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix: prevent duplicated tool call rendering in parallel execution #10995
Conversation
I've reviewed this PR and found no issues. The implementation looks sound:
Note: The PR is marked as a draft with "Not yet tested" - consider adding integration testing before merging. Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
e621c39 to
d0a45a9
Compare
|
🔄 Review in Progress - View Job Summary✅ No issues found - The PR is ready for approval. Changes ReviewedThis PR fixes a race condition where the first tool in a parallel batch could be presented twice due to tools retaining Key Changes:
TODO
📋 View Job Details | Roo Code Reviewer |
|
Note: There are still concerns about the task.ask() method design being fragile when multiple asks of the same type occur in quick succession. This catch-all approach should handle the immediate race condition, but will do further testing to verify edge cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look correct. The PR properly fixes the race condition where tools could retain partial=true after finalization, and implements proper new_task isolation to prevent orphaned tools when delegation disposes the parent task. The test coverage is comprehensive.
Explicitly marks all tool_use blocks as non-partial after finalization to prevent race conditions where tools might still have partial=true. Fixes EXT-634
d0a45a9 to
6eafee9
Compare
|
Tested. LGTM |
Problem
Fixes a race condition where the first tool in a parallel batch could be presented twice due to tools retaining
partial=trueafter finalization.Changes
Testing
Related