Skip to content

[BUG] Input tag 'reasoning' found using 'type' does not match any of the expected tags on Claude Sonnet 4.5 #9583

@cardil

Description

@cardil

Problem (one or two sentences)

Persistent error started happening lately: Input tag 'reasoning' found using 'type' does not match any of the expected tags

Context (who is affected and when)

I think it happens when the context is starting to fill up >70%. Doesnot matter if reasoning is enabled or disabled.

Reported here as well: #9392 (comment)

Reproduction steps

  1. Do the agent stuff on new session
  2. When context fills up to about 160k/200k tokens you may see the error

Expected result

Message should be correct and accepted by API

Actual result

Error is shown. Can't be retried. New session is the only way to continue.

Variations tried (optional)

No response

App Version

3.34.3

API Provider (optional)

Google Vertex AI

Model Used (optional)

Claude Sonnet 4.5

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.1.content.0: Input tag 'reasoning' found using 'type' does not match any of the expected tags: 'document', 'image', 'redacted_thinking', 'search_result', 'text', 'thinking', 'tool_result', 'tool_use'"},"request_id":"req_vrtx_011CVUxYcMYbPv2DnWqqt7nb"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions