[PR #1100] [CLOSED] Fix: Check entire error object in isGraphInterrupt instead of just name property #1234

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1100
Author: @se1ch
Created: 4/11/2025
Status: Closed

Base: mainHead: fix-isgraphinterrupt-check


📄 Description

Description

Changed the argument passed to the isGraphInterrupt function in the error handling section of the run method in the ToolNode class.

Before: isGraphInterrupt(e.name)
After: isGraphInterrupt(e)

Rationale

The current implementation passes only the name property of the error object to the isGraphInterrupt function, but the actual function implementation expects the complete error object.

The isGraphInterrupt function, defined in errors.js, is designed to take the error object itself as an argument and examine its type and attributes. By examining the entire error object rather than just its name property, we can more accurately identify graph interruptions.


🔄 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/1100 **Author:** [@se1ch](https://github.com/se1ch) **Created:** 4/11/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-isgraphinterrupt-check` --- ### 📄 Description ## Description Changed the argument passed to the `isGraphInterrupt` function in the error handling section of the `run` method in the `ToolNode` class. Before: `isGraphInterrupt(e.name)` After: `isGraphInterrupt(e)` ## Rationale The current implementation passes only the `name` property of the error object to the `isGraphInterrupt` function, but the actual function implementation expects the complete error object. The `isGraphInterrupt` function, defined in `errors.js`, is designed to take the error object itself as an argument and examine its type and attributes. By examining the entire error object rather than just its `name` property, we can more accurately identify graph interruptions. --- <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:17:45 -05:00
yindo closed this issue 2026-02-15 19:17:45 -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#1234