Improvement AI chat error handling (#15035)

- Fixed AI chat failures when tool calls were present in conversation
history
- Improved error handling and user feedback for AI streaming errors



https://github.com/user-attachments/assets/ca85820f-32c0-4f42-86ee-98f4543e6038
This commit is contained in:
Abdul Rahman
2025-10-15 10:31:18 +02:00
committed by GitHub
parent 7b179806a9
commit dfb796ec5e
15 changed files with 310 additions and 304 deletions
@@ -64,7 +64,7 @@ export const mapUIMessagePartsToDBParts = (
default:
{
if (isToolPart(part)) {
const { toolCallId, input, output, errorText } = part;
const { toolCallId, input, output, errorText, state } = part;
return {
...basePart,
@@ -72,6 +72,7 @@ export const mapUIMessagePartsToDBParts = (
toolInput: input,
toolOutput: output,
errorMessage: errorText,
state,
};
}
}