feat: add handling for task timeout and enhance Streamdown plugin for word animation

This commit is contained in:
Henry Li
2026-02-07 18:06:22 +08:00
parent 260953fb81
commit d9a52f07e7
3 changed files with 26 additions and 2 deletions

View File

@@ -124,6 +124,12 @@ export function MessageList({
status: "failed",
error: result.split("Task failed.")[1]?.trim(),
});
} else if (result.startsWith("Task timed out")) {
updateSubtask({
id: taskId,
status: "failed",
error: result,
});
} else {
updateSubtask({
id: taskId,