Commit 33b2e0d
authored
fix(serve): normalize Windows path separators in workspace file read responses (#4279)
`workspaceRelative` returned the platform-native separator from
`path.relative`, leaking backslashes into `/file`, `/stat`, `/list`,
and `/glob` response paths on Windows. Surfaced as a Windows-only CI
failure in the `GET /glob > scopes glob matches to cwd` test
(`['sub\\inside.ts']` vs expected `['sub/inside.ts']`).
Always emit POSIX-style separators so SDK consumers see the same
shape across platforms.
🤖 Generated with [Qwen Code](https://github.com/QwenLM/qwen-code)1 parent b208f34 commit 33b2e0d
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
431 | 436 | | |
432 | 437 | | |
433 | 438 | | |
| |||
436 | 441 | | |
437 | 442 | | |
438 | 443 | | |
439 | | - | |
| 444 | + | |
| 445 | + | |
440 | 446 | | |
441 | 447 | | |
442 | 448 | | |
| |||
0 commit comments