Skip to content

parallelagent: escalate from a sub-agent does not stop the other branches #1784

Description

@anzal1

When a direct sub-agent of a ParallelAgent yields an event with Actions.Escalate set (for example from exit_loop), the parallel agent keeps running the other branches to completion and keeps yielding their events (agent/workflowagents/parallelagent/agent.go, the results loop never checks Escalate).

adk-python stops and cancels the siblings after yielding that event (agents/parallel_agent.py, _asks_this_agent_to_exit), asserted by test_run_async_short_circuits_other_agents_on_escalate_action in tests/unittests/agents/test_parallel_agent.py.

Fix with regression tests: #1781


Written with the help of an agent (Claude Code, claude-opus-5-5).

Activity

  1. indurireddy-TF commented on Oct 15, 2026

    @indurireddy-TF
    Contributor

    Hi @anzal1 Thank you for raising this issue. We verified the code and confirmed that ParallelAgent was letting sibling branches run to completion after an escalation. We also verified parity with adk-python's _asks_this_agent_to_exit logic. We will review the linked PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions