Docs: explain RSC client references for compiled JS#4209
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
More reviews will be available in 16 minutes and 27 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?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 credits. 🚦 How do rate 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 see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughAdds an RSC documentation subsection for compiled-to-JS component languages, covering wrapper modules, client-reference manifest entries, and manifest refresh/restart considerations. ChangesRSC compiled-to-JS client-reference guidance
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested labels
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Code Review — PR 4209 (docs-only)Overall: LGTM with two minor suggestions. Verified all technical claims against the implementation. Paths, env-var names, and the JSON shape all match the source. Wrapper-file pattern and placement of the use-client directive are correct. Two minor points (inline below):
|
28ca734 to
94ade6c
Compare
Greptile SummaryThis PR expands the RSC auto-bundling docs for compiled-to-JS component languages. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (1): Last reviewed commit: "Docs: explain RSC client references for ..." | Re-trigger Greptile |
Review of latest commit (94ade6c)Overall: Docs are accurate and well-structured. One path inconsistency to address. Verified all technical claims against the implementation:
One issue (inline): Pattern 1 shows the ReScript file at The closing paragraph's |
Code ReviewDocs-only PR. I verified the technical claims against the implementation. Accuracy checkAll three patterns check out against the source:
The wrapper-file pattern and import path in the code block are both correct. Minor gap: undocumented staleness warningThe resolver emits a non-fatal Nit: heading placementThe new section sits between "When to use Overall: accurate and useful addition. One suggestion for improving debuggability on the watch-restart item. |
|
Validation update after generated-docs refresh and review fix at 8465cc3:
merge_authority: none |
Adversarial PR Review — 4209 (docs-only) |
Adversarial PR Review — 4209 (docs-only)PR: Docs: explain RSC client references for compiled JS Technical accuracy: VERIFIEDAll implementation-backed claims confirmed against
FindingsDISCUSS — Missing cross-reference between new section and existing Transpiled Languages section The new "Compiled-to-JS languages and RSC client references" section (line 634) and the existing "Transpiled Languages (ReScript, Reason, etc.)" section (line 682) overlap in audience and solution but neither references the other. A ReScript developer using RSC needs to address two independent concerns:
Pattern 1 of the new section solves both simultaneously — the Suggested fix: Add a forward reference at the end of Pattern 1 ("This wrapper also resolves the component naming issue described in Transpiled Languages below — no second wrapper needed") and a backward reference in the existing "Transpiled Languages" section noting that the wrapper needs FOLLOWUP — Pattern 3 omits the observable staleness signal
NON_BLOCKING_DECISION — PR body transparently notes hooks were bypassed because the lane worktree has no NON_BLOCKING_DECISION — merge_authority: none
Merge-gate state
|
|
Validation update after review-fix commit 2926c20:
merge_authority: none |
Review: Docs – RSC client references for compiled-to-JS languagesOverall: The documentation is accurate, well-structured, and fills a real gap. The JSON manifest shape ( Process concern:
|
Adversarial PR Review — PR 4209PR: Docs: explain RSC client references for compiled JS Merge-gate state
Technical accuracy: VERIFIEDAll implementation-backed claims confirmed against
Previously raised issues (path inconsistency between patterns, missing cross-references, missing staleness-warning text) are all resolved in the current head (2926c20). FindingsFOLLOWUP — Manifest The manifest example shows FOLLOWUP — Staleness warning text is paraphrased Pattern 3 quotes
The NON_BLOCKING_DECISION — PR body transparently documents this: no NON_BLOCKING_DECISION — AI reviews rate-limited CodeRabbit and Codex both hit usage limits; Greptile marked "safe to merge." AI reviews are advisory only. No BLOCKING items surfaced. No BLOCKING or DISCUSS findings. Ready for a maintainer approval. |
|
Validation update after review-fix commit 14f661b:
merge_authority: none |
Final Review — PR 4209 (docs-only)Overall: Accurate and ready for maintainer approval. One nit on the warning-text excerpt. I verified all implementation-backed claims in the new section against
The cross-references between the new section and the existing "Transpiled Languages" section are bidirectional and both anchor slugs resolve correctly. The path consistency across patterns is fixed. The Minor nit (inline): The staleness warning excerpt on Pattern 3 uses |
Why
Fixes #4202. The RSC auto-bundling docs explained normal
'use client'classification and non-RSC ReScript wrapper files, but did not explain how compiled-to-JS component languages should align with the RSC client-reference discovery manifest. That left apps using ReScript or similar languages to infer whether the manifest should point at source files, compiled output, or wrapper modules.What changed
ssr-generated/rsc-client-references.json/RSC_MANIFEST_CLIENT_REFERENCES_JSONand the{ "refs": [...] }shape.Validation
git diff --check/Users/justin/Codex/react_on_rails/node_modules/.bin/prettier --check /Users/justin/.codex/worktrees/e6a1/react_on_rails-4202-rescript-rsc/docs/oss/core-concepts/auto-bundling-file-system-based-automated-bundle-generation.mdNotes
--no-verifybecause this fresh lane worktree has nonode_modules, so the Prettier hook cannot resolveprettier; the available Homebrewlychee 0.24.2also cannot parse the repo.lychee.toml(include_fragments = false). The equivalent targeted Prettier and whitespace checks above passed, and this docs patch adds no new Markdown links.Summary by CodeRabbit
refsmatch compiled module paths, and refreshing discovery by restarting watch processes after adding new client boundaries.Merge Rationale / Closeout
Merged on 2026-06-25 by Justin Gordon after the docs-only lane reached the merge gate:
14f661bcc4e3784f83416ea0d8a7b75d56936bf6.not_user_visibledocs-only change.llms-full.txt, no package source, dependency, workflow, or lockfile changes.Final state: merged. Linked issue #4202 closed as completed.