Skip to content

Bug Report #2708

@smilelight

Description

@smilelight

Bug Description

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 1.0.35
  • Feedback ID: d1d6f341-5e63-4b40-b2b1-86a118734e0d

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 TZ (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:700:3921)\n    at file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:9014\n    at Q (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17199)\n    at VX (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:8160)\n    at nS (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:7241)\n    at f9 (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:622:11408)","timestamp":"2025-06-29T00:11:07.396Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.39: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01MXBZGDi5nQtVpNqTmWVFqL. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at Z5.generate (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1299:12578)\n    at Jq.makeStatusError (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:2100)\n    at Jq.makeRequest (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:5311)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async V$2.l11.showErrors (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:22790)\n    at async l11 (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:12370)\n    at async V$2 (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:22636)\n    at async file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:17760\n    at async M1A (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:5121)\n    at async Mu (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:17730)","timestamp":"2025-06-29T00:11:19.352Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.39: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01MXBZGDi5nQtVpNqTmWVFqL. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at Z5.generate (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1299:12578)\n    at Jq.makeStatusError (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:2100)\n    at Jq.makeRequest (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1314:5311)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async V$2.l11.showErrors (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:22790)\n    at async l11 (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:12370)\n    at async V$2 (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:22636)\n    at async file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:17760\n    at async M1A (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:5121)\n    at async Mu (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1680:17730)","timestamp":"2025-06-29T00:12:51.243Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.39: `tool_use` ids were found without `tool_result` blocks immediately after: toolu_01MXBZGDi5nQtVpNqTmWVFqL. Each `tool_use` block must have a corresponding `tool_result` block in the next message.\"}}\n    at Z5.generate (file:///Users/lidefang/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claud

Note: Error logs were truncated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:apiarea:authbugSomething isn't workingduplicateThis issue or pull request already existshas reproHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOS

    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