From 73f9bbd22ebcf190932cb033a9e4033302e6bfb1 Mon Sep 17 00:00:00 2001 From: Abdulrahman Abdullah <76687899+AbdulrahmanAlGhofaily@users.noreply.github.com> Date: Thu, 13 Nov 2025 12:54:44 +0300 Subject: [PATCH] Remove edge from approval to proceed and cancel Removed added edges from `approval_node` node to `proceed` and `cancel`. These edges are causing an error where the graph tries to update `status` channel at the same time (in node `proceed` and `cancel`) Also since we have `approval_node` already points to `proceed` and `cancel`, adding these edges is unnecessary. Error message if the example compiled without any changes: `InvalidUpdateError: At key 'status': Can receive only one value per step. Use an Annotated key to handle multiple values.` --- src/oss/langgraph/interrupts.mdx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/oss/langgraph/interrupts.mdx b/src/oss/langgraph/interrupts.mdx index 6b5d45703f..35dfa07871 100644 --- a/src/oss/langgraph/interrupts.mdx +++ b/src/oss/langgraph/interrupts.mdx @@ -235,8 +235,6 @@ await graph.invoke(new Command({ resume: false }), config); builder.add_node("proceed", proceed_node) builder.add_node("cancel", cancel_node) builder.add_edge(START, "approval") - builder.add_edge("approval", "proceed") - builder.add_edge("approval", "cancel") builder.add_edge("proceed", END) builder.add_edge("cancel", END)