Repository navigation
Server: persist LangGraph conversation history - #1325
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
AbhinRustagi
enabled auto-merge (squash)
October 8, 2026 10:33
abhithesys
approved these changes
Oct 8, 2026
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LangGraph agents using Chat Completions must explicitly persist their turns for conversation reloads. Add
storeLangGraphHistoryandlangGraphMessagesToItemsthrough@openuidev/server/langgraph, reusing the existing Chat Completions conversion and Conversations API writer.Accepts native BaseMessage instances from @langchain/core/messages and uses the package's message type guards. Preserves user text/images, assistant text, ordered tool calls and outputs; skips instructions. Supports the existing custom fetch/base URL options with @langchain/core as an optional peer required only for the LangGraph entry point. Includes a patch-release changeset for @openuidev/server 0.1.1.
First PR in the dependency chain. #1322 consumes this helper in the Cloud LangGraph template; #1321 is an independent featured-example picker PR based on main. The template dependency requires the server release before it can install from the registry.
Validation: server typecheck, build, ESLint, publint, and all 10 existing tests passed. Inline checks exercised real LangChain messages, tool roundtrips, images, empty input, request encoding and storage failure propagation. No test files were added.