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
Session resume breaks after force-interrupt during tool execution (400 tool_call_ids missing) #269
400 an assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'.
The following tool_call_ids did not have response messages: TaskOutput:79
APIStatusError: 400 an assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: TaskOutput:79
What steps can reproduce the bug?
启动一个会话,让 AI 调用一个需要阻塞等待的工具(例如 TaskOutput(block=true) 或后台 Agent)
Still reproduces on v0.11.0 (Linux x64, WSL2, Node.js v24.15.0). Same root cause, different tool — crashed during a Bash call instead of TaskOutput.
The session had been running for 3 days (June 5–8), computer froze mid-turn. After resume, every message (including "继续") hits the same 400:
2026-06-08T01:26:59.935Z WARN llm request failed turnStep=5.1 attempt=1/3 model=kimi-code/kimi-for-coding errorName=APIStatusError errorMessage="400 an assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: Bash:53" statusCode=400
2026-06-08T01:26:59.954Z ERROR turn failed turnId=5
APIStatusError: 400 an assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: Bash:53
at normalizeAPIStatusError (...)
at convertOpenAIError (...)
at KimiChatProvider.generate (...)
at async Agent.generate [as rawGenerate] (...)
at async KosongLLM.chat (...)
at async chatWithRetry (...)
at async executeLoopStep (...)
at async runTurn (...)
Manual compaction also fails with the same error. Session ID: session_966a97f6-0803-4def-8235-dc31295cb80c.
The root cause described in the issue body (dirty pendingToolResultIds + project() not filtering incomplete tool sequences) matches perfectly. v0.11.0 still doesn't handle this recovery edge case.
Activity
myk5010 commentedon Jun 8, 2026
Still reproduces on v0.11.0 (Linux x64, WSL2, Node.js v24.15.0). Same root cause, different tool — crashed during a
Bashcall instead ofTaskOutput.The session had been running for 3 days (June 5–8), computer froze mid-turn. After resume, every message (including "继续") hits the same 400:
Manual compaction also fails with the same error. Session ID:
session_966a97f6-0803-4def-8235-dc31295cb80c.The root cause described in the issue body (dirty
pendingToolResultIds+project()not filtering incomplete tool sequences) matches perfectly. v0.11.0 still doesn't handle this recovery edge case.