UPDATElanggraph 1.2.24
LangGraph 1.2.24 Fixes Message Resets and Empty Checkpoints
LangGraph release notes for 1.2.24 fix batched full-message resets and replay null checkpoints from empty state. Delta-channel apps should verify both paths. The existing constant import still works. For full resets or null checkpoints, test your own recovery sequence first (AIGenLab view, not independently tested).
What changed in this release
20 checkpoints in 4 groups, organized by task from the official notes. Checkpoints do not count separate features or commits.
Full resets take effect
- The full-reset marker clears existing state before writes in the same batch are processed.
- Batched messages before the reset marker are removed.
- Messages after the reset marker are retained.
- Importing REMOVE_ALL_MESSAGES from langgraph.graph.message still works.
- The constant moved to langgraph.pregel._messages to avoid a circular import.
Empty checkpoints replay
- DeltaChannel treats a None checkpoint as an empty starting point.
- None and MISSING both start from an empty typed value before the caller replays writes.
- A checkpoint stored as null no longer passes None directly to the reducer.
- A regression test covers replaying one message from a None checkpoint.
- DeltaChannel remains beta; its API and on-disk representation may change.
Reducer boundaries stay explicit
- The message reducer gains full-reset semantics while continuing to deduplicate by id.
- Individual removal messages continue to delete existing messages from the result.
- Raw dictionaries, strings, and tuples are still converted into message objects.
- Unknown-id removal messages remain outside this reducer's handling.
- UUID assignment for missing ids and BaseMessageChunk conversion remain outside its scope.
Release and regression coverage
- The 1.2.24 release record lists the release itself and PR #9735; the fixes come from the latter.
- The new test writes [[dropped], [reset, kept]] to pin the order of the same-batch reset.
- Tests compare one batched reduction with separate reductions and assert both keep only the kept message.
- The shared reducer lets DeepAgents replace its private copy and use stable-id recognition.
- The release record uses 1.2.23 as its baseline and lists two substantive fixes for this version.
On this page
ContextThe fixes land in message reduction and checkpoint replay
LangGraph 1.2.24 fixes two long-conversation recovery paths: full resets now cut through batched writes, and null checkpoints restart empty. Neither changes the task; both change recovery.
The release completes reset semantics in the existing reducer and aligns empty-checkpoint entry. DeltaChannel users meet both; teams without full resets can upgrade on schedule.
Four groups cover resets, empty checkpoints, reducer boundaries, and regressions. The figure below shows how many inventory items fall in each group. The sections below expand on the inventory, then compare peers and 1.2.23.
A full reset removes old state and earlier batched messages
- Reset result: RemoveMessage(id=REMOVE_ALL_MESSAGES) clears existing state before later messages in the same batch are processed.
- Verification: compare one batched reduction with separate reductions; both should retain only post-reset messages.
- Usage boundary: the existing import from langgraph.graph.message still works, although the constant now lives in the pregel internal module.
An empty checkpoint now replays from an empty channel
- Recovery result: DeltaChannel.from_checkpoint(None) now starts from an empty typed value, like MISSING, before the caller replays historical writes.
- Verification action: construct a None checkpoint and replay one message with an id, then confirm the recovered channel contains only that message.
- Cost boundary: DeltaChannel remains beta; its API and on-disk representation may change, although existing threads are expected to remain readable.
Reset support arrives without making the reducer complete
- Compatibility: the reducer still deduplicates by id, handles single removals, and converts raw dictionaries, strings, and tuples into messages.
- Integration: applications using these behaviors can adopt the shared reducer while keeping input-format and message-id regressions.
- Explicit boundary: unknown-id removals, UUID assignment for missing ids, and BaseMessageChunk conversion remain outside this experimental reducer.
Peer tools handle resets and recovery at different layers
Pydantic AI, AutoGen, and LangGraph manage state, but the common task is narrower: after context is cleared, where does execution resume? Their materials describe different layers, and matching names do not prove matching behavior.
Rows cover processed versus original history, clearable memory with team-state persistence, and LangGraph's batched reduction and empty-checkpoint replay.
Keep LangGraph for graph state, time travel, and batched replay. For model-facing history or separate memory, evaluate Pydantic AI or AutoGen at that layer. Product shapes make feature-count rankings misleading.
| Update point | Pydantic AI v2.77.0 | AutoGen python v0.7.5 | LangGraph 1.2.24 |
|---|---|---|---|
| Clear context | Processors replace model history; result.conversation retains original history and new messages. | ListMemory.clear() clears memory; memory.content is directly editable. | REMOVE_ALL_MESSAGES clears old state and earlier batch writes, keeping later messages. |
| Empty recovery | store.load(id) or Conversation(id=...) creates a conversation when none is stored. | save_state returns agent_states; load_state validates it and overwrites current state. | None and MISSING start empty before historical writes are replayed. |
| State boundary | Processors alter model history; the original conversation remains available. | ListMemory stores ordered content; AgentRuntime saves and loads participant and manager state. | The experimental reducer lacks unknown-id removal errors, UUID assignment, and chunk conversion. |
The previous version accepted missing checkpoints, not null ones
Version 1.2.24 changes two boundaries from 1.2.23: full resets inside a message batch and null checkpoints. Earlier tool-call and schema-warning fixes belong to 1.2.23.
The table compares those paths and the constant location. Tagged source confirms 1.2.23's MISSING handling. The pull request says null raised TypeError in the reducer, so checks should cover null and normal snapshots.
Expectations change when an app emits a full-reset marker or stores null checkpoints. Other state handling keeps existing boundaries. Run those regressions first, then widen the rollout.
| Feature | 1.2.23 | 1.2.24 |
|---|---|---|
| Batched reset | REMOVE_ALL_MESSAGES was not handled; the marker was ignored. | Old state and earlier batch writes are cleared; later messages remain. |
| Empty recovery | Only MISSING started empty; null reached the reducer and raised TypeError. | None and MISSING start empty before writes are replayed. |
| Constant location | Defined in langgraph.graph.message. | Moved to langgraph.pregel._messages; the graph.message import still works. |
| Coverage | No full reset, unknown-id removal errors, UUID assignment, or chunk conversion. | Full reset added; other behaviors remain outside the experimental reducer. |
Release analysisDelta-channel teams should upgrade first; others can verify on schedule
The largest impact falls on teams combining DeltaChannel, the message reducer, and full-reset markers. Applications that can store null checkpoints should upgrade early. Teams without either path can upgrade in the normal dependency window and run existing regressions.
Pydantic AI v2.77.0 separates replaceable model-facing history from the original conversation. AutoGen python v0.7.5 provides ListMemory.clear plus team-state save and load. LangGraph 1.2.24 fixes boundaries inside graph-state batch replay; they are not substitute buttons at one layer.
AIGenLab view, not independently tested: run the official regressions, then recover one local checkpoint sequence. Record reset position, batched message order, checkpoint value, and recovered ids. Do not generalize one null case to every checkpoint store.
Keep the existing constant import; no message-format rewrite is required. Confirm state results before checking snapshots and existing threads. If only model context needs replacement, evaluate Pydantic AI history processing before migrating the graph execution model.
AIGenLab views
Not independently testedTeams combining DeltaChannel, the message reducer, and full-reset markers should upgrade first; teams without those paths can verify in the normal window.
Based on PR #9735's fixes to two state paths and its new regression tests; not independently tested by AIGenLab.
Applications with full resets or null checkpoints should first test recovery with a local checkpoint sequence, covering post-reset retention, None replay, and normal snapshots while recording message order and ids.
Based on the official batched-versus-separate reduction test, None replay test, and DeltaChannel replay contract; not independently tested by AIGenLab.
Teams that only need to replace model context should evaluate Pydantic AI's history-processing layer rather than migrate an entire graph execution model for this state fix.
Based on Pydantic AI v2.77.0's separation of processed history from the original conversation and LangGraph's graph-state scope in this fix; not independently tested by AIGenLab.
Official sources and scope
- LangGraph 1.2.24 release The current version, comparison baseline, and two official fixes.
- LangGraph 1.2.23 release The previous release and its tool-call state, dependency, and dynamic-schema fixes.
- LangGraph PR #9735 Full resets, None checkpoints, constant relocation, and the DeepAgents integration condition.
- LangGraph PR #9735 changed files Source patches and new regression tests for both fixes.
- LangGraph 1.2.24 DeltaChannel source Empty checkpoints, the replay contract, and DeltaChannel's beta boundary.
- LangGraph 1.2.24 message reducer source Reset ordering, existing reducer behavior, and uncovered cases.
- LangGraph 1.2.23 DeltaChannel source Tagged source showing that the previous version treated only MISSING as empty.
- LangGraph 1.2.23 message reducer source The previous reducer's missing full-reset handling and coverage limits.
- Pydantic AI v2.77.0 release The Pydantic AI version used in the horizontal comparison.
- Pydantic AI v2.77.0 message history documentation History-processor replacement, original-conversation retention, and message-editing boundaries.
- Pydantic AI v2.77.0 persistence documentation The official example that creates a Conversation when none is stored.
- AutoGen python v0.7.5 release The AutoGen version used in the horizontal comparison.
- AutoGen v0.7.5 ListMemory source Ordered memory, direct content modification, and the clear-all interface.
- AutoGen v0.7.5 group-chat state source Team-state save and load, mapping format, and current-state overwrite behavior.
Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.