fix(desktop): use shell working directory on initial launch (#10655)

This commit is contained in:
Abhijay Jain
2026-07-27 05:02:44 +05:30
committed by GitHub
parent 87e6a8c9ac
commit 2855b87a65
+11
View File
@@ -847,6 +847,17 @@ const parseArgs = () => {
}
}
if (!dirPath && process.stdin.isTTY) {
try {
const cwd = process.cwd();
if (path.parse(cwd).root !== cwd) {
dirPath = cwd;
}
} catch {
// cwd unavailable; fall through to recentDirs
}
}
return { dirPath };
};