Repository navigation
fix(coderd/x/chatd): match slashless rule globs at the project root - #239
Conversation
|
@codex review
|
Codex Review Summary: ✅ CompletedThis 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. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Merge evidence for head
|
Follow-up to #235. A glob-scoped Cursor rule now matches its globs verbatim, relative to the rule's project root. Before this change, a glob without a
/(such as*.ts) was rewritten to**/*.tsand matched at any depth. Cursor documents*.tsas matching only files in the project root, so #235 attached such rules more often than Cursor does.ruleGlobMatchincoderd/x/chatd/fork_scoped_rules.godrops the**/rewrite. Rules that want every depth must say**/*.ts.fork_scoped_rules_internal_test.goreplacesMatchingFileAtAnyDepthwith three cases:*.tsattaches forproj/app.ts, does not attach forproj/src/app.ts, and**/*.tsattaches forproj/src/app.ts.Negative control: putting the
**/rewrite back makesSlashlessGlobNotNestedfail, because*.tsthen matchessrc/app.tsand the rule body is attached.Validation: fork-ci on this PR. No UAT slot; the change is limited to the matcher and its unit test.
This removes the #235 known gap "a glob without a slash matches at any depth".