From bcda085fe9df5f46b6be5e8b6348e25f9e5420a9 Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Thu, 8 Oct 2026 05:45:27 -0400 Subject: [PATCH] fix(mobile): give the file preview the workspace router, back to 128 page assets The preview was the one workspace screen on the plain router, so the scoped router was reached by a route set of its own and esbuild split it into an extra chunk (129 assets); every workspace screen now uses it and it shares the route's chunk. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb --- mobile/src/files/MobileFilePreviewScreen.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/src/files/MobileFilePreviewScreen.tsx b/mobile/src/files/MobileFilePreviewScreen.tsx index 9a6f7fa276e..05221697aad 100644 --- a/mobile/src/files/MobileFilePreviewScreen.tsx +++ b/mobile/src/files/MobileFilePreviewScreen.tsx @@ -2,7 +2,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react' import { Pressable, Text, View, useWindowDimensions } from 'react-native' import { SafeAreaView } from 'react-native-safe-area-context' import { ChevronLeft, Save } from 'lucide-react-native' -import { useRouteHandoff } from '../navigation/route-handoff' +import { useWorkspaceRouteHandoff } from '../navigation/workspace-route-handoff' import { getWorktreeLabel } from '../session/worktree-label' import { colors, spacing } from '../theme/mobile-theme' import { useForceReconnect } from '../transport/client-context' @@ -36,7 +36,7 @@ type Props = { } export function MobileFilePreviewScreen({ route }: Props) { - const router = useRouteHandoff() + const router = useWorkspaceRouteHandoff() const previewParams = route.ok ? route.params : null const { client, state: connState } = useWorkspaceClient(previewParams?.hostId) const forceReconnect = useForceReconnect()