Skip to content

[BUG] Windows - scope path display breaks (splits on / only) #204

@mynameistito

Description

@mynameistito

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions