Repository navigation
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit 54729c0. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Part of #673: P0 — Avoid false asynchronous warm plans. This PR does not close the broader tracking issue.
Why
Previously, a synchronous prop-reading child was conservatively treated as potentially asynchronous. Its parent emitted an empty warm batch and eagerly evaluated child props even when the child had no async plan. With an earlier suspended sibling, a Proxy-backed prop getter ran twice before the child was actually reached.
The new proof is attached to each JSX call site rather than assuming a component's props are globally safe. Async reachability still propagates transitively, and server/universal warming behavior is unchanged.
Performance
Existing production-browser work gate, with equivalent rendered output:
The realistic 100-component fixture shrank from 70,799 to 52,101 generated bytes. The independent 16-file fixed corpus improved by 808 raw bytes, 363 minified bytes, and 44 gzip bytes.
Validation
pnpm syncpnpm format:checkpnpm typecheck— its unrelated Solanapretypecheckcannot run in this worktree because a required uncached registry package returns HTTP 403.pnpm --config.enable-pre-post-scripts=false run typecheck— the complete root typecheck body passed; only that unrelated prehook was skipped.pnpm test— the entire monorepo suite was not run.pnpm exec vitest run --project octane --project octane-prod --silent=passed-only— 788 files / 11,283 tests passed.pnpm exec vitest run packages/octane/tests/parallel-use.test.ts packages/octane/tests/ssr-parallel-use.test.ts --project octane --project octane-prod --silent=passed-only— 90 tests passed after the final sync.pnpm --dir benchmarks/signal-favoring bench:work— all 12 existing production operation gates pass without changed ceilings.node benchmarks/bench.mjs --quick compiler-throughput codegen-sizepnpm changeset:checkRisk / follow-ups
The optimization is limited to the DOM client's existing same-module warm graph. Unsafe or unproven call sites continue to retain their previous warming behavior; no public API, authoring contract, runtime representation, or server plan changes.
Provenance
agent-authored)Note
Medium Risk
Changes compiler warm-graph logic on the client Suspense/parallel-use path; unproven call sites keep conservative behavior, but incorrect proofs could skip needed warming or change render timing.
Overview
The DOM client compiler no longer treats synchronous same-module children that only read plain props as async warm targets when each JSX call site passes those keys as own attributes—so parents stop emitting empty warm batches that eagerly evaluate child props while an earlier sibling is still suspended.
classifySameModuleWarmPotentialnow records which prop keys a component reads (flat destructuring, aliases,props.foo) and tracks per–call-site JSX edges instead of component names only. A fixed-point pass andwarmCallsiteOwnsRequiredPropsrequire every required key at that edge (rejecting spreads,__proto__, missing keys, etc.); unsafe patterns still force the old conservative warming.warmKidsfiltering uses the same proof so prop reads are not warmed speculatively.Adds Suspense regressions (Proxy-backed props,
key/ref) and extends the signal-favoring benchmark chain with passed-throughkindprops to stress this path.Reviewed by Cursor Bugbot for commit ca9dcb7. Bugbot is set up for automated code reviews on this repo. Configure here.