Skip to content

[BUG] openrouter:mistralai/devstral-2512 -> "completion error" #10618

@PeterSmarthome

Description

@PeterSmarthome

Problem (one or two sentences)

I am using Roo-Code v3.39.3 on VS Code 1.108.0
Provider: Openrouter

Date/time: 2026-01-11T17:46:33.573Z
Extension version: 3.39.3
Provider: openrouter
Model: mistralai/devstral-2512

400
OpenRouter completion error: {"detail":"Invalid request: Invalid request: {\"detail\":{\"error\":{\"message\":\"Unexpected role 'user' after role 'tool' Unexpected role 'user' after role 'tool'\",\"type\":\"BadRequestError\",\"param\":null,\"code\":400}}}"}

Context (who is affected and when)

..

Reproduction steps

...

Expected result

no error

Actual result

error 400

Variations tried (optional)

No response

App Version

v3.39.3

API Provider (optional)

OpenRouter

Model Used (optional)

mistralai/devstral-2512

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

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

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions