kilocode icon indicating copy to clipboard operation
kilocode copied to clipboard

Expected `thinking` or `redacted_thinking`, but found `tool_use`.

Open marcingen9 opened this issue 10 months ago • 2 comments

Plugin Type

VSCode Extension

App Version

4.149.0

Description

Date/time: 2026-01-20T02:28:11.109Z Extension version: 4.149.0 Provider: vertex Model: claude-opus-4-5@20251101

400 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.1.content.0.type: Expected thinking or redacted_thinking, but found tool_use. When thinking is enabled, a final assistant message must start with a thinking block (preceeding the lastmost set of tool_use and tool_result blocks). We recommend you include thinking blocks from previous turns. To avoid this requirement, disable thinking. Please consult our documentation at https://docs.claude.com/en/docs/build-with-claude/extended-thinking"},"request_id":"req_vrtx_011CXHqiZPJzdrvgn43AHAoA"}

Reproduction steps

run any task. Kilo fails after 2-3 messages.

Provider

Vertex

Model

Opus 4-5

System Information

Macos

marcingen9 avatar Jan 20 '26 02:01 marcingen9

Fixed in https://github.com/Kilo-Org/kilocode/pull/5149

dacsang97 avatar Jan 20 '26 03:01 dacsang97

Thanks for taking the time to report this!

We've just released a new version of the Kilo Code extension. As part of this transition, we're automatically closing issues that were filed against the legacy extension.

If you're still experiencing this issue with the new extension, feel free to reopen this or open a fresh issue with updated details - we'd love to hear from you. We're actively working to make Kilo Code better, and your feedback is a big part of that.

Thanks again for being part of the community!

johnnyeric avatar Apr 02 '26 10:04 johnnyeric