[PR #584] [MERGED] fix(checkpoint): don't throw in MemorySaver.list if thread not found #870

Closed
opened 2026-02-15 19:16:13 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/584
Author: @benjamincburns
Created: 10/11/2024
Status: Merged
Merged: 10/17/2024
Merged by: @jacoblee93

Base: mainHead: memorysaver-fix-list-exception


📝 Commits (1)

  • 997f230 fix(checkpoint): don't throw in MemorySaver.list if thread not found

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 libs/checkpoint/src/memory.ts (+3 -1)

📄 Description

Prior to this change, if you passed a thread_id to MemorySaver.list that wasn't stored, the changed line would throw due to this.storage[threadId] evaluating to undefined.

Found while working on #541.


🔄 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/584 **Author:** [@benjamincburns](https://github.com/benjamincburns) **Created:** 10/11/2024 **Status:** ✅ Merged **Merged:** 10/17/2024 **Merged by:** [@jacoblee93](https://github.com/jacoblee93) **Base:** `main` ← **Head:** `memorysaver-fix-list-exception` --- ### 📝 Commits (1) - [`997f230`](https://github.com/langchain-ai/langgraphjs/commit/997f23041c1019a5db02843085d1f8c3335cf1ba) fix(checkpoint): don't throw in MemorySaver.list if thread not found ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `libs/checkpoint/src/memory.ts` (+3 -1) </details> ### 📄 Description Prior to this change, if you passed a `thread_id` to `MemorySaver.list` that wasn't stored, the changed line would throw due to `this.storage[threadId]` evaluating to `undefined`. Found while working on #541. --- <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 19:16:13 -05:00
yindo closed this issue 2026-02-15 19:16:13 -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#870