fix: match Claude Code's project key encoding for special characters#14
Closed
tenishevnikita wants to merge 1 commit intovakovalskii:mainfrom
Closed
fix: match Claude Code's project key encoding for special characters#14tenishevnikita wants to merge 1 commit intovakovalskii:mainfrom
tenishevnikita wants to merge 1 commit intovakovalskii:mainfrom
Conversation
…cial chars Claude Code encodes project directory paths by replacing ALL non-alphanumeric characters (except hyphens) with '-'. CodeDash was only replacing '/' and '.', leaving underscores and other special characters as-is. This caused session detail files to not be found for any project path containing underscores (e.g. personal_projects → expected -personal-projects but searched -personal_projects). Changed regex from /[\/\.]/g to /[^a-zA-Z0-9-]/g in 4 locations: - loadSessions() enrichment - deleteSession() - exportSessionMarkdown() - findSessionFile()
vakovalskii
added a commit
that referenced
this pull request
Apr 6, 2026
Merged PRs: - PR #14 (@tenishevnikita): Fix project key encoding — use /[^a-zA-Z0-9-]/g to match Claude Code's encoding (fixes paths with underscores). Closes #16. - PR #19 (@dimstunt): cmux proper Resume (new-workspace) and Focus (CMUX_WORKSPACE_ID env var) support. Windows fixes (#15): - Skip ps/grep process scanning on win32 (no ps aux on Windows) - Add stdio:pipe to lsof calls to suppress error output - Prevents mojibake error spam in PowerShell Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Owner
|
Merged manually in v6.3.3. Applied the regex fix to all 5 locations. Thanks @tenishevnikita! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
-) with-(e.g.personal_projects→personal-projects). CodeDash only replaced/and., leaving_and other special chars intact, so the computed key didn't match the actual directory name./[\/\.]/gto/[^a-zA-Z0-9-]/gin all 4 places where project keys are computed (loadSessions,deleteSession,exportSessionMarkdown,findSessionFile).Example
/home/user/personal_projects-home-user-personal_projects-home-user-personal-projects/home/user/hackathon_april-home-user-hackathon_april-home-user-hackathon-aprilTest plan
_in path now correctly resolve detail files (was 0 before fix)codedash listand web UI both show correct data