RemoteA2aAgent defaults to rerun_on_resume=False in transfer mode, silently skipping HITL/auth resume

オープン
#8,304 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

@llalitkumarrr がすでに取り組んでいます。

2026年11月23日 から。

  • #8306 @prassu017 による — オープン
  • #8309 @utkarshpatwa393-sys による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
15/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python

調査の方向性

Start with the rerun_on_resume default in google/adk/workflow/utils/_workflow_graph_utils.py (around lines 134-149) and the skip branch in google/adk/workflow/utils/_replay_interceptor.py (around lines 155-165). Check open PR #8306 first, since it already targets this fix. Done means a resumed RemoteA2aAgent in default transfer mode sends the resume request over A2A and the confirmed tool runs, with a test covering that path.

索引モデルが issue の本文から書いたものです。

説明

a2a request clarification
Environment
  • google-adk==2.15.0
  • a2a-sdk==0.3.26
  • Python 3.12
Problem

When a parent LlmAgent delegates via sub_agents=[RemoteA2aAgent(...)] in default transfer mode (mode=None), resuming an interrupted A2A task (input-required from require_confirmation=True / LongRunningFunctionTool, or auth-required from adk_request_credential) never sends the resume request over HTTP to the remote A2A agent.

Runner compiles an LlmAgent with sub_agents into a workflow graph. In google/adk/workflow/utils/_workflow_graph_utils.py (lines 134–149):

  • is_remote_a2a_task is only True when node_like.mode == AgentMode.TASK.
  • Line 146 checks if isinstance(node_like, LlmAgent) or is_remote_a2a_task: to default rerun_on_resume=True.
  • RemoteA2aAgent in default transfer mode (mode=None) matches neither branch and inherits BaseNode.rerun_on_resume = False (google/adk/workflow/_base_node.py:69).

On resume, google/adk/workflow/utils/_replay_interceptor.py (lines 155–165) hits if not node.rerun_on_resume: and fast-forwards recovered.resolved_responses without invoking RemoteA2aAgent. Zero JSON-RPC calls are sent to the peer, and the turn ends silently with no remote execution.

Minimal Reproduction
  1. Expose a remote ADK agent with to_a2a() containing a tool gated by FunctionTool(fn, require_confirmation=True) or LongRunningFunctionTool.
  2. Attach RemoteA2aAgent(name="remote_peer", agent_card=..., use_legacy=False) (default mode=None) under a root LlmAgent(sub_agents=[remote_peer]).
  3. Send a prompt triggering that tool via Runner.run_async(...) -> emits adk_request_confirmation (input-required).
  4. Send the matching FunctionResponse(name="adk_request_confirmation", response={"confirmed": True}) in the next Runner.run_async(...) call.
  5. Observed: RemoteA2aAgent is skipped by _replay_interceptor.py:160; no HTTP request hits the remote A2A server and the tool never executes.
Workaround

Explicitly pass rerun_on_resume=True when instantiating RemoteA2aAgent(...) in transfer mode. With rerun_on_resume=True, _replay_interceptor.py re-runs the node and dispatches the resume request over A2A.

Suggested Fix in ADK

In google/adk/workflow/utils/_workflow_graph_utils.py (around lines 134–149), default rerun_on_resume=True for RemoteA2aAgent in transfer/chat mode as well (i.e. isinstance(node_like, _remote_a2a_agent_type) rather than only mode == AgentMode.TASK), or set rerun_on_resume: bool = True on RemoteA2aAgent.

主要言語
Python
スター
22.3k
フォーク
4.4k
平均マージ
1日 2時間
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

google/adk-python のほかの issue

google/adk-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。