Skip to content

Kodiqa Agent

v3.18.1 Bugfix

This release fixes issues for SREs watching stability and regressions.

✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Topics

ai-coding-agent claude cli coding-assistant developer-tools ollama
+2 more
openai python

Summary

AI summary

Fixed normalization of conversation history to prevent 400 errors on mixed-format tool messages for OpenAI-compatible providers.

Full changelog

Bug fixes for OpenAI-compatible providers (DeepSeek, OpenAI, Groq, Mistral, Qwen).

Fixed

  • DeepSeek/OpenAI-compatible 400 on mixed-format history. A follow-up turn could fail with Messages with role 'tool' must be a response to a preceding message with 'tool_calls'. Conversation history is now normalized before every request: Claude-format tool_use/tool_result blocks (left by a turn that ran on Claude, including via failover) are converted to OpenAI tool_calls/tool messages, orphan tool messages (from an interrupt or compaction) are dropped, and any unanswered tool_call gets a stub reply — so the request is always structurally valid regardless of how the history was built.
  • A malformed request (400/422) no longer triggers failover. Because a 400 fails identically on every provider, it was silently cascading a valid paid provider (e.g. DeepSeek) down the failover chain to the next one — straight into, e.g., Qwen's free-quota wall. The real error is now surfaced and the active provider is kept. Transient/availability failures (401, 429, 5xx, network errors) still fail over as before.

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track Kodiqa Agent

Get notified when new releases ship.

Sign up free

About Kodiqa Agent

All releases →

Related context

Beta — feedback welcome: [email protected]