Commit 3d87d79
committed
feat: use git remote URL for cross-machine project memory sync
Resolves #38
Problem:
- Project memories use directory path hash as identifier
- Different machines have different paths for the same project
- Result: project memories don't sync across machines
- Setting projectContainerTag affects ALL projects (memory pollution)
Solution:
- Use git remote origin URL as primary project identifier
- Same git remote = same project tag across all machines
- Fallback to directory hash if no git remote
Benefits:
- Transparent: works without user configuration
- Automatic sync for same repository across machines
- Automatic isolation for different repositories
- Backward compatible: falls back to existing behavior1 parent 3aa09ef commit 3d87d79
1 file changed
Lines changed: 27 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
18 | 36 | | |
19 | 37 | | |
20 | 38 | | |
| |||
36 | 54 | | |
37 | 55 | | |
38 | 56 | | |
39 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
40 | 65 | | |
41 | 66 | | |
42 | 67 | | |
| |||
45 | 70 | | |
46 | 71 | | |
47 | 72 | | |
48 | | - | |
| 73 | + | |
0 commit comments