Gate React on Rails AI prompt context - #1184
Conversation
|
Warning Review limit reached
Next review available in: 6 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThis PR gates the React on Rails section in generated AI analysis prompts. The main changes are:
Confidence Score: 4/5The changed CLI prompt path needs fixes around app-root detection and metadata file reads.
package/configExporter/cli.ts Important Files Changed
Reviews (1): Last reviewed commit: "Gate AI prompt React on Rails context" | Re-trigger Greptile |
ReviewOverall this is a clean, well-scoped fix. Detection logic (package.json deps, A couple of minor points:
No security or performance concerns — file reads are scoped to the already-trusted |
5f1a525 to
0f685a4
Compare
Review SummarySolid, well-tested change. The detection logic (package.json / Gemfile / Gemfile.lock, with upward monorepo-aware walking) is defensive ( Findings:
No security or performance concerns — all detection is local, synchronous file reads bounded by directory depth, and gated behind doctor-mode's best-effort prompt generation (a failure here already can't break the export itself). |
Review summaryOverall this is a clean, well-tested change: gating the React on Rails section behind local detection (via Two minor points (left as inline comments / noted here):
No security or correctness issues found — all new file reads are scoped to specific filenames ( |
Review SummaryReviewed the change gating the "React on Rails Standard Configuration" section of the generated Overall: solid, well-tested change.
Test coverage in Minor points:
No security or correctness blockers found. |
## Summary Stamps the **`v10.2.0`** release section in `CHANGELOG.md` and adds the user-visible entries that were still missing for PRs merged since `v10.1.0`. Header format matches the repo convention (`## [v10.2.0] - July 3, 2026`) and is parseable by `rakelib/release.rake`'s `extract_changelog_section` (`## [v<npm-version>]`), so `bundle exec rake release` / `sync_github_release` will pick up the notes automatically. ### Changelog changes - **Version header**: inserted `## [v10.2.0] - July 3, 2026` immediately after `## [Unreleased]`; all accumulated entries now live under it, and `## [Unreleased]` is empty. - **Compare links**: `[unreleased]` now compares `v10.2.0...main`; added `[v10.2.0]: …/compare/v10.1.0...v10.2.0`. ### New entries added (were missing) | PR | Section | Note | | --- | --- | --- | | [#1187](#1187) | Added | Babel 8 peer dependency support + preset option compatibility | | [#1184](#1184) | Added | Folded into the #695 AI-prompt entry (gates the React on Rails section on app detection) | | [#1142](#1142) | Fixed | Rspack dev-server config no longer loads in static watch mode (fixes #1137) | ### Already documented (carried into v10.2.0) `#1180`, `#695`, `#1141`, `#1150`, `#1179`, `#1192`, `#1127`, `#1178`, `#1161`, `#1147`. ### Reviewed and intentionally excluded (not user-visible) Docs: `#1145`, `#1148`, `#1152`, `#1155`, `#1183`, `#1188`, `#1189`, `#1193`. CI: `#1151`, `#1168`, `#1171`. Tests / fixtures: `#1128`, `#1154`, `#1167`, `#1186`. Workflow / agent tooling: `#1153`, `#1176`, `#1182`. (`#1107` is already documented under `## [v10.1.0]`.) ## Next step After merge, run the repo's release task (no args) — it reads `v10.2.0` from the changelog and creates the GitHub release from this section. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Summary
package.json,Gemfile, orGemfile.lockwithout adding a new CLI flag.AiPromptGenerator.generatePrompt(...)default behavior unless callers explicitly disable the section.Closes #1162
Validation
PATH=/Users/justin/.local/share/mise/installs/node/22.20.0/bin:/Users/justin/.local/share/mise/installs/yarn/1.22.22/bin:$PATH yarn test --runInBand --runTestsByPath test/package/configExporter/cli.test.js test/package/configExporter/aiPromptGenerator.test.jsPATH=/Users/justin/.local/share/mise/installs/node/22.20.0/bin:/Users/justin/.local/share/mise/installs/yarn/1.22.22/bin:$PATH yarn type-checkPATH=/Users/justin/.local/share/mise/installs/node/22.20.0/bin:/Users/justin/.local/share/mise/installs/yarn/1.22.22/bin:$PATH yarn lintcodex review --base origin/maincleanNotes
yarn test --runInBandwas not used as the deciding check because this worktree lacks generated JS build artifacts and unrelated existing suites fail before this slice completes..agents/bin/validateis affected by the same local bare-node/mise shim hang observed in this batch; targeted checks above were run with the direct Node/Yarn path.