Skip to content

0.2.26

Choose a tag to compare

@github-actions github-actions released this 24 Sep 00:57

langgraph 0.2.26

Summary of Changes

  • 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