claude-code - 💡(How to fix) Fix [BUG] Using the 2.1.156 version of the Claude Code for VS Code extension

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

API Error: 400 {“detail”:”Error code: 400 - {‘type’: ‘error’, ‘error’,: {‘type’: ‘invalid_request_error’, ‘message’: ‘messages: Unexpected role “system”. The Messages APO accepts a top-level system parameter, not “system” as an input message role.’}, ‘request_id’: ‘req_vrtx_011CbWz8zxEN7geApH4fQSVy’}”}

Code Example

API Error: 400 {“detail”:Error code: 400 - {‘type’: ‘error’, ‘error’,: {‘type’: ‘invalid_request_error’, ‘message’: ‘messages: Unexpected role “system”. The Messages APO accepts a top-level system parameter, not “system” as an input message role.}, ‘request_id’: ‘req_vrtx_011CbWz8zxEN7geApH4fQSVy’}}
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When I try to ask a question in the VSCode sidebar chat box, I am getting errors.

What Should Happen?

Claude should return an answer to my request, like it has in the past.

Error Messages/Logs

API Error: 400 {“detail”:”Error code: 400 - {‘type’: ‘error’, ‘error’,: {‘type’: ‘invalid_request_error’, ‘message’: ‘messages: Unexpected role “system”. The Messages APO accepts a top-level system parameter, not “system” as an input message role.’}, ‘request_id’: ‘req_vrtx_011CbWz8zxEN7geApH4fQSVy’}}

Steps to Reproduce

I out a question into the chat box and hit return.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

Worked in current version

Claude Code Version

2.1.156

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Using the 2.1.156 version of the Claude Code for VS Code extension