Skip to content

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

fix(timeline): handle missing tool call end times gracefully

Steven Enamakel6da7163ab6cd
diff --git a/app/src/utils/toolTimelineFormatting.ts b/app/src/utils/toolTimelineFormatting.ts
index d75d1043ed..5056c2c84a 100644
--- a/app/src/utils/toolTimelineFormatting.ts
+++ b/app/src/utils/toolTimelineFormatting.ts
@@ -274,6 +274,10 @@ export function extractAgentSources(entries: ToolTimelineEntry[]): AgentSource[]
parsed?.results.forEach((hit, index) =>
add({ id: `${entry.id}#${index}`, title: hit.title, url: hit.url })
);
+ // An answer call's citations are sources too.
+ parsed?.citations?.forEach((hit, index) =>
+ add({ id: `${entry.id}#c${index}`, title: hit.title, url: hit.url })
+ );
continue;
}
if (entry.status !== 'success' || !URL_SOURCE_TOOLS.has(presentation.baseName)) continue;