Skip to content

Discovery decodeProjectDir corrupts hyphenated paths #5

Description

@rajfirke

Description

decodeProjectDir() replaces ALL hyphens with slashes. A project at /Users/rfirke/my-project encoded as -Users-rfirke-my-project is decoded as /Users/rfirke/my/project (wrong).

Claude Code uses a specific encoding that replaces / with -. Paths with literal hyphens get corrupted.

Fix

Check if the decoded path exists on disk and try alternative decodings, or document the limitation.

Location

internal/discovery/discovery.go:44

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingparserParser related

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions