Repository navigation
fix: respect directory boundaries in paths and file URLs - #31
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Addresses the path-matching part of #30. The time-normalization fix was handled separately in #32.
Use explicit directory boundaries for plain paths and file URLs so sibling directories such as
project-old,project.old, andcore-utilsare not mistaken for the configured root or workspace. Preserve unmatched Windows file URLs and recognize ANSI color codes around POSIX and Windows paths.Ignore trailing separators in configured directory matchers so
root: '/project/'produces<ROOT>/src/a.ts, preserving the separator before child paths. Apply the same behavior to workspace paths and file URLs.Regression coverage uses arrays of
{ input, output }cases for plain paths, file URLs, Windows paths, and trailing separators. Each case runs independently, including sibling names, workspace-to-root fallback, quoted and colored paths, stack locations, and repeated matches.Validation: 150 tests,
pnpm check, build, and package creation pass. Confirmed trailing-separator regressions fail before the fix. Ubuntu, Windows, and CodeQL checks all pass.