[PR #1407] [MERGED] fix(langgraph): preModelHook llmInputMessages should not keep concatenating messages #1441

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1407
Author: @dqbd
Created: 7/16/2025
Status: Merged
Merged: 7/16/2025
Merged by: @dqbd

Base: mainHead: dqbd/react-llm-input-messages-replace


📝 Commits (3)

  • c1dbdbe fix(langgraph): preModelHook llmInputMessages should not keep incrementing messages
  • 8f8e2a3 Create orange-beans-learn.md
  • 8aa81b6 CR

📊 Changes

3 files changed (+47 additions, -15 deletions)

View changed files

.changeset/orange-beans-learn.md (+5 -0)
📝 libs/langgraph/src/prebuilt/react_agent_executor.ts (+1 -1)
📝 libs/langgraph/src/tests/prebuilt.test.ts (+41 -14)

📄 Description

Closes #1316


🔄 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/1407 **Author:** [@dqbd](https://github.com/dqbd) **Created:** 7/16/2025 **Status:** ✅ Merged **Merged:** 7/16/2025 **Merged by:** [@dqbd](https://github.com/dqbd) **Base:** `main` ← **Head:** `dqbd/react-llm-input-messages-replace` --- ### 📝 Commits (3) - [`c1dbdbe`](https://github.com/langchain-ai/langgraphjs/commit/c1dbdbe8d89d5f7341bcdb02fd2751e83ffff1cf) fix(langgraph): preModelHook `llmInputMessages` should not keep incrementing messages - [`8f8e2a3`](https://github.com/langchain-ai/langgraphjs/commit/8f8e2a36a0c90077989574c62be71398bd2a3bc6) Create orange-beans-learn.md - [`8aa81b6`](https://github.com/langchain-ai/langgraphjs/commit/8aa81b6e0276b7dddba34f17aff0fa6223916eb9) CR ### 📊 Changes **3 files changed** (+47 additions, -15 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/orange-beans-learn.md` (+5 -0) 📝 `libs/langgraph/src/prebuilt/react_agent_executor.ts` (+1 -1) 📝 `libs/langgraph/src/tests/prebuilt.test.ts` (+41 -14) </details> ### 📄 Description Closes #1316 --- <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:46 -05:00
yindo closed this issue 2026-02-15 20:15:46 -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#1441