Skip to content

[Bug]: Switching from one provider back to claude fails #2646

@robtaylor

Description

@robtaylor

Bug Description

I was switching a conversation from Minimax to Claude Code, it gives a 400 error due to Invalid signatureinthinking block".

Steps to Reproduce

enter a code base
:config-provider
-> select minimax
: tell me what you think about this codebase
-> let it think a bit and then ctrl-C
:config-provider
-> select Claude Code

✗ : continue
⏺ [17:28:54] Continue 3bbf0a77-c535-40ac-9853-071f882af251
⏺ [17:28:54] ERROR: POST https://api.anthropic.com/v1/messages
    Caused by: 400 Bad Request Reason: {"type":"error","error":{"type":"invalid_request_error","message":"messages.1.content.19: Invalid `signature` in `thinking` block"},"request_id":"req_011CZLQZWUyjyW2mPYVs8zfb"}
    Caused by: Invalid Status Code: 400

Repeating this using forge --dump and forge --conversation has the same effect

Expected Behavior

Conversation continues with different provider

Actual Behavior

400 error from claude API.

Error Logs

Forge Version

2.1.0

Operating System

macOS

OS Version

macOS 26.3.1

AI Provider

Other

Model

minimax 2.7 and Claude Opus 4.6

Installation Method

npx forgecode@latest

Configuration

~/forge/.config.json
{
  "keyInfo": null,
  "provider": "claude_code",
  "model": {
    "minimax": "MiniMax-M2.7",
    "claude_code": "claude-opus-4-6"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions