Commit fe53987
fix: detect Unix-style absolute paths on Windows in normalize_relative_path
On Windows, Path::is_absolute() does not recognise Unix-style paths
like /home/user/agents/ctf.md (no drive letter). These were falling
through to the relative path branch and being emitted verbatim, producing
paths like '{{ workspace }}//home/user/agents/ctf.md'.
Add a supplementary starts_with('/') check so these paths are correctly
treated as absolute and fall back to filename-only.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 7d0e541 commit fe53987
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
567 | | - | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
568 | 573 | | |
569 | 574 | | |
570 | 575 | | |
| |||
0 commit comments