Skip to content

fix: replace spaces with dashes in project key path mapping#4

Merged
EdgeCaser merged 1 commit intomainfrom
fix/spaces-in-project-key
Mar 22, 2026
Merged

fix: replace spaces with dashes in project key path mapping#4
EdgeCaser merged 1 commit intomainfrom
fix/spaces-in-project-key

Conversation

@EdgeCaser
Copy link
Copy Markdown
Owner

@EdgeCaser EdgeCaser commented Mar 22, 2026

Summary

  • cwd_to_project_key() was not replacing spaces with dashes, but Claude Code does — so paths like Untitled Gods Book produced a key mismatch and memsync harvest failed with "no Claude Code session directory found"
  • Added .replace(" ", "-") to both Windows and Unix branches
  • Added test cases for paths with spaces on both platforms

Test plan

  • Existing harvest tests pass (28 passed, 6 skipped on Windows)
  • Manual: run memsync harvest from a directory with spaces in the path

🤖 Generated with Claude Code

Claude Code replaces spaces with dashes in project directory names
(e.g. "Untitled Gods Book" → "Untitled-Gods-Book"), but memsync only
replaced colons and path separators. This caused harvest to fail with
"no Claude Code session directory found" for any project path containing
spaces.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@EdgeCaser EdgeCaser merged commit b4fb534 into main Mar 22, 2026
7 checks passed
@EdgeCaser EdgeCaser deleted the fix/spaces-in-project-key branch March 22, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant