Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-langgraph for 
openSUSE:Factory checked in at 2026-11-16 09:08:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-langgraph (Old)
 and      /work/SRC/openSUSE:Factory/.python-langgraph.new.1251 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-langgraph"

Mon Nov 16 09:08:00 2026 rev:17 rq:1397534 version:1.2.22

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-langgraph/python-langgraph.changes        
2026-11-13 18:38:15.739743911 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-langgraph.new.1251/python-langgraph.changes  
    2026-11-16 09:13:27.098328909 +0100
@@ -1,0 +2,14 @@
+Sat Nov 14 07:43:30 UTC 2026 - Martin Pluskal <[email protected]>
+
+- Update to 1.2.22:
+  * Stream a child graph running on its own thread to a caller
+    streaming with subgraphs=True again, as before 1.2.19
+  * Skip message conversion in add_messages for plain messages
+  * Filter pending writes to the given tasks before reading
+    their statuses
+  * Match update keys against a set on wide states
+  * Check only failed futures for the runner stop condition
+  * Find untracked and delta channels once per run
+  * Spec-cleaner: use %{python_files} macro form
+
+-------------------------------------------------------------------

Old:
----
  langgraph-1.2.21.tar.gz

New:
----
  langgraph-1.2.22.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-langgraph.spec ++++++
--- /var/tmp/diff_new_pack.2MqqeX/_old  2026-11-16 09:13:27.730355407 +0100
+++ /var/tmp/diff_new_pack.2MqqeX/_new  2026-11-16 09:13:27.732355491 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           python-langgraph
-Version:        1.2.21
+Version:        1.2.22
 Release:        0
 Summary:        Library for building stateful, multi-actor applications with 
LLMs
 License:        MIT
@@ -74,7 +74,7 @@
 # langgraph-checkpoint-sqlite, not packaged for Factory) plus psycopg and
 # redis, so pytest collection fails before any offline unit test executes.
 
-%files %python_files
+%files %{python_files}
 %doc README.md
 %license LICENSE
 %dir %{python_sitelib}/langgraph

++++++ langgraph-1.2.21.tar.gz -> langgraph-1.2.22.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langgraph-1.2.21/PKG-INFO 
new/langgraph-1.2.22/PKG-INFO
--- old/langgraph-1.2.21/PKG-INFO       2020-02-02 01:00:00.000000000 +0100
+++ new/langgraph-1.2.22/PKG-INFO       2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.5
 Name: langgraph
-Version: 1.2.21
+Version: 1.2.22
 Summary: Building stateful, multi-actor applications with LLMs
 Project-URL: Homepage, https://docs.langchain.com/oss/python/langgraph/overview
 Project-URL: Documentation, https://reference.langchain.com/python/langgraph/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langgraph-1.2.21/langgraph/graph/message.py 
new/langgraph-1.2.22/langgraph/graph/message.py
--- old/langgraph-1.2.21/langgraph/graph/message.py     2020-02-02 
01:00:00.000000000 +0100
+++ new/langgraph-1.2.22/langgraph/graph/message.py     2020-02-02 
01:00:00.000000000 +0100
@@ -194,14 +194,8 @@
     if not isinstance(right, list):
         right = [right]  # type: ignore[assignment]
     # coerce to message
-    left = [
-        message_chunk_to_message(cast(BaseMessageChunk, m))
-        for m in convert_to_messages(left)
-    ]
-    right = [
-        message_chunk_to_message(cast(BaseMessageChunk, m))
-        for m in convert_to_messages(right)
-    ]
+    left = _coerce_to_messages(left)
+    right = _coerce_to_messages(right)
     # assign missing ids
     for m in left:
         if m.id is None:
@@ -234,7 +228,8 @@
 
             merged_by_id[m.id] = len(merged)
             merged.append(m)
-    merged = [m for m in merged if m.id not in ids_to_remove]
+    if ids_to_remove:
+        merged = [m for m in merged if m.id not in ids_to_remove]
 
     if format == "langchain-openai":
         merged = _format_messages(merged)
@@ -247,6 +242,20 @@
     return merged
 
 
+def _coerce_to_messages(messages: list) -> list[Any]:
+    # Both conversions return a plain message unchanged, and a long history is
+    # all plain messages, so check the few distinct types instead of each item.
+    if all(
+        issubclass(t, BaseMessage) and not issubclass(t, BaseMessageChunk)
+        for t in set(map(type, messages))
+    ):
+        return messages
+    return [
+        message_chunk_to_message(cast(BaseMessageChunk, m))
+        for m in convert_to_messages(messages)
+    ]
+
+
 @deprecated(
     "MessageGraph is deprecated in langgraph 1.0.0, to be removed in 2.0.0. 
Please use StateGraph with a `messages` key instead.",
     category=None,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langgraph-1.2.21/langgraph/graph/state.py 
new/langgraph-1.2.22/langgraph/graph/state.py
--- old/langgraph-1.2.21/langgraph/graph/state.py       2020-02-02 
01:00:00.000000000 +0100
+++ new/langgraph-1.2.22/langgraph/graph/state.py       2020-02-02 
01:00:00.000000000 +0100
@@ -1452,6 +1452,8 @@
             output_keys = list(self.builder.channels) + [
                 k for k, v in self.builder.managed.items()
             ]
+        # for membership checks, which run on every key of every node update
+        output_key_set = frozenset(output_keys)
 
         def _get_updates(
             input: None | dict | Any,
@@ -1459,12 +1461,12 @@
             if input is None:
                 return None
             elif isinstance(input, dict):
-                return [(k, v) for k, v in input.items() if k in output_keys]
+                return [(k, v) for k, v in input.items() if k in 
output_key_set]
             elif isinstance(input, Command):
                 if input.graph == Command.PARENT:
                     return None
                 return [
-                    (k, v) for k, v in input._update_as_tuples() if k in 
output_keys
+                    (k, v) for k, v in input._update_as_tuples() if k in 
output_key_set
                 ]
             elif (
                 isinstance(input, (list, tuple))
@@ -1477,7 +1479,9 @@
                         if i.graph == Command.PARENT:
                             continue
                         updates.extend(
-                            (k, v) for k, v in i._update_as_tuples() if k in 
output_keys
+                            (k, v)
+                            for k, v in i._update_as_tuples()
+                            if k in output_key_set
                         )
                     else:
                         updates.extend(_get_updates(i) or ())
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langgraph-1.2.21/langgraph/pregel/_io.py 
new/langgraph-1.2.22/langgraph/pregel/_io.py
--- old/langgraph-1.2.21/langgraph/pregel/_io.py        2020-02-02 
01:00:00.000000000 +0100
+++ new/langgraph-1.2.22/langgraph/pregel/_io.py        2020-02-02 
01:00:00.000000000 +0100
@@ -130,35 +130,35 @@
     ]
     if not output_tasks:
         return
+    # a set: a wide state would otherwise scan every key for each write
+    output_keys = (
+        frozenset(output_channels) if not isinstance(output_channels, str) 
else None
+    )
     updated: list[tuple[str, Any]] = []
     for task, writes in output_tasks:
         rtn = next((value for chan, value in writes if chan == RETURN), 
MISSING)
         if rtn is not MISSING:
             updated.append((task.name, rtn))
-        elif isinstance(output_channels, str):
+        elif output_keys is None:
             updated.extend(
                 (task.name, value) for chan, value in writes if chan == 
output_channels
             )
-        elif any(chan in output_channels for chan, _ in writes):
+        elif any(chan in output_keys for chan, _ in writes):
             counts = Counter(chan for chan, _ in writes)
-            if any(counts[chan] > 1 for chan in output_channels):
+            if any(n > 1 for chan, n in counts.items() if chan in output_keys):
                 updated.extend(
                     (
                         task.name,
                         {chan: value},
                     )
                     for chan, value in writes
-                    if chan in output_channels
+                    if chan in output_keys
                 )
             else:
                 updated.append(
                     (
                         task.name,
-                        {
-                            chan: value
-                            for chan, value in writes
-                            if chan in output_channels
-                        },
+                        {chan: value for chan, value in writes if chan in 
output_keys},
                     )
                 )
     grouped: dict[str, Any] = {t.name: [] for t, _ in output_tasks}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langgraph-1.2.21/langgraph/pregel/_loop.py 
new/langgraph-1.2.22/langgraph/pregel/_loop.py
--- old/langgraph-1.2.21/langgraph/pregel/_loop.py      2020-02-02 
01:00:00.000000000 +0100
+++ new/langgraph-1.2.22/langgraph/pregel/_loop.py      2020-02-02 
01:00:00.000000000 +0100
@@ -358,6 +358,14 @@
         self.retry_policy = retry_policy
         self.cache_policy = cache_policy
         self.durability = durability
+        # Channel types are fixed for the run, so per-step code reads these
+        # instead of scanning every channel.
+        self._has_untracked_channels = any(
+            isinstance(spec, UntrackedValue) for spec in specs.values()
+        )
+        self._delta_channel_names = [
+            k for k, spec in specs.items() if isinstance(spec, DeltaChannel)
+        ]
         self._has_graph_lifecycle_callbacks = has_graph_lifecycle_callbacks
         self._graph_lifecycle_events = deque()
         if self.stream is not None and CONFIG_KEY_STREAM in config[CONF]:
@@ -496,9 +504,7 @@
             writes_to_save = writes
 
         # check if any writes are to an UntrackedValue channel
-        if any(
-            isinstance(channel, UntrackedValue) for channel in 
self.channels.values()
-        ):
+        if self._has_untracked_channels:
             # we do not persist untracked values in checkpoints
             writes_to_save = [
                 # sanitize UntrackedValues that are nested within Send packets
@@ -840,10 +846,12 @@
         Unfinished (failed or interrupted) tasks keep empty writes, so the
         runner re-executes them or routes them to error handlers.
         """
-        for tid, status in 
read_task_statuses(self.checkpoint_pending_writes).items():
-            if task := tasks.get(tid):
-                task.writes.extend(status.output)
-                self._reapplied_task_ids.add(tid)
+        # Filter first: this runs once per task call, and reading the status of
+        # every task that wrote would make runs with many task calls quadratic.
+        writes = (w for w in self.checkpoint_pending_writes if w[0] in tasks)
+        for tid, status in read_task_statuses(writes).items():
+            tasks[tid].writes.extend(status.output)
+            self._reapplied_task_ids.add(tid)
 
     def _resume_error_handlers_if_applicable(self) -> None:
         """On resume, schedule error handlers for tasks that failed in a prior 
run.
@@ -1300,9 +1308,7 @@
             )
             new_counters: dict[str, tuple[int, int]] = {}
             updated = self.updated_channels or set()
-            for ch_name, ch in self.channels.items():
-                if not isinstance(ch, DeltaChannel):
-                    continue
+            for ch_name in self._delta_channel_names:
                 u, s = prev_counters.get(ch_name, (0, 0))
                 s += 1
                 if ch_name in updated:
@@ -1322,7 +1328,9 @@
         # create new checkpoint
         channels_to_snapshot = (
             delta_channels_to_snapshot(
-                self.channels, new_counters, 
self.checkpoint["channel_versions"]
+                {k: self.channels[k] for k in self._delta_channel_names},
+                new_counters,
+                self.checkpoint["channel_versions"],
             )
             | self._delta_channels_forced_snapshot
             if do_checkpoint
@@ -1351,9 +1359,7 @@
         elif "counters_since_delta_snapshot" in self.checkpoint_metadata:
             del self.checkpoint_metadata["counters_since_delta_snapshot"]
         # sanitize TASK channel in the checkpoint before saving 
(durability=="exit")
-        if TASKS in self.checkpoint["channel_values"] and any(
-            isinstance(channel, UntrackedValue) for channel in 
self.channels.values()
-        ):
+        if TASKS in self.checkpoint["channel_values"] and 
self._has_untracked_channels:
             sanitized_tasks = [
                 sanitize_untracked_values_in_send(value, self.channels)
                 if isinstance(value, Send)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langgraph-1.2.21/langgraph/pregel/_runner.py 
new/langgraph-1.2.22/langgraph/pregel/_runner.py
--- old/langgraph-1.2.21/langgraph/pregel/_runner.py    2020-02-02 
01:00:00.000000000 +0100
+++ new/langgraph-1.2.22/langgraph/pregel/_runner.py    2020-02-02 
01:00:00.000000000 +0100
@@ -78,6 +78,7 @@
     should_stop: Callable[[set[F]], bool]
     counter: int
     done: set[F]
+    failed: set[F]
     lock: threading.Lock
 
     def __init__(
@@ -97,6 +98,7 @@
         self.should_stop = should_stop
         self.counter = 0
         self.done: set[F] = set()
+        self.failed: set[F] = set()
 
     def __setitem__(
         self,
@@ -123,9 +125,13 @@
             with self.lock:
                 self.done.add(fut)
                 self.counter -= 1
+                # Only a future that raised can meet the stop condition, so 
check
+                # those instead of every done future (quadratic in wide steps).
+                if not fut.cancelled() and fut.exception() is not None:
+                    self.failed.add(fut)
                 # Wake waiter when all tracked futures are done, or when 
runner-level
                 # stop condition is met (for example, a non-handled fatal 
exception).
-                if self.counter == 0 or self.should_stop(self.done):
+                if self.counter == 0 or self.should_stop(self.failed):
                     self.event.set()
 
 
@@ -234,6 +240,7 @@
                         fut: concurrent.futures.Future = 
concurrent.futures.Future()
                         fut.set_exception(exc)
                         futures.done.add(fut)
+                        futures.failed.add(fut)
                 elif reraise and id(exc) not in self._handled_exception_ids:
                     # let the caller stream this task's result before it raises
                     yield
@@ -427,6 +434,7 @@
                         fut: asyncio.Future = loop.create_future()
                         fut.set_exception(exc)
                         futures.done.add(fut)
+                        futures.failed.add(fut)
                 elif reraise and id(exc) not in self._handled_exception_ids:
                     # let the caller stream this task's result before it raises
                     yield
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langgraph-1.2.21/langgraph/pregel/main.py 
new/langgraph-1.2.22/langgraph/pregel/main.py
--- old/langgraph-1.2.21/langgraph/pregel/main.py       2020-02-02 
01:00:00.000000000 +0100
+++ new/langgraph-1.2.22/langgraph/pregel/main.py       2020-02-02 
01:00:00.000000000 +0100
@@ -2902,16 +2902,17 @@
             if CONFIG_KEY_TASK_ID not in config[CONF]:
                 # Not run as a task (a child invoked with its own thread, say),
                 # this graph's namespace starts at the root, so a caller's
-                # handler would take this graph's events for its own graph's.
+                # handler without `subgraphs` would take this graph's events
+                # for its own graph's. One with `subgraphs` asked for them.
                 callback_manager.handlers = [
                     h
                     for h in callback_manager.handlers
-                    if not _is_stream_mode_handler(h)
+                    if not _streams_only_its_graph(h)
                 ]
                 callback_manager.inheritable_handlers = [
                     h
                     for h in callback_manager.inheritable_handlers
-                    if not _is_stream_mode_handler(h)
+                    if not _streams_only_its_graph(h)
                 ]
             if "ls_integration" not in callback_manager.metadata:
                 callback_manager.add_metadata({"ls_integration": "langgraph"})
@@ -3319,16 +3320,17 @@
             if CONFIG_KEY_TASK_ID not in config[CONF]:
                 # Not run as a task (a child invoked with its own thread, say),
                 # this graph's namespace starts at the root, so a caller's
-                # handler would take this graph's events for its own graph's.
+                # handler without `subgraphs` would take this graph's events
+                # for its own graph's. One with `subgraphs` asked for them.
                 callback_manager.handlers = [
                     h
                     for h in callback_manager.handlers
-                    if not _is_stream_mode_handler(h)
+                    if not _streams_only_its_graph(h)
                 ]
                 callback_manager.inheritable_handlers = [
                     h
                     for h in callback_manager.inheritable_handlers
-                    if not _is_stream_mode_handler(h)
+                    if not _streams_only_its_graph(h)
                 ]
             if "ls_integration" not in callback_manager.metadata:
                 callback_manager.add_metadata({"ls_integration": "langgraph"})
@@ -4480,8 +4482,11 @@
         payload["values"] = mapper(payload["values"])
 
 
-def _is_stream_mode_handler(handler: object) -> bool:
-    return isinstance(handler, (StreamMessagesHandler, StreamToolCallHandler))
+def _streams_only_its_graph(handler: object) -> bool:
+    return (
+        isinstance(handler, (StreamMessagesHandler, StreamToolCallHandler))
+        and not handler.subgraphs
+    )
 
 
 def _resolve_parent_ns(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langgraph-1.2.21/pyproject.toml 
new/langgraph-1.2.22/pyproject.toml
--- old/langgraph-1.2.21/pyproject.toml 2020-02-02 01:00:00.000000000 +0100
+++ new/langgraph-1.2.22/pyproject.toml 2020-02-02 01:00:00.000000000 +0100
@@ -4,7 +4,7 @@
 
 [project]
 name = "langgraph"
-version = "1.2.21"
+version = "1.2.22"
 description = "Building stateful, multi-actor applications with LLMs"
 authors = []
 requires-python = ">=3.10"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langgraph-1.2.21/tests/test_messages_state.py 
new/langgraph-1.2.22/tests/test_messages_state.py
--- old/langgraph-1.2.21/tests/test_messages_state.py   2020-02-02 
01:00:00.000000000 +0100
+++ new/langgraph-1.2.22/tests/test_messages_state.py   2020-02-02 
01:00:00.000000000 +0100
@@ -5,6 +5,7 @@
 import pytest
 from langchain_core.messages import (
     AIMessage,
+    AIMessageChunk,
     AnyMessage,
     HumanMessage,
     RemoveMessage,
@@ -168,6 +169,41 @@
     assert result == expected_result
 
 
+def test_message_likes_and_chunks_are_converted_on_both_sides():
+    left = [
+        HumanMessage(content="Hello", id="1"),
+        {"role": "assistant", "content": "Hi", "id": "2"},
+    ]
+    right = [AIMessageChunk(content="chunk", id="3"), ("user", "Thanks")]
+    result = add_messages(left, right)
+    assert [type(m) for m in result] == [
+        HumanMessage,
+        AIMessage,
+        AIMessage,
+        HumanMessage,
+    ]
+    assert result[:3] == [
+        HumanMessage(content="Hello", id="1"),
+        AIMessage(content="Hi", id="2"),
+        AIMessage(content="chunk", id="3"),
+    ]
+    assert result[3].content == "Thanks"
+
+
+def test_chunk_only_lists_are_converted():
+    left = [AIMessageChunk(content="a", id="1")]
+    right = [AIMessageChunk(content="b", id="2")]
+    result = add_messages(left, right)
+    assert [type(m) for m in result] == [AIMessage, AIMessage]
+
+
+def test_result_is_a_new_list():
+    left = [HumanMessage(content="Hello", id="1")]
+    result = add_messages(left, [])
+    assert result == left
+    assert result is not left
+
+
 def test_delete_all():
     left = [
         HumanMessage(content="Hello", id="1"),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langgraph-1.2.21/tests/test_runner_futures.py 
new/langgraph-1.2.22/tests/test_runner_futures.py
--- old/langgraph-1.2.21/tests/test_runner_futures.py   1970-01-01 
01:00:00.000000000 +0100
+++ new/langgraph-1.2.22/tests/test_runner_futures.py   2020-02-02 
01:00:00.000000000 +0100
@@ -0,0 +1,50 @@
+import concurrent.futures
+import threading
+import weakref
+from functools import partial
+
+from langgraph.pregel._runner import FuturesDict, _should_stop_others
+
+
+def _on_done(task: object, exc: BaseException | None) -> None:
+    pass
+
+
+def _futures(handled_exception_ids: set[int]) -> FuturesDict:
+    return FuturesDict(
+        event=threading.Event(),
+        callback=weakref.ref(_on_done),
+        should_stop=partial(
+            _should_stop_others, handled_exception_ids=handled_exception_ids
+        ),
+        future_type=concurrent.futures.Future,
+    )
+
+
+def test_failed_task_wakes_waiter_before_others_finish() -> None:
+    futures = _futures(set())
+    ok, bad, pending = (concurrent.futures.Future() for _ in range(3))
+    for fut in (ok, bad, pending):
+        futures[fut] = object()
+
+    ok.set_result(None)
+    assert not futures.event.is_set()
+
+    bad.set_exception(ValueError("boom"))
+    assert futures.event.is_set()
+
+
+def test_handled_failure_waits_for_all_tasks() -> None:
+    handled: set[int] = set()
+    futures = _futures(handled)
+    bad, pending = (concurrent.futures.Future() for _ in range(2))
+    for fut in (bad, pending):
+        futures[fut] = object()
+
+    exc = ValueError("handled by an error handler")
+    handled.add(id(exc))
+    bad.set_exception(exc)
+    assert not futures.event.is_set()
+
+    pending.set_result(None)
+    assert futures.event.is_set()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langgraph-1.2.21/tests/test_stream_namespaces.py 
new/langgraph-1.2.22/tests/test_stream_namespaces.py
--- old/langgraph-1.2.21/tests/test_stream_namespaces.py        2020-02-02 
01:00:00.000000000 +0100
+++ new/langgraph-1.2.22/tests/test_stream_namespaces.py        2020-02-02 
01:00:00.000000000 +0100
@@ -73,6 +73,15 @@
     ids=["no_config", "own_thread", "caller_thread"],
 )
 
+_OWN_THREAD_CONFIGS = pytest.mark.parametrize(
+    "child_config",
+    [
+        {"configurable": {"thread_id": "child"}},
+        {"configurable": {"thread_id": "parent"}},
+    ],
+    ids=["own_thread", "caller_thread"],
+)
+
 
 _TASK_CALLERS = pytest.mark.parametrize(
     "nested", [False, True], ids=["from_entrypoint", "from_task_in_task"]
@@ -202,15 +211,8 @@
     assert len(received) == len(_CHAT_AND_ECHO_EVENTS)
 
 
[email protected](
-    "child_config",
-    [
-        {"configurable": {"thread_id": "child"}},
-        {"configurable": {"thread_id": "parent"}},
-    ],
-    ids=["own_thread", "caller_thread"],
-)
-def test_child_graph_on_its_own_thread_skips_a_caller_streaming_subgraphs(
+@_OWN_THREAD_CONFIGS
+def test_child_graph_on_its_own_thread_streams_to_a_caller_streaming_subgraphs(
     child_config: dict,
 ) -> None:
     child = _one_node_graph(_chat_and_echo)
@@ -224,9 +226,32 @@
         {"configurable": {"thread_id": "parent"}},
         stream_mode=["messages", "tools"],
         subgraphs=True,
+        version="v2",
     )
 
-    assert list(parts) == []
+    assert [_summary(part) for part in parts] == _CHAT_AND_ECHO_EVENTS
+
+
+@NEEDS_CONTEXTVARS
+@_OWN_THREAD_CONFIGS
+async def 
test_child_graph_on_its_own_thread_streams_to_a_caller_streaming_subgraphs_async(
+    child_config: dict,
+) -> None:
+    child = _one_node_graph(_achat_and_echo)
+
+    async def node(state: MessagesState) -> dict:
+        await child.ainvoke({"messages": []}, child_config)
+        return {}
+
+    parts = _one_node_graph(node).astream(
+        {"messages": []},
+        {"configurable": {"thread_id": "parent"}},
+        stream_mode=["messages", "tools"],
+        subgraphs=True,
+        version="v2",
+    )
+
+    assert [_summary(part) async for part in parts] == _CHAT_AND_ECHO_EVENTS
 
 
 def test_node_gets_the_events_of_every_subgraph_it_streams() -> None:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langgraph-1.2.21/uv.lock new/langgraph-1.2.22/uv.lock
--- old/langgraph-1.2.21/uv.lock        2020-02-02 01:00:00.000000000 +0100
+++ new/langgraph-1.2.22/uv.lock        2020-02-02 01:00:00.000000000 +0100
@@ -1440,7 +1440,7 @@
 
 [[package]]
 name = "langgraph"
-version = "1.2.21"
+version = "1.2.22"
 source = { editable = "." }
 dependencies = [
     { name = "langchain-core" },
@@ -1629,7 +1629,7 @@
 
 [[package]]
 name = "langgraph-checkpoint"
-version = "4.3.1"
+version = "4.3.2"
 source = { editable = "../checkpoint" }
 dependencies = [
     { name = "langchain-core" },
@@ -1677,7 +1677,7 @@
 
 [[package]]
 name = "langgraph-checkpoint-postgres"
-version = "3.2.0"
+version = "3.2.1"
 source = { editable = "../checkpoint-postgres" }
 dependencies = [
     { name = "langgraph-checkpoint" },
@@ -1827,7 +1827,7 @@
 
 [[package]]
 name = "langgraph-prebuilt"
-version = "1.1.1"
+version = "1.1.2"
 source = { editable = "../prebuilt" }
 dependencies = [
     { name = "langchain-core" },

Reply via email to