fix: order reasoning before reply text

This commit is contained in:
Peter Steinberger
2026-01-07 07:05:07 +01:00
parent 75c66acfd8
commit 03928106c7
4 changed files with 41 additions and 3 deletions

View File

@@ -1102,7 +1102,7 @@ export async function runEmbeddedPiAgent(params: {
? formatReasoningMarkdown(thinking)
: "";
if (!formatted) return base;
return base ? `${base}\n\n${formatted}` : formatted;
return base ? `${formatted}\n\n${base}` : formatted;
})()
: "";
for (const text of assistantTexts.length