diff --git a/apps/mobile/src/app/new/index.tsx b/apps/mobile/src/app/new/index.tsx index 41a7963807..4e5339e7de 100644 --- a/apps/mobile/src/app/new/index.tsx +++ b/apps/mobile/src/app/new/index.tsx @@ -116,7 +116,7 @@ export default function NewTaskRoute() { router.back()} + onPress={() => router.dismiss()} separateBackground /> ) : null} diff --git a/apps/mobile/src/features/files/ThreadFilesRouteScreen.tsx b/apps/mobile/src/features/files/ThreadFilesRouteScreen.tsx index a5e4b59e7a..1942e5737d 100644 --- a/apps/mobile/src/features/files/ThreadFilesRouteScreen.tsx +++ b/apps/mobile/src/features/files/ThreadFilesRouteScreen.tsx @@ -650,15 +650,6 @@ export function ThreadFileScreen() { assetPreviewUri === null || previewRevision === 0 ? assetPreviewUri : `${assetPreviewUri}${assetPreviewUri.includes("?") ? "&" : "?"}revision=${previewRevision}`; - const handleReturnToThread = useCallback(() => { - if (router.canGoBack()) { - router.back(); - return; - } - if (environmentId !== null && threadId !== null) { - router.replace(buildThreadRoutePath({ environmentId, threadId })); - } - }, [environmentId, router, threadId]); const needsFileContents = relativePath !== null && (resolvedActiveMode === "source" || isMarkdownPreviewFile(relativePath)); @@ -699,15 +690,6 @@ export function ThreadFileScreen() { [cwd, environmentId, fileInspector.supported, handleSelectFile, projectName, relativePath], ); - if (fileInspector.supported && environmentId !== null && threadId !== null) { - return ( - - ); - } - if (selectedThread === null || environmentId === null || threadId === null) { return ; } diff --git a/apps/mobile/src/features/threads/ThreadNavigationSidebar.tsx b/apps/mobile/src/features/threads/ThreadNavigationSidebar.tsx index ab833848b8..ee4b551450 100644 --- a/apps/mobile/src/features/threads/ThreadNavigationSidebar.tsx +++ b/apps/mobile/src/features/threads/ThreadNavigationSidebar.tsx @@ -537,7 +537,11 @@ export function ThreadNavigationSidebar(props: { style={styles.threadList} ListEmptyComponent={ - {searchQuery.trim().length > 0 ? "No matching threads" : "No threads yet"} + {catalogState.isLoadingConnections + ? "Loading threads…" + : searchQuery.trim().length > 0 + ? "No matching threads" + : "No threads yet"} } />