Files
langgraph/libs
Nick Hollon 837e1ba6d2 extract per-call args helper, evict invocation cache after consumption
- 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.
2026-05-08 09:37:23 -04:00
..
2026-05-07 17:29:13 +01:00