Skip to content

[BUG] Tool calling broken on 3.37.1 for VS Code API and Opus 4.5.Β #10318

@azaricstefan

Description

@azaricstefan

Problem (one or two sentences)

Tool calling broken on 3.37.1 for VS Code API and Opus 4.5.

Context (who is affected and when)

Date/time: 2025-12-24T00:16:32.635Z
Extension version: 3.37.1
Provider: vscode-lm
Model: copilot/claude-opus-4.5

Request Failed: 400 {"error":{"message":"messages.0.content.0: unexpected tool_use_id found in tool_result blocks: toolu_vrtx_017zoz78rZkfhPsVf1SJkx1k. Each tool_result block must have a corresponding tool_use block in the previous message.","code":"invalid_request_body"}}

Reproduction steps

After couple of responses it will fail to call tools.

Expected result

Tools use work

Actual result

Tools use fail

Variations tried (optional)

No response

App Version

3.37.1

API Provider (optional)

VS Code Language Model API

Model Used (optional)

Claude Opus 4.5

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