Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(assistantUiMessages): handle null timestamps in reasoning parts

Steven Enamakel5dc389609e5a
diff --git a/app/src/providers/assistantUiMessages.ts b/app/src/providers/assistantUiMessages.ts
index c214587547..72cde3a314 100644
--- a/app/src/providers/assistantUiMessages.ts
+++ b/app/src/providers/assistantUiMessages.ts
@@ -567,7 +567,7 @@ function assistantParts(
for (const [index, item] of transcript.entries()) {
if (item.kind === 'thinking') {
if (item.text.trim().length > 0) {
- parts.push(reasoningPart(item.text, item.startedAt, item.endedAt));
+ parts.push(reasoningPart(item.text, item.startedAt ?? undefined, item.endedAt ?? undefined));
}
continue;
}