Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions packages/cli/src/acp/acpPeer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ class GeminiAgent implements Agent {
if (functionCalls.length > 0) {
const toolResponseParts: Part[] = [];

for (const fc of functionCalls) {
const response = await this.#runTool(
pendingSend.signal,
promptId,
fc,
);
const responses = await Promise.all(
functionCalls.map((fc) =>
this.#runTool(pendingSend.signal, promptId, fc),
),
);

for (const response of responses) {
const parts = Array.isArray(response) ? response : [response];

for (const part of parts) {
Expand Down