Skip to content

Claude thought_signature forwarded to Gemini causes Base64 decode error #178

@heyhuynhgiabuu

Description

@heyhuynhgiabuu

Bug Description

When switching between Claude and Gemini models in the same session, Claude's thought_signature (with \claude# prefix) gets forwarded to Gemini API, causing a Base64 decode error.

Error Message

failed to decode thinking signature, please report this bug to google: illegal base64 data at input byte 0

Steps to Reproduce

  1. Start a conversation using a Claude model
  2. Claude generates a response with thought_signature
  3. Switch to a Gemini model (via Antigravity OAuth)
  4. Make a request to Gemini
  5. Gemini rejects the request due to invalid Base64

Expected Behavior

The proxy should:

  • Strip/sanitize thought_signature when forwarding requests to a different provider
  • Not reuse cached signatures from Claude for Gemini requests

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions