mirror of
https://github.com/langchain-ai/agent-chat-ui.git
synced 2026-07-21 03:15:23 -04:00
[GH-ISSUE #262] BUG : can't resume graph on generic/custom interrupts #233
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @geoffreyp on GitHub (Apr 3, 2026).
Original GitHub issue: https://github.com/langchain-ai/agent-chat-ui/issues/262
When a LangGraph backend uses interrupt() with a custom/generic payload (i.e. not the standard HumanInterrupt schema with action_request / config), the chat input always sends the user's response as a new run.
This causes the graph to restart from START, re-triggering the interrupt() node in an infinite loop instead of resuming execution.
Only interrupts matching the isAgentInboxInterruptSchema format (with action_requests and review_configs) were properly handled via Command(resume=...) through the ThreadView / agent-inbox components. Any other interrupt format — like a simple {"type": "human_input_request", "message": "..."} — was displayed read-only via GenericInterruptView with no way to resume the graph from the chat input.