claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Bug Report

Open sgpk0717 opened this issue 7 months ago • 1 comments

Bug Description

Environment Info

  • Platform: macos
  • Terminal: cursor
  • Version: 1.0.21
  • Feedback ID: 4b11f686-acca-4d3f-ae73-f4ff7f7522bb

Errors

[{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"tools.16.custom.input_schema: JSON schema is invalid. It must match JSON Schema draft 2020-12 (https://json-schema.org/draft/2020-12). Learn more about tool use at https://docs.anthropic.com/en/docs/tool-use.\"}}\n    at g6.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1327:12578)\n    at qw.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1342:2082)\n    at qw.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1342:5257)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async D11.showErrors (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1670:22007)\n    at async D11 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1670:12203)\n    at async cw2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1670:21853)\n    at async file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1670:17103\n    at async Jt1 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1670:5151)\n    at async Qu (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1670:17073)","timestamp":"2025-06-12T06:12:19.872Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"messages.0: all messages must have non-empty content except for the optional final assistant message\"}}\n    at g6.generate (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1327:12578)\n    at qw.makeStatusError (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1342:2082)\n    at qw.makeRequest (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1342:5257)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-06-12T06:12:29.767Z"}]

sgpk0717 avatar Jun 12 '25 06:06 sgpk0717

+1.

The error appears when using --continue from the previous session, but when starting a new session it works fine.

ekstro avatar Jun 12 '25 07:06 ekstro

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 04 '25 10:12 github-actions[bot]