Skip to content

fix(search): search_code returns 0 matches when repo path contains spaces on macOS #687

Description

@lg320531124

Bug

search_code returns 0 matches for all patterns when the indexed repository path contains a space character on macOS. This is a common scenario for users with directories like /Users/name/My Project/.

Reproduction

  1. Create or clone a repo into a path with spaces, e.g. /tmp/test repo/
  2. Run index_repository on that path
  3. Run search_code with any pattern that should match
  4. Observe 0 results despite the graph being indexed

Expected

search_code should return matches regardless of spaces in the repo path.

Environment

  • macOS (Darwin)
  • codebase-memory-mcp v0.8.1+

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already existspriority/normalStandard review queue; useful PR with ordinary maintainer urgency.ux/behaviorDisplay bugs, docs, adoption UX

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions