-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Bring back parallel tool calls #10832
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?
Conversation
Review complete after merge from main. No issues found. The merge correctly preserved the parallel tool calls experimental feature:
The implementation follows existing patterns and is consistent with existing tests. Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
|
@roomote please resolve the conflicts against main |
Resolved merge conflicts against main. All local checks passed. |
Resolved conflicts: - src/core/assistant-message/presentAssistantMessage.ts: Keep new nativeArgs validation and add experiment check - src/core/task/Task.ts: Keep shouldIncludeTools and use experiment-based parallelToolCallsEnabled
|
🚀 Preview deployed! Your changes have been deployed to Vercel: Preview URL: https://roo-code-website-eofykw4gc-roo-code.vercel.app This preview will be updated automatically when you push new commits to this PR. |
Review complete. Found 1 issue to address.
The changes in Task.ts correctly enable the Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
| // Check experimental setting for multiple native tool calls | ||
| const isMultipleNativeToolCallsEnabled = experiments.isEnabled( | ||
| state?.experiments ?? {}, | ||
| EXPERIMENT_IDS.MULTIPLE_NATIVE_TOOL_CALLS, | ||
| ) |
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 variable isMultipleNativeToolCallsEnabled is declared here but never used anywhere in this function. This appears to be dead code. The parallel tool call behavior is controlled by parallelToolCalls in Task.ts (which is passed to the API metadata), but this variable in presentAssistantMessage.ts doesn't modify any behavior - the didAlreadyUseTool check at line 436 will still reject all but the first tool even when this experiment is enabled. If this variable was intended to control execution of multiple tools, the implementation appears incomplete. Consider removing this dead code.
Fix it with Roo Code or mention @roomote and request a fix.
Important
Re-enable parallel tool calls by checking the
MULTIPLE_NATIVE_TOOL_CALLSexperiment inpresentAssistantMessage.tsandTask.ts, and updateExperimentalSettings.tsxto display this setting.MULTIPLE_NATIVE_TOOL_CALLSexperiment inpresentAssistantMessage()inpresentAssistantMessage.tsandTaskclass inTask.ts.MULTIPLE_NATIVE_TOOL_CALLSinExperimentalSettings.tsxto display the setting in the UI.This description was created by
for 72fdff7. You can customize this summary. It will automatically update as commits are pushed.