[Bug] Anthropic API Error: Invalid tool_use_id in tool_result block after web teleport
Resolved 💬 3 comments Opened Nov 6, 2025 by TomByte Closed Nov 10, 2025
Bug Description
When teleporting from a claude code web instance using the cli button I get this error when trying to run anything on that session: API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.38.content.0: unexpected tool_use_id found in tool_result blocks: toolu_015FNGuEtTeBG6UjT6Mb8GgL. Each
tool_result block must have a corresponding tool_use block in the previous message."},"request_id":"req_011CUreD9T2Vd1RKEv69W6PN"}
Environment Info
- Platform: darwin
- Terminal: tmux
- Version: 2.0.34
- Feedback ID:
Errors
[{"error":"AxiosError: Request failed with status code 403\n at VT (file:///Users/{username}/.asdf/installs/nodejs/24.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:51:1136)\n at Unzip.<anonymous> (file:///Users/{username}/.asdf/installs/nodejs/24.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:56:9845)\n at Unzip.emit (node:events:520:35)\n at Unzip.emit (node:domain:489:12)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at mGA.request (file:///Users/{username}/.asdf/installs/nodejs/24.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:58:2129)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Yt2 (file:///Users/{username}/.asdf/installs/nodejs/24.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3782:7804)","timestamp":"2025-11-06T12:37:37.443Z"},{"error":"AxiosError: Request failed with status code 403\n at VT (file:///Users/{username}/.asdf/installs/nodejs/24.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:51:1136)\n at Unzip.<anonymous> (file:///Users/{username}/.asdf/installs/nodejs/24.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:56:9845)\n at Unzip.emit (node:events:520:35)\n at Unzip.emit (node:domain:489:12)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at mGA.request (file:///Users/{username}/.asdf/installs/nodejs/24.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:58:2129)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Af8 (file:///Users/{username}/.asdf/installs/nodejs/24.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:868:467)\n at async Promise.all (index 0)\n at async file:///Users/{username}/.asdf/installs/nodejs/24.8.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:854:41043","timestamp":"2025-11-06T12:38:08.912Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗