RemoteA2aAgent defaults to rerun_on_resume=False in transfer mode, silently skipping HITL/auth resume
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.
Đá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ả
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.
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của google/adk-python
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
google/adk-python#8360 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
google/adk-python#8359 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Can pin to litellm version be changed?Có thể đã có người làm @llalitkumarrr đã nhận 10 ngày trước. Đang mởmodels
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
google/adk-python#8129 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
OpenAPI tools ignore operation- and path-level server overridesCó thể đã có người làm @sanketpatil06 đã nhận 14 ngày trước. Đang mởtools
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
google/adk-python#8064 · 4 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Two docstrings in openapi_tool document parameters the signatures do not acceptCó thể đã có người làm @surajksharma07 đã nhận 17 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
google/adk-python#8024 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của google/adk-python
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
vllm-project/vllm#70030 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
TigreGotico/tugaphone#408 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
gke-labs/kube-agents#7308 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
t: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 3 ngày
-
chore
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
lugassawan/swe-workbench#841 ·