You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Windows path handling - replace hardcoded forward slashes with Node.js path module
This commit fixes Windows compatibility issues caused by hardcoded forward slash (/) path separators. The changes ensure proper path handling across both Windows and Unix-like systems.
Changes:
- src/services/embedding.ts: Use path.join() for cache directory path
- src/services/sqlite/connection-manager.ts: Use path.dirname() instead of lastIndexOf('/')
- src/services/tags.ts: Use path.sep and path.normalize() for cross-platform path handling
- src/web/app.js: Normalize Windows backslashes before splitting paths
- tests/windows-path.test.ts: Add comprehensive tests for Windows path handling
All existing tests pass (13 tests), and new tests verify correct behavior on both Windows and Unix paths.
0 commit comments