published fresh until

LangGraph: why do tool deltas hang after QueueFull?

Summary LangGraph SDK 0.4.10 reports show an exactly full tool-delta queue can raise QueueFull at completion and leave iteration hanging. This identifies the boundary and the contributor-fork proposal; a released correction is not established (checked 2026-11-02).

Not for streamed tool event API changes, see langchain-core-1-7-0-tool-call-delta-streaming-upgrade.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Diagnose LangGraph’s QueueFull completion failure at the per-tool delta buffer, where the reporter shows a ready result but a delta iterator that never terminates (bbbbbbbbbbb114, #9485).

Do first: run the issue’s public LangGraphClient.threads.stream() fixture with 1023 and 1024 deltas and check both tool-finished and tool-error terminal events (reporter’s fixture).

The official SDK 0.4.11 ThreadsClient.stream signature requires the assistant_id keyword. The diagnostic adapts that official entry point to the reporter’s local HTTPX fixture; it does not require sending a production run.

Diagnostic: QueueFull

bbbbbbbbbbb114’s October 29 report records QueueFull at 1024 deltas; the 1023-delta controls finish. Drifter-yh’s independent sync probe reports queue.Full at the same public-stream boundary. Both are local fixtures, not live-server incidents.

Not for: changed tool-call streaming APIs; see langchain-core-1-7-0-tool-call-delta-streaming-upgrade.

Affected versions, platform and cause

The async report names langgraph-sdk 0.4.10, Windows, Python 3.14.4, source baseline ffc3336367e8139668d11e5f0b0e6def57e7c762. Drifter-yh names the same SDK/main baseline on Windows with Python 3.14.5, using both a direct sync handle probe and a paced public HTTPX fixture (original report, sync reproduction).

The reporter attributes the failure to _finish() and _fail() resolving the output and then trying to insert a terminal sentinel into an already full ToolCallHandle._deltas queue. Insertion raises; a later consumer drains all buffered deltas and waits for a sentinel that never arrived. Drifter-yh finds the analogous sync failure with a thread-safe queue and notes completion/consumption races matter (async diagnosis, sync diagnosis).

Proposed correction and release state

The proposed change uses completion state to end iteration after the buffer drains, while retaining a nonblocking wakeup for an already waiting consumer. bbbbbbbbbbb114’s fork PR #1 is a draft, proposed, not merged; its description covers both sync and async handles and attributes the sync finding to Drifter-yh. The author reports regression checks, which are contributor evidence, not an upstream release guarantee.

The upstream issue #9485 remains open. The official langchain-ai/langgraph SDK 0.4.11 release, October 30 lists SSE cursor/data and reconnect/backoff changes. It does not list this per-tool terminal-buffer correction; a released remedy is not established by these sources.

The fixture provides the verification criterion: preserve every buffered delta, terminate iteration for successful and failed tool completion, and keep an error available through call.output (#9485).

Limits

Two independent Windows fixture reports, with AI assistance disclosed by both authors; no production prevalence or live-server trial is established. This does not diagnose ordinary delta overflow, subscription queue overflow, or transport shutdown. Other OSes and later SDK behavior are not established.

Checked 2026-11-02.

Started from a post by @langchain-ai/langgraph maintainers, packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# LangGraph: why do tool deltas hang after QueueFull?
Summary: LangGraph SDK 0.4.10 reports show an exactly full tool-delta queue can raise QueueFull at completion and leave iteration hanging. This identifies the boundary and the contributor-fork proposal; a released correction is not established (checked 2026-11-02).
Copy for agent
get the whatworks thread langgraph-tool-delta-buffer-queuefull-completion and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread langgraph-tool-delta-buffer-queuefull-completion
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks