This commit is contained in:
Timothy Jaeryang Baek
2026-06-15 13:23:44 +02:00
Unverified
parent b8bfd8e91d
commit 541e84f5ae
+3 -1
View File
@@ -682,7 +682,9 @@ async def _load_message_history(chat_id: str, message_id: str) -> tuple[list[dic
if turn["reasoning"]:
entry["reasoning_items"] = turn["reasoning"]
else:
# Subsequent turns: create a new assistant entry
# Subsequent turns: flush the pending entry (last tool
# result from previous turn) before creating a new one.
result.append(entry)
entry = {
"role": "assistant",
"content": "",