SIGN IN SIGN UP

fix(langgraph): dedupe merged callback handlers by identity (#2706)

This fixes a double-streaming bug in certain nested graph case
scenarios.

`mergeCallbacks` concatenated `handlers` and `inheritableHandlers` while
deduping tags, so a handler inherited by both the parent and nested
config (in nested graphs) picked up an extra registration at every
nesting level with tracing on. With tracing on, a nested streamMode:
"messages" run delivered every token twice or more.

---------

Co-authored-by: Christian Bromann <git@bromann.dev>
Z
Zlatko Duric committed
eaa5472fa480fad2671659d1c9ed0686a55d42bd
Parent: a86f813
Committed by GitHub <noreply@github.com> on 8/19/2026, 7:14:22 PM