Skip to content

fix: normalize --files paths to forward-slash across platforms (FN-029)#9

Merged
HaipingShi merged 1 commit into
mainfrom
v0/caf71f4383fc0184-8374-2a8b03d5
Jul 14, 2026
Merged

fix: normalize --files paths to forward-slash across platforms (FN-029)#9
HaipingShi merged 1 commit into
mainfrom
v0/caf71f4383fc0184-8374-2a8b03d5

Conversation

@HaipingShi

Copy link
Copy Markdown
Owner

The Windows CI matrix caught a bug invisible to Linux-only local runs.

--files glob expansion used str(Path.relative_to), which yields backslash separators on Windows and wrote them into the committed docs/TASKS.md scope block. The drive-check scope gate matches that block against git output (always forward-slash), so Windows-declared scopes silently failed to match their own changed files, and TASKS.md was not portable across machines.

Patterns are now normalized to forward-slash BEFORE globbing (so a Windows src\dir\*.ts still expands) and all stored paths use Path.as_posix(), including done-report backlinks in TASKS.md/PROGRESS.md. The FN-021 regression test feeds a backslash pattern and asserts the committed Allowed scope has no backslash, enforcing the contract even on Linux (76 total).

Co-authored-by: v0 it+v0agent@vercel.com

The Windows CI matrix caught a bug invisible to Linux-only local runs:
--files glob expansion used str(Path.relative_to), which yields backslash
separators on Windows and wrote them into the committed docs/TASKS.md scope
block. The drive-check scope gate matches that block against git output
(always forward-slash), so Windows-declared scopes silently failed to match
their own changed files, and TASKS.md was not portable across machines.

Patterns are now normalized to forward-slash BEFORE globbing (so a Windows
'src\\dir\\*.ts' still expands) and all stored paths use Path.as_posix(),
including the done-report backlinks in TASKS.md/PROGRESS.md. The FN-021
regression test feeds a backslash pattern and asserts the committed Allowed
scope has no backslash, enforcing the contract even on Linux (76 total).

Co-authored-by: v0 <it+v0agent@vercel.com>
@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
coderail Ready Ready Preview, Comment, Open in v0 Jul 14, 2026 2:11am

@HaipingShi
HaipingShi merged commit 00df563 into main Jul 14, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants