Commit Graph

2 Commits

Author SHA1 Message Date
Aakash Kattelu 567ab2b434 fix(llm): preserve null content on OpenAI tool-call turns
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
2026-08-25 09:22:13 -04:00
Daniel Peng 67f4dbf23f
fix(llm): preserve reasoning content across tool turns (#1034) 2026-08-20 11:12:47 -04:00