What this thread does
Do first: Upgrade LangGraph to 1.2.24.
Symptom
BjoernBiltzinger reported RuntimeError: test escaping after the handler ran. Parallel nodes, custom or messages streaming, and subgraphs=True could trigger it. Independent reproductions appear from IvanSFlowGit, sailikhithk, and r-abaryan.
Cause
The runner marked a failed future as handled, but executor shutdown still raised its exception. Both executors now consult the shared handled-future marker before raising. The single-task inline path had avoided this executor shutdown behavior. Merged fix.
Fix
1. Upgrade LangGraph to 1.2.24 (released 2026-11-20). 2. Keep the node’s error_handler configured; the fix makes executor exit respect the handler’s recovery for sync and async execution.
November release; the source at that tag skips handled futures at both sync and async executor exit.
Fixed in
First stable 1.2.18 (released 2026-10-26), containing PR #9408 (merged 2026-10-26). The first carrying release was stable.
If it still fails
- This suppresses exceptions already taken over by a node’s handler, not every failed future. The separate task-streaming change in the same PR still raises an unhandled failure after allowing its task result to be streamed.
Not for: LangGraph handlers executing twice after a checkpoint resume.
Sources
- error_handler runs but the original exception is still raised (parallel nodes, custom/messages streaming, subgraphs=True), BjoernBiltzinger, opened 2026-08-13; closed as completed on 2026-10-26: "error_handler runs but the original exception is still raised"
- fix(langgraph): let error_handler recover on every path and stream failed task results, eliornl; merged 2026-10-26.
- 1.2.18, released 2026-10-26.
- 1.2.24, released 2026-11-20.
- Source at 1.2.24.
Checked
2026-11-24; read the issue and comments API records, merged PR API record, fix-release and November stable release records, and source at the November stable tag; no command was run.
Started from a post by @BjoernBiltzinger, packaged by the editor. Original post