From cfa7e8c266e1e0dd3c17e7ece18f28e065a3aad3 Mon Sep 17 00:00:00 2001 From: carterwsmith Date: Thu, 19 Nov 2026 15:52:47 -0800 Subject: [PATCH] fix(web,mobile): stop labeling a revert's history replay as a handoff --- .../src/features/threads/thread-handoff-row.tsx | 11 +++++++++++ apps/mobile/src/i18n/translations/de.json | 1 + apps/mobile/src/i18n/translations/en.json | 1 + apps/mobile/src/i18n/translations/es.json | 1 + apps/mobile/src/i18n/translations/fr.json | 1 + apps/mobile/src/i18n/translations/ja.json | 1 + apps/mobile/src/i18n/translations/ko.json | 1 + apps/mobile/src/i18n/translations/pt-BR.json | 1 + apps/mobile/src/i18n/translations/ru.json | 1 + apps/mobile/src/i18n/translations/sv.json | 1 + apps/mobile/src/i18n/translations/zh.json | 1 + apps/web/src/components/chat/V2LifecycleRow.tsx | 11 +++++++++++ apps/web/src/i18n/translations/de.json | 1 + apps/web/src/i18n/translations/en.json | 1 + apps/web/src/i18n/translations/es.json | 1 + apps/web/src/i18n/translations/fr.json | 1 + apps/web/src/i18n/translations/ja.json | 1 + apps/web/src/i18n/translations/ko.json | 1 + apps/web/src/i18n/translations/pt-BR.json | 1 + apps/web/src/i18n/translations/ru.json | 1 + apps/web/src/i18n/translations/sv.json | 1 + apps/web/src/i18n/translations/zh.json | 1 + packages/client-runtime/src/handoff.ts | 11 +++++++++++ 23 files changed, 53 insertions(+) diff --git a/apps/mobile/src/features/threads/thread-handoff-row.tsx b/apps/mobile/src/features/threads/thread-handoff-row.tsx index 7158a9968bcc6..7b7b85b176e17 100644 --- a/apps/mobile/src/features/threads/thread-handoff-row.tsx +++ b/apps/mobile/src/features/threads/thread-handoff-row.tsx @@ -2,6 +2,7 @@ import * as Dialog from "../../components/ui/Dialog"; import { useAtomValue } from "@effect/atom-react"; import { scopeThreadRef } from "@t3tools/client-runtime/environment"; import { + isContextRestore, resolveHandoffEndpoints, resolveModelSwitchChange, type HandoffEndpoints, @@ -94,6 +95,16 @@ export function ThreadHandoffRow(props: { const endpoints = useAtomValue(endpointsAtom); if (item.type !== "handoff" || endpoints === null) return null; const color = item.status === "failed" ? "#e11d48" : props.iconColor; + if (isContextRestore(endpoints)) { + return ( + + ); + } return ( + ); + } return ( 0 && + from.every((endpoint) => endpoint.instanceId === to.instanceId && endpoint.model === to.model) + ); +} + function latestRunModelBefore( runs: ReadonlyArray, instanceId: ProviderInstanceId,