Repository navigation
fix: reduce Suspense retry reveal window to 100ms - #1798
Merged
Merged
Conversation
trueadm
marked this pull request as ready for review
October 5, 2026 22:57
Contributor
Benchmark report
Compares js-framework: 1k/10k row operationsAll 20 timed operations (20 without a verdict)
All 64 work counters are unchanged. Application bundle size (bytes)
52 other measured values are unchanged. Public-import reachability bundles (bytes)
101 other measured values are unchanged. |
7 of 8 tasks
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
Reduce the shared Suspense retry reveal window from 300ms to 100ms. When ready content is staged behind a visible fallback, Octane publishes it at the shorter deadline; an already-fulfilled tracked promise still reads synchronously.
Why
A fallback was being retained for as long as 300ms after its content was ready. A 100ms window retains time to coalesce closely spaced retries while reducing that deliberate delay.
Changes
Validation
pnpm format:check(targeted checks instead)pnpm typecheck(targeted checks instead)pnpm test(targeted checks instead)vitestwas unavailable after dependency installation failed.pnpm sync: blocked by local dependency setup.--pm-on-fail=warnand frozen lockfile progressed but failed the active minimum-release-age check:[email protected]and[email protected]are absent from that registry's manifest. The lockfile and package policies were not changed.git diff --checkRisk / follow-ups
Closely spaced slow requests may reveal more intermediate fallbacks within the shorter window. This is a deliberate commit-timing policy change, not a CPU or network speed claim. Default transition holds, explicit transition timeouts, and server deadlines retain their existing behavior.
Provenance
agent-authored)Codex task · Host:
com-79386Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Medium Risk
This changes production commit timing for Suspense retries globally, which can alter perceived loading UX and timing-sensitive tests, though urgent/act bypass and transition holds limit blast radius.
Overview
Octane shortens the shared Suspense retry-only reveal window from 300ms to 100ms, so ready content behind a visible fallback can commit sooner. Already-visible transition holds and
setTransitionFallbackTimeoutbehavior are unchanged; urgent updates andact()still bypass the delay.The runtime constant
SUSPENSE_RETRY_THROTTLE_MSis updated with comments noting React’s 300ms policy. Docs and the Suspense divergence audit now describe this as an intentional Octane difference, and the conformance ledger reflects renderer-specific deadlines.Tests parameterize the differential Suspense timing suite on
retryWindow(100 vs 300), rename the primary case, and retime streaming SSR hydration replay and universal-renderer delayed-reveal expectations to the new 100ms window.Reviewed by Cursor Bugbot for commit dbc74fc. Bugbot is set up for automated code reviews on this repo. Configure here.