Skip to content

The open source coding agent.

TypeScript

fix share page timestamps

Dax Raadaadca5013aa8
diff --git a/packages/web/src/components/share/part.tsx b/packages/web/src/components/share/part.tsx
index 443e4a79552..fcfa8bec404 100644
--- a/packages/web/src/components/share/part.tsx
+++ b/packages/web/src/components/share/part.tsx
@@ -257,8 +257,8 @@ export function Part(props: PartProps) {
</div>
<ToolFooter
time={
- DateTime.fromMillis(props.message.time.completed || 0)
- .diff(DateTime.fromMillis(props.message.time.created || 0))
+ DateTime.fromMillis(props.part.state.time.start)
+ .diff(DateTime.fromMillis(props.part.state.time.end))
.toMillis()
} />
</>