From 80b77caec04da4d5a97a92109c294c930f5e3c0f Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Mon, 14 Jul 2025 13:13:33 -0400 Subject: [PATCH] ignore: share page fix --- packages/web/src/components/Share.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/web/src/components/Share.tsx b/packages/web/src/components/Share.tsx index 56f218fd8..d5eebd45d 100644 --- a/packages/web/src/components/Share.tsx +++ b/packages/web/src/components/Share.tsx @@ -496,7 +496,15 @@ export function fromV1(v1: Message.Info): MessageWithParts { cost: v1.metadata.assistant!.cost, path: v1.metadata.assistant!.path, summary: v1.metadata.assistant!.summary, - tokens: v1.metadata.assistant!.tokens, + tokens: v1.metadata.assistant!.tokens ?? { + input: 0, + output: 0, + cache: { + read: 0, + write: 0, + }, + reasoning: 0, + }, modelID: v1.metadata.assistant!.modelID, providerID: v1.metadata.assistant!.providerID, system: v1.metadata.assistant!.system,