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
Description
decodeProjectDir()replaces ALL hyphens with slashes. A project at/Users/rfirke/my-projectencoded as-Users-rfirke-my-projectis 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