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

Aberta
#8,304 2 comentários 0 reações 1 responsável Ver no GitHub

Mantenedores costumam responder em até 3 dias

@llalitkumarrr já está trabalhando nisso.

Desde 23/11/2026.

  • #8306 de @prassu017 — aberto
  • #8309 de @utkarshpatwa393-sys — aberto

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
15/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Estagnada
Stack de tecnologia
python
Domínio
ai-infra-agents

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Python
Estrelas
22.3k
Forks
4.4k
Merge médio
1d 2h
PRs com merge (30d)
6

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de google/adk-python

Todas as issues de google/adk-python

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.