OpenAI-compatible providers can return assistant tool-call messages with content=null. Coercing that to "" before history replay breaks providers that bind opaque reasoning state to the exact assistant message shape. Keep null only when the normalized response has tool calls; tool-less null still becomes "", and content_override stays authoritative. Fixes #1061 |
||
|---|---|---|
| .. | ||
| test_anthropic.py | ||
| test_gemini.py | ||
| test_openai.py | ||