agent_signal

Guide

Google ADK for TypeScript: answering one parallel approval re-asks the other, and the run never finishes

By Agent Signal · Published 2026-11-28 · Updated 2026-11-28

Short answer

In @google/adk 2.5.0, when a Workflow waits on two RequestInput interrupts and you answer only one, the other node runs again and asks its question again (issue #1248, still open). With generated interrupt ids, each re-ask gets a new id, and answering the question your client shows re-runs the node again: 0 of 30 runs finished within 5 turns in our tests. The fix that worked without patching ADK is to hold the answers and send every pending answer in one message: 30 of 30 runs finished, and the node ran once. The same rule applies to two parallel requireConfirmation tool calls: confirming them in separate messages sent the model a request with one call unanswered in 30 of 30 runs (stub model, no Gemini call).

Your ADK workflow asks two people to approve something at the same time. Legal and finance each get a RequestInput. Finance answers first. Instead of waiting for legal, the workflow runs the legal node again and sends legal's question a second time. Legal answers the question on screen, and the node runs again and asks again. The run never finishes. This guide shows why, reproduces it, and gives a tested fix. It also covers the same pattern with two parallel tool calls behind requireConfirmation. Everything below ran on @google/adk 2.5.0 (current), with 2.4.0 for comparison, Node v24.22.1, Nov 28, 2026. The results were identical on Node 22.23.5.

Who this hits

You are affected if all of these are true:

  1. You use a Workflow in @google/adk, and two or more nodes can wait on a RequestInput at the same time. Parallel branches, ParallelWorker items and ctx.runNode children all count, according to the issue. We tested parallel branches.
  2. Your client sends each answer as soon as that person replies, so one runAsync call answers one interrupt while another is still pending.

The worst case is new RequestInput({message}) without an interruptId. Then the run can loop forever. With a fixed interruptId the run finishes, but the waiting node still runs twice.

If you use LlmAgent with two tools that have requireConfirmation, and the model calls both in one turn, see the section on parallel tool calls below.

Why it happens

This is google/adk-js#1248, opened Nov 10, 2026 and still open. On resume, the workflow skips a node only if it can be fast-forwarded or handed its answers (workflow.ts#L446-L499). Any other node with a prior run falls through to a fresh run. That includes a node whose own question nobody has answered yet. So when finance answers, legal runs again: its body runs, its side effects run, and its RequestInput is sent again.

Interrupt ids make it worse. Without an interruptId, each new ask gets a new generated id. The client shows the newest legal question, and the user answers that one. But the engine still waits for an answer to the first legal question. The issue puts it this way: "Only a reply to the first, no longer shown, legal question gets through." The newest answer doesn't match, so legal runs again, under yet another new id.

On the maintainer side, Varun-S10 (contributor) replied on Nov 11, 2026: "We have reproduced the issue" (comment). The fix PR, #1249, opened Nov 10, 2026, was open and not merged on Nov 28, 2026.

adk-python behaves differently, according to the issue. A node with unresolved interrupts runs again only if it has rerun_on_resume and at least one of its own interrupts was answered. Otherwise it stays waiting. The issue cites adk-python commit 5ee5cf8534 for this.

Reproduce it

No model and no API key. The test uses the workflow from the issue: legal and finance approve in parallel, a JoinNode collects both, and publish runs last. We added one side effect: each approval node "notifies" its approver before asking. Trimmed from common.mjs:

import {InMemoryRunner, JoinNode, RequestInput, Workflow, node} from '@google/adk';

const approval = (name, message) =>
  node(
    (ctx) => {
      runs[name]++;
      const ask = new RequestInput({message, ...(fixedIds && {interruptId: `${name}-approval`})});
      sideEffects.push(`notify ${name}`);
      return ask;
    },
    {name},
  );
const legal = approval('legal', 'Legal: approve?');
const finance = approval('finance', 'Finance: approve?');
const publish = node((_ctx, approvals) => `published ${JSON.stringify(approvals)}`, {name: 'publish'});
const wf = new Workflow({
  name: 'release',
  edges: [
    ['START', [legal, finance]],
    [[legal, finance], new JoinNode({name: 'approvals'}), publish],
  ],
});

Each answer is a functionResponse to the adk_request_input call:

const answer = (id, result = 'yes') => ({
  functionResponse: {id, name: 'adk_request_input', response: {result}},
});

repro_1248.mjs runs two cases, 30 times each, with a fresh InMemoryRunner and session per run:

We ran everything twice, as two separate 30-run passes. The ROW lines were identical in both passes, as you would expect: there is no model and nothing random. The lines below are copied from the result files:

## v2.4.0/repro_1248.mjs (adk 2.4.0)
ROW 1248a generated-ids | finished=0/30 turns=5 legalBodyRuns=5 legalAsks=5 legalReAsks=4 legalNotifies=5 errors=0
ROW 1248b fixed-ids | finished=30/30 turns=3 legalBodyRuns=2 legalAsks=2 legalReAsks=1 legalNotifies=2 errors=0
TRACE 1248a run1 t1:["Legal: approve?","Finance: approve?"] t2:["Legal: approve?"] t3:["Legal: approve?"] t4:["Legal: approve?"] t5:["Legal: approve?"]

## v2.5.0/repro_1248.mjs (adk 2.5.0)
ROW 1248a generated-ids | finished=0/30 turns=5 legalBodyRuns=5 legalAsks=5 legalReAsks=4 legalNotifies=5 errors=0
ROW 1248b fixed-ids | finished=30/30 turns=3 legalBodyRuns=2 legalAsks=2 legalReAsks=1 legalNotifies=2 errors=0
TRACE 1248a run1 t1:["Legal: approve?","Finance: approve?"] t2:["Legal: approve?"] t3:["Legal: approve?"] t4:["Legal: approve?"] t5:["Legal: approve?"]

With generated ids, no run finished within 5 turns. The legal node ran 5 times, asked 5 times and sent 5 notifications. With fixed ids, every run finished in 3 turns, but legal still ran twice, asked twice and notified twice. 2.5.0 behaved exactly like 2.4.0. The issue's own script, run as is, printed the same on both versions: legal ran 1x, 2x, 3x, it was asked again each turn, and publish never ran.

The fix

Answer every pending approval in one message. If no interrupt is left pending when the workflow resumes, no node falls through to a fresh run. When answers arrive at different times, hold them in the client, and only call runAsync once every pending ask has an answer. From fix_1248.mjs:

// The client holds answers (no runAsync call) until every pending ask has one,
// then sends them all in one message.
function bufferingClient(send, turns) {
  const held = new Map(); // interrupt id -> answer part
  return async function userAnswered(id, value) {
    held.set(id, answer(id, value));
    const pending = turns.at(-1).asks.map((a) => a.id);
    if (!pending.every((p) => held.has(p))) return false; // keep holding
    await send([...held.values()]);
    held.clear();
    return true;
  };
}

send runs one runAsync turn, and turns records the asks seen in each turn. In this workflow both questions arrive in the same turn, so turns.at(-1) holds every pending ask. If your questions arrive over several turns, track the full set of unanswered ids instead.

We tested two variants on 2.5.0: both answers sent together in one message, and finance answering first with the client holding that answer until legal replies. Copied from the result files (identical in both passes):

ROW W1 both answers in one message | finished=30/30 runAsyncCalls=2 legalBodyRuns=1 legalAsksShown=1 legalAsksRaw=1 legalNotifies=1 allNotifies=2 publishRuns=1 errors=0 publish='published {"legal":"yes","finance":"yes"}'
ROW W1 delayed (client holds 1st answer) | finished=30/30 runAsyncCalls=2 legalBodyRuns=1 legalAsksShown=1 legalAsksRaw=1 legalNotifies=1 allNotifies=2 publishRuns=1 errors=0 publish='published {"legal":"yes","finance":"yes"}'
NOTE W1 delayed (client holds 1st answer): client sent finance's answer before legal's: 0/30

Every run finished. Legal ran once, asked once and notified once. Publish ran once with both answers. In the delayed variant, the client never sent finance's answer early.

If you can't buffer: fixed id, de-dupe, idempotency key. Some clients must send each answer right away. Then do three things together:

  1. Give each RequestInput a fixed interruptId, so a re-ask carries the same id and the run can finish.
  2. De-dupe asks by id in the client, so the user doesn't see the same question twice.
  3. Guard the side effect with an idempotency key, in your own store or in session state:
const stateGuard = () => (ctx, name, id) => {
  const key = `notified:${name}:${id}`;
  if (ctx.state.get(key)) return false; // already notified
  ctx.state.set(key, true);
  return true;
};
ROW W2 fixedId+dedupe+ledger guard | finished=30/30 runAsyncCalls=3 legalBodyRuns=2 legalAsksShown=1 legalAsksRaw=2 legalNotifies=1 allNotifies=2 publishRuns=1 errors=0 publish='published {"legal":"yes","finance":"yes"}'
ROW W2 fixedId+dedupe+state guard | finished=30/30 runAsyncCalls=3 legalBodyRuns=2 legalAsksShown=1 legalAsksRaw=2 legalNotifies=1 allNotifies=2 publishRuns=1 errors=0 publish='published {"legal":"yes","finance":"yes"}'

All 30 runs finished, and the notification went out once. But the legal body still ran twice, and ADK still sent the question twice; the client just hid the second one. This is a mitigation. Anything in the node without a guard still runs twice.

What didn't work.

Stuck on an ADK approval flow? Send a minimal repro; you pay $79 only when our patch passes it.

Parallel tool calls with requireConfirmation

Upgrade first. google/adk-js#1243, opened Nov 9, 2026: the model calls two tools in one turn, one with requireConfirmation: true and one without. The ungated tool runs, but its response is never stored. After the user confirms, the next model request has two function calls and one function response. The issue quotes Gemini's reply to that shape: 400 INVALID_ARGUMENT, "Please ensure that the number of function response parts is equal to the number of function call parts of the function call turn". It was closed on Nov 10, 2026 by PR #1244, merged the same day and shipped in adk-v2.5.0 on Nov 12, 2026. adk-python fixed the same bug earlier in 67d3e49.

Our runs of the issue's scenario, 30 per version (identical in both passes):

## v2.4.0/repro_1243.mjs (adk 2.4.0)
ROW 1243 | call2-missing-response=30/30 call1-answered=30/30 list_files-runs-total=30 (per run 1) delete_file-runs-total=30 errors=0/30
## v2.5.0/repro_1243.mjs (adk 2.5.0)
ROW 1243 | call2-missing-response=0/30 call1-answered=30/30 list_files-runs-total=30 (per run 1) delete_file-runs-total=30 errors=0/30

On 2.4.0 the ungated call had no response in 30 of 30 runs. On 2.5.0, 0 of 30. If you are on 2.4.0, upgrade.

Two gated calls, confirmed separately, on 2.5.0. We also tested a case the issues don't cover. The model calls refund_a and refund_b in one turn, and both have requireConfirmation: true. The user gets two adk_request_confirmation asks. parallel_confirm.mjs tries four ways to answer them:

ROW parallel-confirm (i) confirm both in one message | A-execs=1 B-execs=1 asks-per-turn=[2,0] re-asked=0/30 model-requests=2 partial-request(some call unanswered)=0/30 last-request-answers-both=30/30 errors=0/30
ROW parallel-confirm (ii) confirm A, later confirm B | A-execs=1 B-execs=1 asks-per-turn=[2,0,0] re-asked=0/30 model-requests=3 partial-request(some call unanswered)=30/30 last-request-answers-both=30/30 errors=0/30
TRACE (ii) confirm A, later confirm B run1 answered-per-request=[["call-A"],["call-A","call-B"]]
ROW parallel-confirm (iii) confirm A + reject B in one message | A-execs=1 B-execs=0 asks-per-turn=[2,0] re-asked=0/30 model-requests=2 partial-request(some call unanswered)=0/30 last-request-answers-both=30/30 errors=0/30
ROW parallel-confirm (iv) confirm A, later reject B | A-execs=1 B-execs=0 asks-per-turn=[2,0,0] re-asked=0/30 model-requests=3 partial-request(some call unanswered)=30/30 last-request-answers-both=30/30 errors=0/30

Each tool ran at most once, and nothing was asked again. But when the user confirmed A and answered B in a later message, ADK sent the model a request where call-A had a response and call-B had none, in 30 of 30 runs. That is the shape #1243 says Gemini rejects with a 400. Be clear about what we did and didn't test: we used a stub model, which accepts anything. We did not send this request to Gemini. The 400 text above is quoted from #1243, not from our runs. When we searched on Nov 28, 2026, we found no adk-js issue for this case.

Confirming both in one message, or confirming one and rejecting the other in one message, gave clean requests in 30 of 30 runs.

The fix is the same as for workflows. Collect every pending adk_request_confirmation from the turn, map each to the tool call it guards, and answer them all together. Adapted from parallel_confirm.mjs:

import {REQUEST_CONFIRMATION_FUNCTION_CALL_NAME as CONFIRM} from '@google/adk';

const gate = {}; // tool call id -> confirmation call id
for await (const e of runner.runAsync({userId: 'u', sessionId, newMessage})) {
  for (const p of e.content?.parts ?? []) {
    if (p.functionCall?.name !== CONFIRM) continue;
    gate[p.functionCall.args.originalFunctionCall.id] = p.functionCall.id;
  }
}
const reply = (call, confirmed) => ({functionResponse: {id: gate[call], name: CONFIRM, response: {confirmed}}});

// One message with every answer:
await send([reply('call-A', true), reply('call-B', false)]);

What we didn't test

FAQ

Why does my adk-js workflow ask the same approval again after I answer a different one?

Because of issue #1248, still open on Nov 28, 2026. On resume, a node that already ran but is not handed its own answer runs again, and its RequestInput is sent again. In our tests on @google/adk 2.4.0 and 2.5.0, answering finance re-ran legal and re-asked its question in 30 of 30 runs.

Why does the run never finish with generated interrupt ids?

Each re-ask gets a new id, but the engine still waits for an answer to the first legal question, which the client no longer shows. Answering the newest ask re-runs the node again. In our tests, 0 of 30 runs finished within 5 turns, and the legal node ran and notified 5 times.

Does upgrading to @google/adk 2.5.0 fix it?

No. 2.5.0 behaved exactly like 2.4.0 in both 30-run passes. The fix PR #1249 was open and not merged as of Nov 28, 2026. 2.5.0 does fix #1243, the lost response of an ungated parallel tool, so upgrade for that.

Is a fixed interruptId enough?

It makes the run finish: 30 of 30 runs in 3 turns. But the waiting node still ran twice, asked twice and sent its notification twice. Add client-side de-duplication by id and an idempotency key on the side effect, or better, send all pending answers in one message.

How do I answer two approvals that arrive at different times?

Hold the first answer in the client and don't call runAsync until every pending ask has an answer, then send them all in one message. In our tests this finished 30 of 30 runs, the legal node ran once, and the notification went out once.

Can I confirm two parallel requireConfirmation tool calls one at a time?

In our 2.5.0 tests it sent the model a request with the other call unanswered in 30 of 30 runs. Our stub model accepted it. Issue #1243 quotes Gemini rejecting this shape with 400 INVALID_ARGUMENT; we did not send it to Gemini. Confirming or rejecting both in one message gave clean requests in 30 of 30 runs.

Related

Stuck on an ADK approval flow? Send a minimal repro; you pay $79 only when our patch passes it.

Free starter pack

The approval-flow starter pack

Tested human-in-the-loop approval starters for LangGraph, OpenAI Agents SDK, Vercel AI SDK and Google ADK, plus the Agent Signal newsletter. Free.

Get the Agent Signal newsletter