fix(paths): preserve native selections across launch and publication

This commit is contained in:
morluto committed 2026-10-26 17:56:47 +08:00
1 parent da526fc014
commit f2b4468183
15 files changed
+536 -95

No files matched your search

@@ -60,6 +60,9 @@ const resolveInputPath = async (
selected: string,
): Promise<Result<string, PathAdmissionFailure>> => {
try {
// Darwin realpath can collapse file/.. even though native lookup rejects
// that traversal. Admit the selected path before canonicalizing it.
await stat(selected);
return ok(await realpath(selected));
} catch (cause: unknown) {
return err(