Kilo Gateway requests for moonshotai/kimi-k2.6 can fail with a 500 after a prior assistant reasoning turn.
The request body includes reasoning_details as a plain string derived from reasoning text. Kilo/OpenRouter-style reasoning_details should be structured data, so opencode should not synthesize that field from plain reasoning text.
Repro context:
- provider: kilo
- model: moonshotai/kimi-k2.6
- base URL: https://api.kilo.ai/api/gateway
- failing request includes assistant reasoning plus tool calls and sends reasoning_details: "..."
Kilo Gateway requests for moonshotai/kimi-k2.6 can fail with a 500 after a prior assistant reasoning turn.
The request body includes reasoning_details as a plain string derived from reasoning text. Kilo/OpenRouter-style reasoning_details should be structured data, so opencode should not synthesize that field from plain reasoning text.
Repro context: