Skip to content

Server: persist LangGraph conversation history - #1325

Merged
AbhinRustagi merged 3 commits into
mainfrom
codex/server-langgraph-history
Oct 8, 2026
Merged

AbhinRustagi merged 3 commits into
mainfrom
codex/server-langgraph-history

Conversation

@AbhinRustagi

@AbhinRustagi AbhinRustagi commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

LangGraph agents using Chat Completions must explicitly persist their turns for conversation reloads. Add storeLangGraphHistory and langGraphMessagesToItems through @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.

@vercel

vercel Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
openui-docs Skipped Skipped Oct 8, 2026 10:22am UTC

Request Review

@AbhinRustagi
AbhinRustagi enabled auto-merge (squash) October 8, 2026 10:33
@AbhinRustagi
AbhinRustagi merged commit 23f985a into main Oct 8, 2026
4 checks passed
@AbhinRustagi
AbhinRustagi deleted the codex/server-langgraph-history branch October 8, 2026 10:35

This branch was previously deployed

1 inactive deployment
Preview — e849519b Deployed Oct 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants