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-23 12:24:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-langgraph (Old)
 and      /work/SRC/openSUSE:Factory/.python-langgraph.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-langgraph"

Mon Nov 23 12:24:06 2026 rev:19 rq:1399723 version:1.2.24

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-langgraph/python-langgraph.changes        
2026-11-20 14:50:39.788376799 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-langgraph.new.1340718/python-langgraph.changes
   2026-11-23 12:27:33.496196438 +0100
@@ -1,0 +2,11 @@
+Sun Nov 22 09:38:19 UTC 2026 - Martin Pluskal <[email protected]>
+
+- Update to 1.2.24:
+  * Handle REMOVE_ALL_MESSAGES in _messages_delta_reducer,
+    clearing state and earlier batch writes instead of
+    silently ignoring the sentinel
+  * Start a DeltaChannel empty from a None checkpoint like
+    MISSING, fixing a TypeError on replay when the blob
+    is stored as null
+
+-------------------------------------------------------------------

Old:
----
  langgraph-1.2.23.tar.gz

New:
----
  langgraph-1.2.24.tar.gz

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

Other differences:
------------------
++++++ python-langgraph.spec ++++++
--- /var/tmp/diff_new_pack.Cgx4HT/_old  2026-11-23 12:27:35.014260335 +0100
+++ /var/tmp/diff_new_pack.Cgx4HT/_new  2026-11-23 12:27:35.018260503 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           python-langgraph
-Version:        1.2.23
+Version:        1.2.24
 Release:        0
 Summary:        Library for building stateful, multi-actor applications with 
LLMs
 License:        MIT

++++++ langgraph-1.2.23.tar.gz -> langgraph-1.2.24.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langgraph-1.2.23/PKG-INFO 
new/langgraph-1.2.24/PKG-INFO
--- old/langgraph-1.2.23/PKG-INFO       2020-02-02 01:00:00.000000000 +0100
+++ new/langgraph-1.2.24/PKG-INFO       2020-02-02 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.5
 Name: langgraph
-Version: 1.2.23
+Version: 1.2.24
 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.23/langgraph/channels/delta.py 
new/langgraph-1.2.24/langgraph/channels/delta.py
--- old/langgraph-1.2.23/langgraph/channels/delta.py    2020-02-02 
01:00:00.000000000 +0100
+++ new/langgraph-1.2.24/langgraph/channels/delta.py    2020-02-02 
01:00:00.000000000 +0100
@@ -119,7 +119,7 @@
         """Initialize from a stored blob.
 
         Blob types:
-          * `MISSING`: start empty; caller replays writes.
+          * `MISSING` or `None`: start empty; caller replays writes.
           * `_DeltaSnapshot(value)`: restore value directly from snapshot.
           * plain value (migration from old `BinaryOperatorAggregate` blobs):
             use directly.
@@ -128,7 +128,7 @@
             self.reducer, self.typ, snapshot_frequency=self.snapshot_frequency
         )
         new.key = self.key
-        if checkpoint is MISSING:
+        if checkpoint is MISSING or checkpoint is None:
             new.value = self.typ()
         elif isinstance(checkpoint, _DeltaSnapshot):
             new.value = checkpoint.value
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langgraph-1.2.23/langgraph/graph/message.py 
new/langgraph-1.2.24/langgraph/graph/message.py
--- old/langgraph-1.2.23/langgraph/graph/message.py     2020-02-02 
01:00:00.000000000 +0100
+++ new/langgraph-1.2.24/langgraph/graph/message.py     2020-02-02 
01:00:00.000000000 +0100
@@ -25,6 +25,9 @@
 from langgraph._internal._constants import CONF, CONFIG_KEY_SEND
 from langgraph.graph.state import StateGraph
 from langgraph.pregel._messages import (
+    REMOVE_ALL_MESSAGES as REMOVE_ALL_MESSAGES,
+)
+from langgraph.pregel._messages import (
     _messages_delta_reducer as _messages_delta_reducer,
 )
 from langgraph.warnings import LangGraphDeprecatedSinceV10
@@ -38,8 +41,6 @@
 
 Messages = list[MessageLikeRepresentation] | MessageLikeRepresentation
 
-REMOVE_ALL_MESSAGES = "__remove_all__"
-
 
 def _add_messages_wrapper(func: Callable) -> Callable[[Messages, Messages], 
Messages]:
     def _add_messages(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langgraph-1.2.23/langgraph/pregel/_messages.py 
new/langgraph-1.2.24/langgraph/pregel/_messages.py
--- old/langgraph-1.2.23/langgraph/pregel/_messages.py  2020-02-02 
01:00:00.000000000 +0100
+++ new/langgraph-1.2.24/langgraph/pregel/_messages.py  2020-02-02 
01:00:00.000000000 +0100
@@ -433,21 +433,24 @@
 # Defined here rather than in `langgraph.graph.message`, which re-exports it:
 # `ensure_message_ids` has to recognize it, and importing that module from the
 # loop would be an import cycle.
+REMOVE_ALL_MESSAGES = "__remove_all__"
+
+
 def _messages_delta_reducer(
     state: list[AnyMessage], writes: list[list[AnyMessage]]
 ) -> list[AnyMessage]:
     """**Experimental.** Batch reducer for use with `DeltaChannel`.
 
     Processes all writes in one pass — dedup by ID, `RemoveMessage`
-    tombstoning — without calling `add_messages`.
+    tombstoning, `REMOVE_ALL_MESSAGES` reset — without calling `add_messages`.
 
     This reducer is batching-invariant, as required by `DeltaChannel`:
     `reducer(reducer(state, xs), ys) == reducer(state, xs + ys)`.
 
     Raw dict / string / tuple inputs are coerced to typed `BaseMessage`
     objects so that HTTP-driven graphs work without a separate coercion
-    step. This is not full `add_messages` parity — `REMOVE_ALL_MESSAGES`,
-    unknown-id `RemoveMessage` errors, missing-id UUID assignment, and
+    step. This is not full `add_messages` parity — unknown-id
+    `RemoveMessage` errors, missing-id UUID assignment, and
     `BaseMessageChunk` conversion are not handled here.
 
     Example::
@@ -478,6 +481,13 @@
         state_msgs = cast("list[AnyMessage]", convert_to_messages(state))
     msgs = cast("list[AnyMessage]", convert_to_messages(flat))
 
+    for idx in range(len(msgs) - 1, -1, -1):
+        m = msgs[idx]
+        if isinstance(m, RemoveMessage) and m.id == REMOVE_ALL_MESSAGES:
+            state_msgs = []
+            msgs = msgs[idx + 1 :]
+            break
+
     index: dict[str, int] = {
         m.id: i for i, m in enumerate(state_msgs) if m.id is not None
     }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langgraph-1.2.23/pyproject.toml 
new/langgraph-1.2.24/pyproject.toml
--- old/langgraph-1.2.23/pyproject.toml 2020-02-02 01:00:00.000000000 +0100
+++ new/langgraph-1.2.24/pyproject.toml 2020-02-02 01:00:00.000000000 +0100
@@ -4,7 +4,7 @@
 
 [project]
 name = "langgraph"
-version = "1.2.23"
+version = "1.2.24"
 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.23/tests/test_channels.py 
new/langgraph-1.2.24/tests/test_channels.py
--- old/langgraph-1.2.23/tests/test_channels.py 2020-02-02 01:00:00.000000000 
+0100
+++ new/langgraph-1.2.24/tests/test_channels.py 2020-02-02 01:00:00.000000000 
+0100
@@ -18,7 +18,7 @@
 from langgraph.channels.untracked_value import UntrackedValue
 from langgraph.errors import EmptyChannelError, InvalidUpdateError
 from langgraph.graph import START, StateGraph
-from langgraph.graph.message import _messages_delta_reducer
+from langgraph.graph.message import REMOVE_ALL_MESSAGES, 
_messages_delta_reducer
 from langgraph.graph.state import _get_channel
 from langgraph.pregel._checkpoint import delta_channels_to_snapshot
 from langgraph.types import Overwrite
@@ -153,6 +153,25 @@
     assert ch.get()[1].content == "hello"
 
 
+def test_delta_channel_from_none_checkpoint_replays_from_empty() -> None:
+    ch = DeltaChannel(_messages_delta_reducer, list).from_checkpoint(None)
+    msg = HumanMessage(content="hi", id="h1")
+    ch.replay_writes([("t0", "messages", [msg])])
+    assert ch.get() == [msg]
+
+
+def test_messages_delta_reducer_remove_all() -> None:
+    old = HumanMessage(content="old", id="h0")
+    dropped = HumanMessage(content="dropped", id="h1")
+    kept = AIMessage(content="kept", id="a1")
+    writes = [[dropped], [RemoveMessage(id=REMOVE_ALL_MESSAGES), kept]]
+    assert _messages_delta_reducer([old], writes) == [kept]
+    state = [old]
+    for w in writes:
+        state = _messages_delta_reducer(state, [w])
+    assert state == [kept]
+
+
 def test_delta_channel_from_checkpoint_writes_list() -> None:
     """replay_writes on a fresh channel replays through the operator."""
     spec = DeltaChannel(_messages_delta_reducer, list)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/langgraph-1.2.23/uv.lock new/langgraph-1.2.24/uv.lock
--- old/langgraph-1.2.23/uv.lock        2020-02-02 01:00:00.000000000 +0100
+++ new/langgraph-1.2.24/uv.lock        2020-02-02 01:00:00.000000000 +0100
@@ -1440,7 +1440,7 @@
 
 [[package]]
 name = "langgraph"
-version = "1.2.23"
+version = "1.2.24"
 source = { editable = "." }
 dependencies = [
     { name = "langchain-core" },

Reply via email to