From a71a3e8dd3e9b5b9ede38f183b14f730d6b36801 Mon Sep 17 00:00:00 2001 From: Michael Johnston Date: Sat, 5 Sep 2026 03:41:44 -0700 Subject: [PATCH] fix(mobile): use current duration formatter for working row --- apps/mobile/src/features/threads/ThreadFeed.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/mobile/src/features/threads/ThreadFeed.tsx b/apps/mobile/src/features/threads/ThreadFeed.tsx index e5ad8b2adb5c..68476234529c 100644 --- a/apps/mobile/src/features/threads/ThreadFeed.tsx +++ b/apps/mobile/src/features/threads/ThreadFeed.tsx @@ -37,7 +37,7 @@ import { type ActionResultPresentationOutcome, parseActionResumeFollowUp, } from "@t3tools/shared/actionResume"; -import { formatElapsed } from "@t3tools/shared/orchestrationTiming"; +import { formatDuration } from "@t3tools/shared/orchestrationTiming"; import { SymbolView, type AppSymbolName } from "../../components/AppSymbol"; import { HeaderHeightContext } from "@react-navigation/elements"; import { useFocusEffect, useNavigation } from "@react-navigation/native"; @@ -1904,7 +1904,9 @@ const WorkingTimelineRow = memo(function WorkingTimelineRow(props: { readonly st return () => clearInterval(intervalId); }, [props.startedAt]); - const durationLabel = formatElapsed(props.startedAt, new Date(nowMs).toISOString()) ?? "0s"; + const elapsedMs = nowMs - Date.parse(props.startedAt); + const durationLabel = + Number.isFinite(elapsedMs) && elapsedMs >= 0 ? formatDuration(elapsedMs) : "0s"; return (