Two places extract a folder name from a path by splitting on forward slash:
apps/desktop/src/main.ts line 506: scopePath.replace(/\/+$/, "").split("/").pop()
apps/local/src/web/shell.tsx line 276: name.replace(/\/+$/, "").split("/")
Windows paths use backslashes, so both produce wrong results. Fix is straightforward: use path.basename() or split on [/\].
Identified with AI assistance.
Two places extract a folder name from a path by splitting on forward slash:
apps/desktop/src/main.tsline 506:scopePath.replace(/\/+$/, "").split("/").pop()apps/local/src/web/shell.tsxline 276:name.replace(/\/+$/, "").split("/")Windows paths use backslashes, so both produce wrong results. Fix is straightforward: use
path.basename()or split on[/\].Identified with AI assistance.