Skip to content

Sub-agent Creation Failure in Claude Code CLI #6363

@jackstine

Description

@jackstine

Bug Description
cant create sub agent

Environment Info

  • Platform: darwin
  • Terminal: tmux
  • Version: 1.0.88
  • Feedback ID: eaacf54c-dfb6-406c-ad45-48c01d951865

Errors

[{"error":"Error: Request was aborted.\n    at W71._createMessage (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:934:7955)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-22T19:58:59.353Z"},{"error":"Error: Request was aborted.\n    at W71._createMessage (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:934:7955)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-22T20:05:58.906Z"},{"error":"Error: Request was aborted.\n    at W71._createMessage (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:934:7955)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-22T20:13:17.672Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n    at Module.readFileSync (node:fs:434:20)\n    at Object.readFileSync (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:690:9211)\n    at itA (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:735:9580)\n    at Object.call (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1758:936)\n    at call.next (<anonymous>)\n    at aN5 (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3401:10481)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async BgB (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3401:6800)\n    at async Rt2 (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1763:3411)\n    at async CBB (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1948:843)","timestamp":"2025-08-22T20:24:18.724Z"},{"error":"Error: Request was aborted.\n    at XP.makeRequest (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:3840)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-22T20:29:52.169Z"},{"error":"Error: Request was aborted.\n    at XP.makeRequest (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:3840)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-22T20:38:05.164Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.22: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01GYSfpK9KjVnUjxDT1pVxFd. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CSPQYJy8GEd2w26aw8gMH\"}\n    at v4.generate (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:926:2412)\n    at XP.makeStatusError (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:2101)\n    at XP.makeRequest (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:5315)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async DZ1.showErrors (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:27329)\n    at async DZ1 (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:16486)\n    at async s2B (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:27180)\n    at async file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:22275\n    at async eD0 (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:3656)\n    at async Fe (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1891:22245)","timestamp":"2025-08-22T20:49:12.286Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.22: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01GYSfpK9KjVnUjxDT1pVxFd. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"},\"request_id\":\"req_011CSPQeTmd2Vg3EMNvovx39\"}\n    at v4.generate (file:///Users/jake.cukjati/.nvm/versions/node/v24.3.0/lib/node_module

Note: Error logs were truncated.

Here are logs

> tell a sub agent to fix the @test/integration/payments_queues/queues/rgs/invoice_generator_test.go
   there are a couple of tests failing.   Fix in the
  @test/integration/payments_queues/queues/rgs/invoice_eop_data.go as Necessary, please.  Pass
  relatable knowledge down to the sub agent.
  ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.22:
    `tool_use` ids were found without `tool_result` blocks immediately after:
    toolu_01GYSfpK9KjVnUjxDT1pVxFd. Each `tool_use` block must have a corresponding `tool_result`
    block in the next message."},"request_id":"req_011CSPQYJy8GEd2w26aw8gMH"}

> tell a sub agent to fix the @test/integration/payments_queues/queues/rgs/invoice_generator_test.go
   there are a couple of tests failing.   Fix in the
  @test/integration/payments_queues/queues/rgs/invoice_eop_data.go as Necessary, please.  Pass
  relatable knowledge down to the sub agent.
  ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.22:
    `tool_use` ids were found without `tool_result` blocks immediately after:
    toolu_01GYSfpK9KjVnUjxDT1pVxFd. Each `tool_use` block must have a corresponding `tool_result`
    block in the next message."},"request_id":"req_011CSPQeTmd2Vg3EMNvovx39"}

> tell a sub agent to fix the @test/integration/payments_queues/queues/rgs/invoice_generator_test.go
   there are a couple of tests failing.   Fix in the
  @test/integration/payments_queues/queues/rgs/invoice_eop_data.go as Necessary, please.  Pass
  relatable knowledge down to the sub agent.
  ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.22:
    `tool_use` ids were found without `tool_result` blocks immediately after:
    toolu_01GYSfpK9KjVnUjxDT1pVxFd. Each `tool_use` block must have a corresponding `tool_result`
    block in the next message."},"request_id":"req_011CSPQfykCugyt6tzChJMUa"}

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