[Bug] API Error (400) Tool use ids were found without tool_result blocks immediately after

Resolved 💬 3 comments Opened Jun 30, 2025 by andreaherrera2316 Closed Aug 20, 2025

Bug Description
Think I good a bug, before this I tried to add an image, I must have messes with the first message I sent and over since claude has expected a tool result back, hope it helps, keep up the great work!

!Image

Repro Steps:

  1. Submit an image with Symbols (as the one below)

!Image

  1. Get the following result

!Image

  1. Copy the Message, paste it back into claude (removing the [Image #1]) and then getting the bug

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.31
  • Feedback ID: aca6cffe-20ab-4df3-b264-ac26340cf1af

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:882:11)\n    at execSync (node:child_process:954:15)\n    at NZ (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:700:3921)\n    at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:9014\n    at Q (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n    at GX (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:8160)\n    at fS (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:7241)\n    at R9 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:11408)","timestamp":"2025-06-30T13:13:11.236Z"},{"error":"AbortError: The operation was aborted\n    at abortChildProcess (node:child_process:716:27)\n    at AbortSignal.onAbortListener (node:child_process:786:7)\n    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)\n    at AbortSignal.dispatchEvent (node:internal/event_target:762:26)\n    at runAbort (node:internal/abort_controller:447:10)\n    at abortSignal (node:internal/abort_controller:433:3)\n    at AbortController.abort (node:internal/abort_controller:466:5)\n    at Timeout._onTimeout (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2489:7626)\n    at listOnTimeout (node:internal/timers:594:17)\n    at process.processTimers (node:internal/timers:529:7)","timestamp":"2025-06-30T13:13:14.860Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at aD (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1472:1184)\n    at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1472:912\n    at Array.map (<anonymous>)\n    at kK (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1472:903)\n    at DU2 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1865:7514)\n    at xE (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:80:19803)\n    at mT (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:42555)\n    at gT (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:38104)\n    at qq (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:38032)\n    at eE (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:37886)","timestamp":"2025-06-30T13:13:26.407Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at aD (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1472:1184)\n    at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1472:912\n    at Array.map (<anonymous>)\n    at kK (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1472:903)\n    at DU2 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1865:7514)\n    at xE (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:80:19803)\n    at mT (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:42555)\n    at gT (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:38104)\n    at qq (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:38032)\n    at eE (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:82:37886)","timestamp":"2025-06-30T13:13:26.439Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at aD (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1472:1184)\n    at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1472:912\n    at Array.map (<anonymous>)\n    at kK (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1472:903)\n    at DU2 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1865:7514)\n    at xE (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:80:19803)\n    at mT (file:///usr/local/lib/node_modules/@anthropic-ai/clau

Note: Error logs were truncated.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗