-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.New issue. Needs quick review to confirm validity and assign labels.bugSomething isn't workingSomething isn't working
Description
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)
ajianhouyuan
Metadata
Metadata
Assignees
Labels
Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.New issue. Needs quick review to confirm validity and assign labels.bugSomething isn't workingSomething isn't working
Type
Projects
Status
Triage