Skip to content

fix(opencode): avoid invalid Kilo reasoning details#24411

Open
joshbochu wants to merge 1 commit intoanomalyco:devfrom
joshbochu:codex/fix-kilo-reasoning-details
Open

fix(opencode): avoid invalid Kilo reasoning details#24411
joshbochu wants to merge 1 commit intoanomalyco:devfrom
joshbochu:codex/fix-kilo-reasoning-details

Conversation

@joshbochu
Copy link
Copy Markdown

Issue for this PR

Closes #24410

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Kilo/Kimi K2.6 can receive invalid request bodies when prior assistant reasoning is converted into a plain string reasoning_details field. This keeps plain reasoning text out of reasoning_details and only preserves that field when structured details already exist.

How did you verify your code works?

  • bun test test/provider/transform.test.ts
  • bun typecheck

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Bojun-Vvibe added a commit to Bojun-Vvibe/oss-contributions that referenced this pull request Apr 26, 2026
- anomalyco/opencode#24411: structured-vs-string reasoning_details split for Kilo
- anomalyco/opencode#24412: startup-stdin side-buffer drain into TUI prompt
- openai/codex#19620: AsciiJsonFormatter for HTTP turn-metadata headers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kilo Kimi K2.6 requests send invalid reasoning_details

1 participant