Bug Report all messages must have non-empty content except for the optional final assistant message
Resolved 💬 14 comments Opened Jul 17, 2025 by jiwoo-dev Closed Mar 2, 2026
Bug Description
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 1.0.53
- Feedback ID: 507f7995-4b4c-4975-ae1c-760aac7db5ab
Errors
[{"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 eQ.generate (file:///home/mman/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1180:6428)\n at k$.makeStatusError (file:///home/mman/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1197:2101)\n at k$.makeRequest (file:///home/mman/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1197:5315)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2025-07-17T04:25:01.491Z"}]This issue has 14 comments on GitHub. Read the full discussion on GitHub ↗