LangGraph interrupt(): a renamed node skips approval

10 min readKacper KlusekBy Kacper Klusek

On this page10 sections
Title card reading A renamed node skips approval, with skips in gold and LangGraph interrupt() and deploys beneath, the LangChain mark in the top-right corner, beside a paper approval card with an APPROVE button and the node tag approve_quote struck through in red next to review_quote.

An approval agent built on LangGraph can sit at interrupt() for days while a person decides, and your team will ship code in that time. On LangGraph 1.2.24 we renamed the node a thread was paused at, resumed it, and the thread finished cleanly with no error, no log line and no approval recorded. LangGraph resumes every paused thread on the newest code, so a deploy is a migration of every thread still waiting. We show which changes are safe for a waiting thread, the two that fail silently, how to rename through add-then-remove, and a short check that blocks a deploy while a paused thread still needs the old node.

Every paused thread resumes on the code you deployed last

A paused thread holds no code, so it resumes on whatever build is live. Our interrupt vs middleware post covered how a pause works inside one run: the node replays from the top on resume, so anything before interrupt() runs twice. Here the code changes underneath a thread that is still waiting. LangGraph’s backward compatibility guide is direct about the model: “LangGraph applies the latest graph immediately to every thread, both new threads and threads that resume from a checkpoint.” Workflow engines that pin a run to the code it started with are the contrast the guide draws.

The agent checkpoint holds state and the names of the tasks a thread will run next, so every deploy asks one question: do the names and fields old checkpoints point at still exist in the new build?

To make it concrete we use an example design, not a client project: a wholesale distributor’s quoting agent. An installer sends an item list, the agent matches each line to the catalog, pulls price and stock from the ERP, drafts a quote, and stops at an approve_quote node until a sales rep accepts it. Nothing reaches the ERP before that human in the loop says yes. On any given deploy, some quotes are waiting. The full design of that agent, from pricing before the pause to a single ERP write, is in our LangGraph quote agent walkthrough.

A renamed node finished our test thread without its approval

Renaming the node ended our paused thread with no approval and no error. We built that graph in miniature on LangGraph 1.2.24, the current release on PyPI (uploaded November 20, 2026), paused one thread at approve_quote, then compiled the same graph with the node renamed to review_quote against the same checkpointer and resumed:

v1 = build("approve_quote", saver)   # thread q-1042 pauses here
v1.invoke({"items": ["cable 3x2.5"]}, cfg)

v2 = build("review_quote", saver)    # the deploy: one node renamed
v2.get_state(cfg).next               # () : nothing left to run
v2.invoke(Command(resume=True), cfg)
# {'items': ['cable 3x2.5']}  no 'approved' key, no exception

It raised nothing, logged nothing at DEBUG level, and the state carries no approval because the approval node never ran. We got the same result with InMemorySaver and with the SQLite checkpointer (langgraph-checkpoint-sqlite 3.1.3). We added a write_erp node after the approval and ran it again: it did not run either. The quote disappears. get_state reports nothing left to run, so an approval queue built from paused threads no longer lists it, and the installer waits for a quote nobody will send.

The Graph migrations section of the docs describes the outcome differently: “On resume, LangGraph looks up that node by name, and a missing name fails the run.” Both readings agree on the rule: never rename or remove a node a thread may be paused at. Ours adds that the failure is quieter than the docs suggest, so a test waiting for an exception passes.

Reordering two interrupt() calls swaps the answers

A node that asks twice (confirm the price, then confirm the stock) keeps its resume values in a list. The interrupts page says “Matching is strictly index-based, so the order of interrupt calls within the node is important.” We paused a thread after the rep had answered the price question, deployed a version of the node that asks about stock first, and resumed with the stock answer:

# v1: price = interrupt("price ok?"); stock = interrupt("stock ok?")
# v2: stock = interrupt("stock ok?"); price = interrupt("price ok?")
new.invoke(Command(resume="stock: yes"), cfg)
# {'price': 'stock: yes', 'stock': 'price: yes'}

No error again, and the two fields hold each other’s answers: the saved price answer went to the first interrupt() of the new code, which now asks about stock.

The rule: treat the order and the count of interrupt() calls inside a node as a schema. Changing either breaks every thread paused inside that node.

Which changes are safe for a thread waiting on approval

Most graph changes are safe for a paused thread; four are not. Finished means threads that ran to the end; paused means a thread at interrupt() or about to enter a node.

Change in the deploy Finished threads Paused threads Where it is stated
Add a node, add or reroute an edge Safe Safe Graph migrations, backward compatibility guide
Rename or remove a node Safe Breaks: the waiting work is skipped Graph migrations; our test on 1.2.24
Rename a state key Value dropped Value dropped Graph migrations
Make a field required or narrow its type Can break Can break Backward compatibility guide
Reorder or skip an interrupt(), or add one before an answered call Safe Answers land on the wrong call Interrupts page; our reorder test
Change the payload an interrupt() shows Safe Rebuilt by the new code on resume Follows from the node replaying from the top

The last row is our inference from the docs: the node reruns from its first line on resume, so the payload is rebuilt by whatever code is live. So a payload that shows a price reads it again on resume.

Edges are safe because the checkpoint does not store them, as the guide explains, so rerouting between nodes that still exist touches no saved thread. Adding a new state field is safe when it is optional; the same guide asks for NotRequired or Optional[...] = None so old checkpoints still validate.

Rename through add-then-remove, and wait for the old name to drain

A safe rename takes two deploys. The backward compatibility guide calls it add-then-remove: add the new node beside the old one, route to both for a deprecation window, and delete the old one only once no thread can still enter it. For the quoting agent the first deploy keeps both names on the same function:

g.add_node("approve_quote", approve)   # kept for threads paused here
g.add_node("review_quote", approve)    # new threads route here
g.add_edge("draft", "review_quote")
g.add_edge("approve_quote", END)       # same exit as review_quote

We resumed the old paused thread against that build and it ran approve_quote with the rep’s answer: {'items': ['x'], 'approved': True}. New quotes take the new name. The second deploy, which deletes approve_quote, waits until no thread is paused there, and your slowest approver sets how long that is. The graceful shutdown drain in our LangGraph fault tolerance post is a separate mechanism: it finishes a running superstep before a process stops.

Two columns compare renaming the approve_quote node in one deploy, where the paused thread resumes, the approval never runs and the quote is lost, with add, drain, remove, where old threads resume at approve_quote until a second deploy removes it.
A rename in one deploy skips the waiting approval; add-then-remove keeps the old node until no thread is paused at it.

State keys follow the same pattern. The guide says to keep a removed field defined on the state for at least one drain cycle, even when no node reads it, so old checkpoints still load. Renaming a key in place is worse than it looks: Graph migrations says the saved value for that key is dropped in existing threads, which for our example is the matched item list a rep is about to approve.

Check every paused thread against the new build before it ships

The check must run before the deploy, against the live graph. The rename test showed why: once the new graph is live, get_state reports nothing left to run, and the evidence is gone. So read the paused threads with the graph that is live now and compare the node names they will enter against the build you are about to ship:

def blocked_threads(live, candidate, configs):
    bad = []
    for cfg in configs:
        missing = [n for n in live.get_state(cfg).next if n not in candidate.nodes]
        if missing:
            bad.append((cfg["configurable"]["thread_id"], missing))
    return bad   # non-empty: fail the release

On our test thread it returns [('q-1042', ['approve_quote'])] for the renamed build and [] for the unchanged one. The configs come from wherever your threads live. On LangSmith Deployment, the Agent Server’s thread search filters by status, and interrupted is one of the four values beside idle, busy and error. On your own Postgres checkpointer you list thread ids yourself; the guide notes that LangGraph keeps no search index over thread state.

Two more checks catch the field changes. If your state schema is a Pydantic model or a dataclass, validate each paused thread’s state against the candidate’s schema, which fails on a field you tightened; a TypedDict state checks nothing at runtime, so there you compare the field definitions by hand. Then follow the guide’s advice to spot-check existing threads with time travel and get_state in a staging deployment, run on a copy of production threads. Know what replay does before you point it at anything that writes: that page says nodes after the checkpoint “re-execute, including any LLM calls, API requests, and interrupts”, so a staging replay of the quoting agent needs a fake ERP. Time travel re-executes, unlike deterministic replay, which reuses recorded outputs.

Run it in the release pipeline beside your evals, as one gate of agent deployment. It costs one get_state per paused thread.

Version the business rule as well as the graph

Some changes are safe for the graph and still wrong for the business. Say the new release changes how the agent applies a volume discount. A quote drafted on Friday under the old rule should be approved or redrafted under that rule when the rep clicks approve on Monday, without a silent reprice. The guide’s answer is to “record the relevant behavioral version on the state at thread start, then branch on it” with a conditional edge, and it warns that the pattern holds only when the version is set at thread start, before any branch that depends on it.

For the quoting agent that is one field, pricing_version, written by the first node and read by a router in front of the pricing node. It turns an implicit rule into an agent state machine branch you can test, and it lets the old branch be deleted on the same drain schedule as an old node. The write_erp node after the approval needs the same care: make the ERP write an idempotent tool call keyed on the quote id, so a retried or replayed write cannot post a second order.

When a multi-day wait belongs in a workflow engine

For most approval agents, LangGraph’s own checkpointer is the right place to wait. A wait costs a row in the checkpointer, and the rules above keep deploys safe. If your waits are long, your graphs change weekly and you already run a workflow engine, that engine is an option. Temporal announced its LangGraph plugin on July 16, 2026, in Public Preview, requiring Temporal Python SDK 1.27.0 or later, and says “Durable waits (signals and timers) cost nothing while they wait.” That gives you durable execution under the graph. Its announcement says nothing about deploying new graph code against waiting runs, so do not assume it removes the rename problem; test it the same way.

The takeaway

A LangGraph deploy migrates every thread still paused at interrupt(). Each one resumes on the newest code. Never rename or remove a node a thread may be waiting at, and never reorder the interrupt() calls inside one: on 1.2.24 both fail without an error. Rename through add-then-remove, keep the old name until the slowest approver has answered, record a behavioral version at thread start for rule changes, and fail the release when the paused-thread check returns anything. If you want an approval agent like the quoting example built and run on your own ERP, our LangChain and LangGraph work is where we start.

Sources

Want this built and running in production? Soba Labs builds custom AI agents. Talk to us