Repository navigation
Commit 03fbb9d
fix(workspace): attribute a drive-root project's snapshot to
`snapshotProjectOf` joined the path segments before the snapshot folder, so a
project opened at a Windows drive root came back as the bare drive `C:`, which
resolves to that drive's current directory rather than its root. It now returns
the platform's root (`/`, `C:\`, or a UNC share root) for a root-level project.
The function takes an optional path implementation so the Windows behaviour is
tested on every platform. Found in the v0.12.4 release PR review.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018fJ3X7pcGT4R9yzjsJnqsVC:\, not C:
1 parent 1d715c6 commit 03fbb9d
2 files changed
Lines changed: 18 additions & 4 deletions
File tree
- packages/opencode
- src/altimate/workspace
- test/skill
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | | - | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
63 | 71 | | |
64 | 72 | | |
65 | 73 | | |
| |||
0 commit comments