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

Ouverte
#8,304 2 commentaires 0 réactions 1 personne assignée Voir sur GitHub

Les mainteneurs répondent en général sous 3 jours

@llalitkumarrr y travaille déjà.

Depuis le 23/11/2026.

  • #8306 par @prassu017 — ouverte
  • #8309 par @utkarshpatwa393-sys — ouverte

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
15/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
À l'abandon
Stack technique
python
Domaine
ai-infra-agents

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
Python
Étoiles
22.3k
Forks
4.4k
Merge moyen
1 j 2 h
PR mergées (30 j)
6

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de google/adk-python

Toutes les issues de google/adk-python

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.