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(sync): Fix auto-sync and storage path bugs from v0.4.0
Fixed multiple bugs preventing auto-sync from working correctly:
**Bug 1: Storage path not passed to sync service**
- Sync service wasn't receiving storage path parameter
- Caused sync to use wrong path (.dex instead of configured path)
- Fixed: Pass storagePath to createGitHubSyncService()
**Bug 2: Tilde expansion not working**
- Paths like ~/.dex were used literally, creating ~/ directory
- Fixed: Added expandTilde() function to FileStorage
- Added tests: file-storage.test.ts
**Bug 3: Config path coupled to storage location**
- Project config looked in storage path instead of git root
- Global storage config prevented reading repo-local config
- Fixed: getProjectConfigPath() now always looks in git root
- Config loading no longer depends on storage location
- Added tests: config.test.ts
**Bug 4: Migration for v0.4.0 bug victims**
- Doctor detects tasks in literal ~/ directory
- Doctor --fix migrates tasks to correct location
- Startup warning alerts users to run dex doctor --fix
All tests passing (518/518).
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
0 commit comments