| 5197 | * a reasoning-only incomplete turn and the client replays the history. */ |
| 5198 | if (pending_reasoning.len) { |
| 5199 | chat_msg msg = {0}; |
| 5200 | msg.role = xstrdup("assistant"); |
| 5201 | msg.content = xstrdup(""); |
| 5202 | msg.reasoning = buf_take(&pending_reasoning); |
| 5203 | chat_msgs_push(msgs, msg); |
| 5204 | } |
| 5205 | buf_free(&pending_reasoning); |
| 5206 | return true; |
no outgoing calls
no test coverage detected