Skip to content

fix: respect directory boundaries in paths and file URLs - #31

Merged
SoonIter merged 8 commits into
mainfrom
fix-serializer-boundaries
Nov 16, 2026
Merged

SoonIter merged 8 commits into
mainfrom
fix-serializer-boundaries

Conversation

@SoonIter

@SoonIter SoonIter commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

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, and core-utils are 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.

Copilot AI balanced review requested due to automatic review settings November 16, 2026 08:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T08:58:18.241456Z
We couldn’t complete this review. Comment @codex review to try again.
18586dd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@SoonIter SoonIter changed the title fix: respect path and time unit boundaries fix: respect directory boundaries in paths and file URLs Nov 16, 2026
@SoonIter
SoonIter merged commit cb3c5a0 into main Nov 16, 2026
7 checks passed
@SoonIter
SoonIter deleted the fix-serializer-boundaries branch November 16, 2026 15:40
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