Skip to content

Tool Call Failures Preventing Agent Execution #5468

@theivanfranco

Description

@theivanfranco

Bug Description
Seeing tool call failures... think I bricked it

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 1.0.72
  • Feedback ID: 81e1d09b-9465-436f-9626-79e5e3d7029d

Errors

[{"error":"AbortError: The operation was aborted\n    at abortChildProcess (node:child_process:724:27)\n    at EventTarget.onAbortListener (node:child_process:794:7)\n    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:822:20)\n    at EventTarget.dispatchEvent (node:internal/event_target:757:26)\n    at abortSignal (node:internal/abort_controller:374:10)\n    at AbortController.abort (node:internal/abort_controller:396:5)\n    at Timeout._onTimeout (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:3345:8200)\n    at listOnTimeout (node:internal/timers:573:17)\n    at process.processTimers (node:internal/timers:514:7)","timestamp":"2025-08-09T20:34:04.131Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at NX (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1858:1184)\n    at file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1858:912\n    at Array.map (<anonymous>)\n    at LX (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1858:903)\n    at SjB (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2218:5231)\n    at $R (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:327:19859)\n    at yb (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:329:42848)\n    at Sb (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:329:38369)\n    at Ij (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:329:38297)\n    at gR (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:329:38151)","timestamp":"2025-08-09T20:49:59.321Z"},{"error":"AbortError: The operation was aborted\n    at abortChildProcess (node:child_process:724:27)\n    at EventTarget.onAbortListener (node:child_process:794:7)\n    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:822:20)\n    at EventTarget.dispatchEvent (node:internal/event_target:757:26)\n    at abortSignal (node:internal/abort_controller:374:10)\n    at AbortController.abort (node:internal/abort_controller:396:5)\n    at Timeout._onTimeout (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:720:75)\n    at listOnTimeout (node:internal/timers:573:17)\n    at process.processTimers (node:internal/timers:514:7)","timestamp":"2025-08-09T21:33:33.863Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at NX (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1858:1184)\n    at file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1858:912\n    at Array.map (<anonymous>)\n    at LX (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1858:903)\n    at SjB (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2218:5231)\n    at $R (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:327:19859)\n    at yb (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:329:42848)\n    at Sb (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:329:38369)\n    at Ij (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:329:38297)\n    at gR (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:329:38151)","timestamp":"2025-08-09T21:54:29.313Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at NX (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1858:1184)\n    at file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1858:912\n    at Array.map (<anonymous>)\n    at LX (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1858:903)\n    at SjB (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2218:5231)\n    at $R (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:327:19859)\n    at yb (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:329:42848)\n    at Sb (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:329:38369)\n    at Ij (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:329:38297)\n    at gR (file:///Users/ivanfranco/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:329:38151)","timestamp":"2025-08-09T22:05:23.194Z"},{"error":"Err

Note: Error logs were truncated.

What I see:

  4. Set correct content-type headers with charset specification

  The CSV should now:
  - Open correctly in Excel with each row on its own line
  - Display special characters properly
  - Handle fields with commas or newlines correctly
  - Be compatible with both Windows and Mac versions of Excel

  Try exporting again and the CSV should now display properly with each item on its own row!

> Still in one row
  ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.141: `tool_use` ids were found 
    without `tool_result` blocks immediately after: toolu_01K8QZqobexTyG9nJacRS8CB. Each `tool_use` block must have a 
    corresponding `tool_result` block in the next message."}}

> Still showing up in one row
  ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.141: `tool_use` ids were found 
    without `tool_result` blocks immediately after: toolu_01K8QZqobexTyG9nJacRS8CB. Each `tool_use` block must have a 
    corresponding `tool_result` block in the next message."}}

> what
  ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.141: `tool_use` ids were found 
    without `tool_result` blocks immediately after: toolu_01K8QZqobexTyG9nJacRS8CB. Each `tool_use` block must have a 
    corresponding `tool_result` block in the next message."}}

> what
  ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.141: `tool_use` ids were found 
    without `tool_result` blocks immediately after: toolu_01K8QZqobexTyG9nJacRS8CB. Each `tool_use` block must have a 
    corresponding `tool_result` block in the next message."}}

> athsasdfklasdf
  ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.141: `tool_use` ids were found 
    without `tool_result` blocks immediately after: toolu_01K8QZqobexTyG9nJacRS8CB. Each `tool_use` block must have a 
    corresponding `tool_result` block in the next message."}}

> asdf
  ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.141: `tool_use` ids were found 
    without `tool_result` blocks immediately after: toolu_01K8QZqobexTyG9nJacRS8CB. Each `tool_use` block must have a 
    corresponding `tool_result` block in the next message."}}

> asdfas
  ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.141: `tool_use` ids were found 
    without `tool_result` blocks immediately after: toolu_01K8QZqobexTyG9nJacRS8CB. Each `tool_use` block must have a 
    corresponding `tool_result` block in the next message."}}

> asdf
  ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.141: `tool_use` ids were found 
    without `tool_result` blocks immediately after: toolu_01K8QZqobexTyG9nJacRS8CB. Each `tool_use` block must have a 
    corresponding `tool_result` block in the next message."}}

> asdkjnlfasdf
  ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.141: `tool_use` ids were found 
    without `tool_result` blocks immediately after: toolu_01K8QZqobexTyG9nJacRS8CB. Each `tool_use` block must have a 
    corresponding `tool_result` block in the next message."}}

> /bug 
  ⎿  Bug report submitted

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions