fix: use child task IDs in a2a_mcp workflows - #693
Open
anxkhn wants to merge 2 commits into
Open
Conversation
anxkhn
force-pushed
the
fix/a2a-mcp-child-task-id
branch
from
August 20, 2026 20:48
7890052 to
d128909
Compare
Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com>
anxkhn
force-pushed
the
fix/a2a-mcp-child-task-id
branch
from
August 20, 2026 20:52
d128909 to
079a801
Compare
…s/go/agents/deepresearch Required for Go 1.27, where x/net's classic http2 implementation is gated behind the http2legacy build tag and grpc v1.81.0 fails to compile with 'undefined: http2.TrailerPrefix'.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WorkflowNode.run_nodeforwarded the orchestrator's task ID to child agents. A2A interprets that ID as an existing task on the receiving agent, so the first child request failed withTaskNotFoundErrorbecause the child did not own that task.This change stops
OrchestratorAgentfrom assigning its task ID to graph nodes.WorkflowNode.run_nodenow omitstaskIdon the first child request, records the child-local ID returned by the stream, and reuses that ID when resuming work with the same child. The payload and task-ID extraction logic live ina2a_mcp/common/child_message.py.Regression tests cover initial requests, resumed requests, streamed child task IDs, and node attribute handling.
Testing
uv run --no-sync pytest samples/python/agents/a2a_mcp/tests/test_workflow_task_id.py --verboseAll five tests pass.