Skip to content

fix: check for RTK heading instead of bare substring in rules files - #3504

Open
mmustafasenoglu wants to merge 1 commit into
rtk-ai:developfrom
mmustafasenoglu:fix/rules-substring-false-positive
Open

fix: check for RTK heading instead of bare substring in rules files#3504
mmustafasenoglu wants to merge 1 commit into
rtk-ai:developfrom
mmustafasenoglu:fix/rules-substring-false-positive

Conversation

@mmustafasenoglu

Copy link
Copy Markdown

Fixes #3406

The Cline/Windsurf/Kilo/Antigravity installers checked if the rules file contained "RTK" or "rtk" to detect existing configuration. This falsely matched unrelated content — e.g. a Redux project's .clinerules mentioning "RTK Query" would cause the installer to skip silently and report success.

Changed all four checks to look for the actual heading the installer writes: "# RTK - Rust Token Killer". This is specific enough to avoid false positives while still correctly detecting existing RTK installations.

The Cline/Windsurf/Kilo/Antigravity installers checked if the rules file
contained "RTK" or "rtk" to detect existing configuration. This falsely
matched unrelated content (e.g. "RTK Query" in a Redux project).

Changed to check for the actual heading the installer writes:
"# RTK - Rust Token Killer"

Closes rtk-ai#3406
Copilot AI lite review requested due to automatic review settings August 9, 2026 19:43

Copilot AI left a comment

Copy link
Copy Markdown

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 reached their quota limit.

@CLAassistant

CLAassistant commented Aug 9, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

Cline/Windsurf/Kilo/Antigravity install skips silently if the project's rules file contains the substring "rtk" — e.g. "RTK Query" in a Redux project

3 participants