fix: prevent duplicated tool call rendering in parallel execution - #10995
fix: prevent duplicated tool call rendering in parallel execution#10995daniel-lxs wants to merge 1 commit into
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. |
ghost
left a comment
There was a problem hiding this comment.
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