diff --git a/mobile/app/h/[hostId]/files/[worktreeId].tsx b/mobile/app/h/[hostId]/files/[worktreeId].tsx index 15094ce1c96..738ce45a228 100644 --- a/mobile/app/h/[hostId]/files/[worktreeId].tsx +++ b/mobile/app/h/[hostId]/files/[worktreeId].tsx @@ -201,7 +201,7 @@ export default function MobileFileExplorerScreen() { onPress={() => { if (isDirectory) { toggleDirectory(item.relativePath) - } else { + } else if (item.kind === 'text' || item.kind === 'binary') { void openFile(item.relativePath, item.kind) } }}