[BUG] API Error: 422 {"detail":[{"type":"missing","loc":["body","messages",2,"content"],"msg":"Field required","input":{"role":"assistant","tool_calls
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
when I use Claude Code for VS Code extensions plugin analysis code, it report below error:
Read [SensorStreamController.cpp](vscode-webview://17sjov3jo9ba42hg58f45apldk8n1ljqjrn55ujae6r1rda2dak7/index.html?id=857cdc7d-d36a-4b20-bb10-bd4643f7ac46&parentId=8&origin=44a49782-9c3a-4cbd-b378-ec3ef2f6de52&swVersion=6&extensionId=Anthropic.claude-code&platform=electron&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&parentOrigin=vscode-file%3A%2F%2Fvscode-app&remoteAuthority=ssh-remote%2B118&session=b31ef1ab-584d-4829-9f89-fe2e1323c7f2#)
API Error: 422 {"detail":[{"type":"missing","loc":["body","messages",2,"content"],"msg":"Field required","input":{"role":"assistant","tool_calls":[{"index":0,"id":"chatcmpl-tool-84b74b54b1844ac5","type":"function","function":{"name":"Read","arguments":"{"file_path":"/home2/chenjinlong/project/Latest_WNC/common/hal/Control/SoC/src/SensorStreamController.cpp","limit":200}"}}]}}]}
What Should Happen?
it should can analysis code correctly~
Error Messages/Logs
Read SensorStreamController.cpp
API Error: 422 {"detail":[{"type":"missing","loc":["body","messages",2,"content"],"msg":"Field required","input":{"role":"assistant","tool_calls":[{"index":0,"id":"chatcmpl-tool-84b74b54b1844ac5","type":"function","function":{"name":"Read","arguments":"{"file_path":"/home2/chenjinlong/project/Latest_WNC/common/hal/Control/SoC/src/SensorStreamController.cpp","limit":200}"}}]}}]}
Steps to Reproduce
1.just input what's code need to analysis in Claude code~
Claude Model
Other
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.112
Claude Code Version
2.1.112
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
but single questions Claude code can answer~