fix(ai): synthesize trailing orphaned tool results closes #3555

This commit is contained in:
Mario Zechner
2026-04-22 19:41:55 +02:00
parent 239e842790
commit a23fab4693
3 changed files with 80 additions and 0 deletions

View File

@@ -213,5 +213,8 @@ export function transformMessages<TApi extends Api>(
}
}
// If the conversation ends with unresolved tool calls, synthesize results now.
insertSyntheticToolResults();
return result;
}