devX: fail fast on interrupts with no checkpointer #158

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

Originally created by @benjamincburns on GitHub (Jan 22, 2025).

Problem

Interrupts only work when a checkpointer is set.

Expected behavior

When a graph doesn't have a checkpointer set and a node interrupts, we should throw a useful error.

Current behavior

Repeated calls to invoke or stream behave as though the graph was interrupted with a checkpointer present. It's only if the user happens to call getState to check for interrupts (not included in our examples/docs, IIRC) that they'll see a helpful error (No checkpointer set.).

Originally created by @benjamincburns on GitHub (Jan 22, 2025). ## Problem Interrupts only work when a checkpointer is set. ## Expected behavior When a graph doesn't have a checkpointer set and a node interrupts, we should throw a useful error. ## Current behavior Repeated calls to `invoke` or stream behave as though the graph was interrupted with a checkpointer present. It's only if the user happens to call `getState` to check for interrupts (not included in our examples/docs, IIRC) that they'll see a helpful error (`No checkpointer set.`).
yindo closed this issue 2026-02-15 17:16:33 -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#158