diff --git a/app/(tabs)/index.tsx b/app/(tabs)/index.tsx index 1860250..2800a34 100644 --- a/app/(tabs)/index.tsx +++ b/app/(tabs)/index.tsx @@ -215,7 +215,10 @@ export default function SessionsScreen() { setShowNewSession(false) setCustomDir("") if (session) { - router.push({ pathname: `/session/[id]`, params: { id: session.id, directory: dir.trim() } }) + router.push({ + pathname: `/session/[id]`, + params: { id: session.id, ...(session.directory ? { directory: session.directory } : {}) }, + }) } } catch (error) { console.error("Failed to create session in directory:", error)