Skip to content

tmp: stage upstream #2716 custom-agent parallel tool calls - #18

Merged
sakitam-fdd merged 1 commit into
sakitam-fdd:upstream-clean-2716-20260821from
hjxccc:pr/custom-agent-parallel-tool-calls
Aug 21, 2026
Merged

tmp: stage upstream #2716 custom-agent parallel tool calls#18
sakitam-fdd merged 1 commit into
sakitam-fdd:upstream-clean-2716-20260821from
hjxccc:pr/custom-agent-parallel-tool-calls

Conversation

@sakitam-fdd

Copy link
Copy Markdown
Owner

Temporary staging PR for Tencent#2716. It bridges the existing CustomAgent config into the already-implemented runtime parallel tool-call path, defaulting to false. This targets a current-main-derived staging branch for three-way validation.

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.
@coderabbitai

coderabbitai Bot commented Aug 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 36e411c1-7eb0-4622-a4fa-24b6799b6ecc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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:09
@sakitam-fdd
sakitam-fdd merged commit 8fe913d into sakitam-fdd:upstream-clean-2716-20260821 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