From 57fbee9d221bad467f5de1ab9ca168ff9159d426 Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Mon, 11 May 2026 22:10:55 -0400 Subject: [PATCH] Fix mobile file explorer type narrowing Co-authored-by: Orca --- mobile/app/h/[hostId]/files/[worktreeId].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }}