Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion landing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@types/three": "^0.184.1",
"framer-motion": "^12.40.0",
"lucide-react": "^1.17.0",
"next": "16.3.3",
"next": "16.3.8",
"react": "19.2.4",
"react-dom": "19.2.4",
"three": "^0.184.0"
Expand Down
9 changes: 9 additions & 0 deletions src/services/organizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,13 @@ async function organizerSourcesMatch(left: string, right: string): Promise<boole
const rightAbsolute = path.normalize(path.resolve(right));
if (leftAbsolute === rightAbsolute) return true;

// realpath() performs I/O against the target. For provider-backed FUSE
// mounts that I/O can block when the remote is degraded, so mounted
// sources skip realpath and conservatively compare as non-matching.
const mountBase = path.normalize(path.resolve(config.mountBase));
const isMountedPath = (value: string) => value === mountBase || value.startsWith(mountBase + path.sep);
if (isMountedPath(leftAbsolute) || isMountedPath(rightAbsolute)) return false;

const [leftReal, rightReal] = await Promise.all([
fsp.realpath(leftAbsolute).catch(() => leftAbsolute),
fsp.realpath(rightAbsolute).catch(() => rightAbsolute),
Expand All @@ -818,6 +825,8 @@ async function organizerSourcesMatch(left: string, right: string): Promise<boole

async function organizerSourceKey(source: string): Promise<string> {
const absolute = path.normalize(path.resolve(source));
const mountBase = path.normalize(path.resolve(config.mountBase));
if (absolute === mountBase || absolute.startsWith(mountBase + path.sep)) return absolute;
return fsp.realpath(absolute).then((resolved) => path.normalize(resolved)).catch(() => absolute);
}

Expand Down
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.561.0",
"next": "16.3.3",
"next": "16.3.8",
"next-themes": "^0.4.6",
"react": "19.2.1",
"react-dom": "19.2.1",
Expand Down
Loading