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

Đang mở
#8,304 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

@llalitkumarrr đang làm issue này rồi.

Từ ngày 23/11/2026.

  • #8306 của @prassu017 — đang mở
  • #8309 của @utkarshpatwa393-sys — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
15/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
ai-infra-agents

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
22.3k
Fork
4.4k
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của google/adk-python

Tất cả issue của google/adk-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.