Skip to content

Fix path-segment boundary in src/utils/git.ts fileMatchesAny + add fals…#57

Open
jayminwest wants to merge 2 commits into
mainfrom
warren/run_r8kk4nzyt55k
Open

Fix path-segment boundary in src/utils/git.ts fileMatchesAny + add fals…#57
jayminwest wants to merge 2 commits into
mainfrom
warren/run_r8kk4nzyt55k

Conversation

@jayminwest

Copy link
Copy Markdown
Owner

Summary

mulch: fix path-segment boundary in fileMatchesAny (sd mulch-9465)

Run

  • Warren run: run_r8kk4nzyt55k
  • Agent: pi
  • Cost: $0.371 (28 in / 4.7k out / 332.4k cache-r)

Seeds

  • mulch-9465 — Fix path-segment boundary in src/utils/git.ts fileMatchesAny + add false-positive coverage

Commits (2)

  • c2ea972 mulch: fix path-segment boundary in fileMatchesAny (sd mulch-9465)
  • 1db9270 chore(warren): seeds state

Files changed

.seeds/issues.jsonl         |  6 +++---
 src/utils/git.ts            | 10 +++++++++-
 test/commands/prime.test.ts | 11 +++++++++++
 3 files changed, 23 insertions(+), 4 deletions(-)

Prompt

Show prompt
work on sd mulch-9465

🤖 Opened by warren run run_r8kk4nzyt55k

warren-agent and others added 2 commits June 15, 2026 10:47
fileMatchesAny previously used raw String.endsWith, so 'cli.ts'
falsely matched 'src/other-cli.ts'. Require the longer side to have
a '/' immediately before the suffix so matches align on path
segments. Equal strings still match.

Add false-positive coverage in test/commands/prime.test.ts asserting
'cli.ts' vs 'src/other-cli.ts' and 'prime.ts' vs 'src/commands/reprime.ts'
both return false, while boundary-aligned suffixes still match.
@jayminwest jayminwest enabled auto-merge (squash) June 15, 2026 10:47
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.

1 participant