Skip to content

feat(agent): enable opt-in parallel tool execution (#2716) - #19

Merged
sakitam-fdd merged 2 commits into
mainfrom
upstream-clean-2716-20260821
Aug 21, 2026
Merged

feat(agent): enable opt-in parallel tool execution (#2716)#19
sakitam-fdd merged 2 commits into
mainfrom
upstream-clean-2716-20260821

Conversation

@sakitam-fdd

Copy link
Copy Markdown
Owner

Scope

Port Tencent#2716 onto current main.

The Agent engine already implements parallel tool execution, but CustomAgentConfig never propagated the flag into runtime AgentConfig. This adds the missing opt-in bridge and tests.

  • Default remains false, preserving existing sequential behavior.
  • Only explicitly configured agents enable parallel tool calls.
  • Effective diff is limited to 3 files: 1 config field, 1 runtime mapping, and focused tests.

No schema migration and no default behavior change.

hjxccc and others added 2 commits August 15, 2026 22:15
AgentEngine.executeToolCalls already branches to executeToolCallsParallel
when AgentConfig.ParallelToolCalls is set, and that branch is fully
implemented (errgroup, ordered result collection, best-effort siblings).
But nothing ever set the flag: buildAgentConfig copies CustomAgentConfig
into the runtime AgentConfig field by field, and this field was missing
from both structs' bridge. The gate therefore always read the zero value,
making executeToolCallsParallel unreachable for every custom agent.

Add ParallelToolCalls to CustomAgentConfig and map it in buildAgentConfig.

Defaults to false: tools are not required to be side-effect free, so
agents saved before this option existed must keep running their tools
sequentially. Enabling concurrency for them silently would be a behavior
change rather than a fix.
Port Tencent#2716 onto the current fork staging branch using GitHub's three-way merge.
@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a82a0f6c-3784-47c5-a90c-8a95f7fad212


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sakitam-fdd
sakitam-fdd marked this pull request as ready for review August 21, 2026 08:10
@sakitam-fdd
sakitam-fdd merged commit e6040f8 into main Aug 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants