You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed potential thread safety issues in the streaming messages handler by ensuring callbacks run in the main thread and simplifying message deduplication logic
Detailed Changes
langgraph.pregel.messages.StreamMessagesHandler
Added run_inline = True to ensure callbacks run in the main thread, preventing order and locking issues when streaming messages
Simplified message deduplication logic to only use message IDs instead of object identity, making the tracking mechanism more reliable