[PR #1171] [MERGED] Fix Command(resume) for Zod Schemas #1278

Closed
opened 2026-02-15 20:15:05 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1171
Author: @hinthornw
Created: 5/9/2025
Status: Merged
Merged: 5/9/2025
Merged by: @hinthornw

Base: mainHead: wfh/zod_resumption_mania


📝 Commits (1)

  • b3b34d3 Fix Command(resume) for Zod Schemas

📊 Changes

2 files changed (+78 additions, -0 deletions)

View changed files

📝 libs/langgraph/src/graph/state.ts (+6 -0)
📝 libs/langgraph/src/tests/pregel.test.ts (+72 -0)

📄 Description

Previously, the zod schema would be applied to the input even if it were a Command.

Skip that to avoid dropping resume/goto/etc.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraphjs/pull/1171 **Author:** [@hinthornw](https://github.com/hinthornw) **Created:** 5/9/2025 **Status:** ✅ Merged **Merged:** 5/9/2025 **Merged by:** [@hinthornw](https://github.com/hinthornw) **Base:** `main` ← **Head:** `wfh/zod_resumption_mania` --- ### 📝 Commits (1) - [`b3b34d3`](https://github.com/langchain-ai/langgraphjs/commit/b3b34d32e26b49895668f2763ae25df099677a62) Fix Command(resume) for Zod Schemas ### 📊 Changes **2 files changed** (+78 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/src/graph/state.ts` (+6 -0) 📝 `libs/langgraph/src/tests/pregel.test.ts` (+72 -0) </details> ### 📄 Description Previously, the zod schema would be applied to the input even if it were a `Command`. Skip that to avoid dropping resume/goto/etc. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 20:15:05 -05:00
yindo closed this issue 2026-02-15 20:15:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#1278