Bug Description
I was using claude code and it did not complete. It shows disconnected and I cant recomment. I used teleport claude --teleport session_011CUodG12UHpWf6HYKJ97iT to run on my deskotp now I get the error ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.2.content.1: unexpected tool_use_id
found in tool_result blocks: toolu_01TFQZVdAgEdnmsGYZ3qZhs1. Each tool_result block must have a corresponding tool_use block
in the previous message."},"request_id":"req_011CUokNANXZnaviTWyswzPa"}
Environment Info
- Platform: linux
- Terminal: xterm-256color
- Version: 2.0.33
- Feedback ID: 6e01ccde-2760-4ba8-8dea-841bbb9c8a58
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.2.content.1: unexpected `tool_use_id` found in `tool_result` blocks: toolu_01TFQZVdAgEdnmsGYZ3qZhs1. Each `tool_result` block must have a corresponding `tool_use` block in the previous message.\"},\"request_id\":\"req_011CUokNANXZnaviTWyswzPa\"}\n at L4.generate (file:///home/kmcisaac/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:204:83066)\n at E_.makeStatusError (file:///home/kmcisaac/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:689:2117)\n at E_.makeRequest (file:///home/kmcisaac/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:689:5341)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async psA.model (file:///home/kmcisaac/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3394:14692)\n at async psA (file:///home/kmcisaac/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1987:39781)\n at async jn2 (file:///home/kmcisaac/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3394:14846)\n at async file:///home/kmcisaac/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3394:8667\n at async $10 (file:///home/kmcisaac/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3394:1970)\n at async J8A (file:///home/kmcisaac/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3394:8637)","timestamp":"2025-11-04T23:52:21.441Z"}]
Bug Description
I was using claude code and it did not complete. It shows disconnected and I cant recomment. I used teleport claude --teleport session_011CUodG12UHpWf6HYKJ97iT to run on my deskotp now I get the error ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.2.content.1: unexpected
tool_use_idfound in
tool_resultblocks: toolu_01TFQZVdAgEdnmsGYZ3qZhs1. Eachtool_resultblock must have a correspondingtool_useblockin the previous message."},"request_id":"req_011CUokNANXZnaviTWyswzPa"}
Environment Info
Errors
[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.2.content.1: unexpected `tool_use_id` found in `tool_result` blocks: toolu_01TFQZVdAgEdnmsGYZ3qZhs1. Each `tool_result` block must have a corresponding `tool_use` block in the previous message.\"},\"request_id\":\"req_011CUokNANXZnaviTWyswzPa\"}\n at L4.generate (file:///home/kmcisaac/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:204:83066)\n at E_.makeStatusError (file:///home/kmcisaac/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:689:2117)\n at E_.makeRequest (file:///home/kmcisaac/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:689:5341)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async psA.model (file:///home/kmcisaac/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3394:14692)\n at async psA (file:///home/kmcisaac/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1987:39781)\n at async jn2 (file:///home/kmcisaac/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3394:14846)\n at async file:///home/kmcisaac/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3394:8667\n at async $10 (file:///home/kmcisaac/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3394:1970)\n at async J8A (file:///home/kmcisaac/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3394:8637)","timestamp":"2025-11-04T23:52:21.441Z"}]