Skip to content

Templates: make LangGraph Chat Completions the base starter - #1322

Merged
AbhinRustagi merged 12 commits into
mainfrom
codex/templates-langgraph-chat-completions
Oct 8, 2026
Merged

AbhinRustagi merged 12 commits into
mainfrom
codex/templates-langgraph-chat-completions

Conversation

@AbhinRustagi

@AbhinRustagi AbhinRustagi commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

LangGraph now lives directly in each base template's source, dependencies, and lockfile. Removes the old SDK-only implementation and LangGraph overlays. The CLI defaults to LangGraph; Vercel AI SDK and Eve remain overlays and remove unused LangGraph files/dependencies.

The Cloud LangGraph route uses Chat Completions and the new storeLangGraphHistory helper. Its afterAgent middleware persists the complete new turn in one call after success: user message, assistant messages, tool calls and results. Replayed history is excluded. Failed or stopped generation is not persisted. Self-hosted persistence stays app-owned.

Uses the published @openuidev/server 0.1.1 package from #1325. The Cloud template lockfile pins the registry release with its integrity hash; Vercel overlay lockfiles remain intact. #1321 is independent and based directly on main.

Validation: server and CLI checks passed; all six template/framework combinations scaffold; the Cloud template type-checks against the local new server build. An actual LangGraph stream with mocked provider/storage transports exercised a two-step weather tool loop, verified the complete new turn was saved in a single call before stream completion, and checked that failed generation makes no storage call and missing-thread validation. Live Gateway calls were not tested.

@vercel

vercel Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
openui-docs Error Error Oct 8, 2026 11:26am UTC

Request Review

@AbhinRustagi
AbhinRustagi added this pull request to stack #1323 October 8, 2026 08:32
@AbhinRustagi AbhinRustagi changed the title feat(templates): replace SDK starters with LangGraph chat completions Templates: replace SDK starters with LangGraph Chat Completions Oct 8, 2026
@AbhinRustagi
AbhinRustagi force-pushed the codex/templates-langgraph-chat-completions branch from fe94f56 to 8f927c6 Compare October 8, 2026 08:35
@AbhinRustagi AbhinRustagi changed the title Templates: replace SDK starters with LangGraph Chat Completions Templates: make LangGraph Chat Completions the base starter Oct 8, 2026
@AbhinRustagi
AbhinRustagi force-pushed the codex/templates-langgraph-chat-completions branch from 8f927c6 to 50f6138 Compare October 8, 2026 08:45
@AbhinRustagi
AbhinRustagi removed this pull request from stack #1323 October 8, 2026 08:52
@AbhinRustagi
AbhinRustagi force-pushed the codex/templates-langgraph-chat-completions branch from 50f6138 to 5f551d0 Compare October 8, 2026 08:52
@AbhinRustagi
AbhinRustagi changed the base branch from codex/cli-featured-examples to main October 8, 2026 08:52
@AbhinRustagi
AbhinRustagi added this pull request to stack #1324 October 8, 2026 08:53
@AbhinRustagi
AbhinRustagi removed this pull request from stack #1324 October 8, 2026 08:53
@AbhinRustagi
AbhinRustagi force-pushed the codex/templates-langgraph-chat-completions branch from 5f551d0 to e7939f1 Compare October 8, 2026 09:08
@AbhinRustagi
AbhinRustagi changed the base branch from main to codex/server-langgraph-history October 8, 2026 09:08
Base automatically changed from codex/server-langgraph-history to main October 8, 2026 10:35
abhithesys
abhithesys previously approved these changes Oct 8, 2026
@AbhinRustagi
AbhinRustagi merged commit 6fb4741 into main Oct 8, 2026
38 of 39 checks passed
@AbhinRustagi
AbhinRustagi deleted the codex/templates-langgraph-chat-completions branch October 8, 2026 11:29

This branch had an error being deployed

1 failed deployment
Preview — 884bb463 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