[Bug] Anthropic API Error: Cannot continue session across CLI and web interfaces
Resolved 💬 3 comments Opened Nov 3, 2025 by weiran Closed Nov 7, 2025
Bug Description
tried to continue in CLI from a web session and get this API error
Environment Info
- Platform: darwin
- Terminal: ghostty
- Version: 2.0.31
- Feedback ID: 834de6ed-70b3-4242-a2b4-37093bc310fa
Errors
[{"error":"Error\n at Zh (/$bunfs/root/claude:54:1142)\n at <anonymous> (/$bunfs/root/claude:59:9841)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:61:2146)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-03T20:17:42.090Z"},{"error":"Error: Failed to fetch from remote origin: fatal: refusing to fetch into branch 'refs/heads/claude/add-unvote-feature-011CUinTLLuo9DZYLLs1SUmw' checked out at '/Users/weiran/Projects/Hackers/Hackers'\n at la8 (/$bunfs/root/claude:2241:358)\n at async Y3R (/$bunfs/root/claude:2242:289)\n at async <anonymous> (/$bunfs/root/claude:3864:333)\n at async parseAsync (/$bunfs/root/claude:27:4180)\n at async TJH (/$bunfs/root/claude:3905:1642)\n at async tqH (/$bunfs/root/claude:3850:1746)\n at async BJH (/$bunfs/root/claude:3905:10228)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-03T20:17:49.416Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.3: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01D2LKSkM65274oz65wSEkgD. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CUmaQL8Y6Zv5kokrA85oh\"}\n at generate (/$bunfs/root/claude:381:26098)\n at makeRequest (/$bunfs/root/claude:526:5345)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-03T20:20:31.752Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.3: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01D2LKSkM65274oz65wSEkgD. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CUmaR8qAm7rFMRaTQEARk\"}\n at generate (/$bunfs/root/claude:381:26098)\n at makeRequest (/$bunfs/root/claude:526:5345)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-11-03T20:20:42.665Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗