Skip to content

detect_changes fails on Windows paths with spaces ("project path contains invalid characters") #137

@shekthesnek

Description

@shekthesnek

Bug Report

Tool: detect_changes
Version: v0.5.6 (released 2026-03-23)
Platform: Windows 11 Home (amd64)

Description

The detect_changes tool fails with "project path contains invalid characters" when the project path contains spaces. All other tools work correctly with the same path.

Reproduction

Project path: C:\Users\abish\OneDrive - PomeGran Inc\Files\kpi-dashboard

This path contains spaces due to the OneDrive folder name. Calling detect_changes with this path produces the error immediately. No other tool is affected.

Working tools (same path, no issues):

  • search_graph
  • trace_call_path
  • query_graph
  • get_code_snippet
  • index_repository
  • ...and 7 other tools (12 total work fine)

Failing tool:

  • detect_changes — returns "project path contains invalid characters"

Expected Behavior

detect_changes should handle paths containing spaces, consistent with the other 12 tools that already work correctly.

Likely Root Cause

detect_changes probably shells out to git diff (or similar) without properly quoting the path argument. When the path contains spaces, the unquoted string is split by the shell and rejected.

Related Issues

This appears to be the same class of bug as #80 and #121 (Windows path handling), which were previously fixed for other tools but missed for detect_changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions