You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🐛 Bug: Tool calls stuck in executing with langgraph.js #1982
👋 Triage sweep. Since this was filed, the LangGraph integration was rewritten onto AG-UI. The old node-boundary buffering (StreamingStateExtractor) that held tool calls "in executing" is gone; @ag-ui/langgraph now emits a TOOL_CALL_RESULT per tool at OnToolEnd, which drives the frontend action to complete. Could you retest on the current release (1.63.x)? We'll close as stale in ~2 weeks otherwise. (Companion of #2051 — same root cause, Python variant.)
I reproduced the reported sequence against the current pipeline and the tool call now reaches complete with its result mid-run, before RUN_FINISHED:
The AG-UI LangGraph adapter emits TOOL_CALL_RESULT at OnToolEnd (integrations/langgraph/typescript/src/agent.ts; same in the Python adapter), rather than withholding it to a node/graph boundary as the old StreamingStateExtractor path did.
The frontend derives status purely from whether a role: "tool" message with a matching toolCallId exists, so the result landing mid-run flips the render to complete immediately.
useCopilotAction({ available: "disabled" }) — your config — is now a thin shim over the same render registration, so this holds on both the v1 and v2 render paths.
As a control, suppressing the mid-run result reproduces your exact symptom (inProgress, empty result), which is what the old buffering did.
One caveat worth flagging for anyone finding this later: if a single assistant message carries parallel tool calls, the v1 render path currently shows only the first one. That's a separate defect from what you reported and it's tracked separately — see #2051. If you're still seeing a stuck status on a current release with a single tool call, comment here and I'll reopen.
Activity
linear commentedon Jun 13, 2025
CPK-2752 🐛 Bug: Tool calls stuck in executing with langgraph.js
copilotkit-support commentedon Jun 13, 2025
@GigaDroid We'll look into this. For urgent production issues, schedule here: https://cal.com/nathan-tarbert-copilotkit/15min
inno-odyssean commentedon Aug 2, 2025
having same issue using python
BenTaylorDev commentedon Jul 21, 2026
👋 Triage sweep. Since this was filed, the LangGraph integration was rewritten onto AG-UI. The old node-boundary buffering (
StreamingStateExtractor) that held tool calls "in executing" is gone;@ag-ui/langgraphnow emits aTOOL_CALL_RESULTper tool atOnToolEnd, which drives the frontend action tocomplete. Could you retest on the current release (1.63.x)? We'll close as stale in ~2 weeks otherwise. (Companion of #2051 — same root cause, Python variant.)linear-code commentedon Aug 11, 2026
OSS-802
BenTaylorDev commentedon Aug 11, 2026
Verified fixed — closing.
I reproduced the reported sequence against the current pipeline and the tool call now reaches
completewith its result mid-run, beforeRUN_FINISHED:TOOL_CALL_RESULTatOnToolEnd(integrations/langgraph/typescript/src/agent.ts; same in the Python adapter), rather than withholding it to a node/graph boundary as the oldStreamingStateExtractorpath did.statuspurely from whether arole: "tool"message with a matchingtoolCallIdexists, so the result landing mid-run flips the render tocompleteimmediately.useCopilotAction({ available: "disabled" })— your config — is now a thin shim over the same render registration, so this holds on both the v1 and v2 render paths.As a control, suppressing the mid-run result reproduces your exact symptom (
inProgress, empty result), which is what the old buffering did.One caveat worth flagging for anyone finding this later: if a single assistant message carries parallel tool calls, the v1 render path currently shows only the first one. That's a separate defect from what you reported and it's tracked separately — see #2051. If you're still seeing a stuck status on a current release with a single tool call, comment here and I'll reopen.