mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-27 12:04:58 +02:00
- Pull the two-shape duck-typing out of `_record_invocation_metadata` into a module-level `_extract_per_call_args` helper so the recording method is a clean three-step flow (validate task_id, parse shape, mine fields). - Pop `_invocation_metadata` entries when consumed in `_handle_task_start` to prevent unbounded per-stream-call growth on long subagent runs. - Fix stale `_on_started` parameter name in `_TasksLifecycleBase` class docstring (was `tool_call_id`, now `invocation_metadata`). - Add regression test `test_parallel_dispatches_attributed_to_correct_parent` exercising the actual bug the trigger_call_id join defends against: two parents with identical subagent_type but distinct descriptions must each get their own cause attributed via trigger_call_id.