Commit 369e08a
committed
fix: normalize Windows-style paths on non-Windows hosts (fixes #test regression)
normalize_file_path() only lowercased drive-letter paths on sys.platform==
"win32", so on Linux/WSL paths like "d:\_Cpp_Digest\foo" and
"d:\_cpp_digest\foo" normalized to different strings. This caused
_determine_project_for_conversation() to miss workspace_path_to_id lookups
when Cursor stored the same path in different cases across storage locations
(e.g. project layout context vs workspace.json).
Fix: detect Windows-style absolute paths (matching /^[a-z]:[/\\]/) and apply
the same slash normalization and lowercasing on all platforms. All 137 tests
now pass.1 parent dc1af1b commit 369e08a
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | | - | |
47 | 49 | | |
48 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
| |||
0 commit comments