Commit c57008d
fix: handle Windows path stripping failures gracefully
On Windows, path stripping may fail due to case sensitivity or path
format differences between the tracked access path and workspace root.
Previously this caused an error like:
"Invalid relative path 'D:\a\...\project': path is not relative"
This change treats such paths as outside the workspace (returning None)
rather than failing, which is consistent with how we handle paths that
don't match the workspace prefix.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 14167c2 commit c57008d
1 file changed
Lines changed: 8 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
188 | 185 | | |
189 | 186 | | |
190 | 187 | | |
| |||
0 commit comments