RemoteA2aAgent defaults to rerun_on_resume=False in transfer mode, silently skipping HITL/auth resume
メンテナーはふだん 3 日以内に返信
@llalitkumarrr がすでに取り組んでいます。
2026年11月23日 から。
評価
- 難易度
- 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 の本文から書いたものです。
説明
Environment
google-adk==2.15.0a2a-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_taskis onlyTruewhennode_like.mode == AgentMode.TASK.- Line 146 checks
if isinstance(node_like, LlmAgent) or is_remote_a2a_task:to defaultrerun_on_resume=True. RemoteA2aAgentin default transfer mode (mode=None) matches neither branch and inheritsBaseNode.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
- Expose a remote ADK agent with
to_a2a()containing a tool gated byFunctionTool(fn, require_confirmation=True)orLongRunningFunctionTool. - Attach
RemoteA2aAgent(name="remote_peer", agent_card=..., use_legacy=False)(defaultmode=None) under a rootLlmAgent(sub_agents=[remote_peer]). - Send a prompt triggering that tool via
Runner.run_async(...)-> emitsadk_request_confirmation(input-required). - Send the matching
FunctionResponse(name="adk_request_confirmation", response={"confirmed": True})in the nextRunner.run_async(...)call. - Observed:
RemoteA2aAgentis 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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google/adk-python のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
google/adk-python#8360 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
google/adk-python#8359 ·
メンテナーはふだん 3 日以内に返信
-
Can pin to litellm version be changed?対応中かも @llalitkumarrr が 10 日前に担当しました。 オープンmodels
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
google/adk-python#8129 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
OpenAPI tools ignore operation- and path-level server overrides対応中かも @sanketpatil06 が 14 日前に担当しました。 オープンtools
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
google/adk-python#8064 · コメント 4 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
Two docstrings in openapi_tool document parameters the signatures do not accept対応中かも @surajksharma07 が 17 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
google/adk-python#8024 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
google/adk-python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
vllm-project/vllm#70030 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
TigreGotico/tugaphone#408 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
gke-labs/kube-agents#7308 ·
メンテナーはふだん 1 日以内に返信
-
t: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 3 日以内に返信
-
chore
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
lugassawan/swe-workbench#841 ·