Skip to content

feat(octane): commit unrelated transitions independently - #2222

Merged
trueadm merged 10 commits into
mainfrom
feat/parallel-transitions-main
Oct 23, 2026
Merged

trueadm merged 10 commits into
mainfrom
feat/parallel-transitions-main

Conversation

@trueadm

@trueadm trueadm commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

#2218 is now on main, and main is merged into this branch (6541257). The diff is only this PR's change.

This branch now also contains #2223 (React 19.3's parallel useDeferredValue cases, plus its runtime fix for a deferred value's final attempt while a root holds its first render). #2223 was merged into this branch, so this PR lands both.

Summary

Re-lands #2165 (parallel transitions, matching React 19.3) on main. Unrelated transitions commit independently: a transition that suspends holds only its own work.

#2165 merged into next on 2026-10-20. But #2103 had already integrated next into main on 2026-10-17, and next was later deleted from origin, so the change never reached main. This is the #2165 squash commit (2af686e) without its useOptimistic fix. #2218 scopes optimistic reverts to their own transition batch, so this change relies on it rather than adding a second mechanism for the same thing.

Refs #2053.

Changes

  • runtime/transitions.ts: stagedRevealGroup(flushed) groups held boundaries that hold a common root batch, transitively, and returns one fully staged group at a time. Held boundaries with no batch hold (a transition that folded no hook work, such as root.render) form one group of their own, the barrier from before parallel transitions, and never join a batch's group (third commit, after Bugbot).
  • runtime/suspense.ts:
    • flushStagedRevealsIfReady flushes each ready group once per call, including when a view transition defers one of them.
    • A deferred run commits only the members still staged, and does nothing when none are left.
    • attachResume: when a thenable this boundary suspended on settles after a newer one has replaced it, a held boundary still on screen retries the batches it holds (TRANSITION_ROOT_DRIVER.retry). The newer thenable keeps its resume and fallback timeout. A boundary already showing its fallback (hidden) waits for its current thenable.
  • docs/differences-from-react.md, Scheduler section: a parallel-transitions paragraph, including that Octane has no 10-lane reuse. SUSPENSE_DIVERGENCE.md audit item Add changeset for the vyre→octane rename release #1 is updated too.
  • .changeset/parallel-transitions.md: octane minor. It doesn't mention optimistic reverts; fix(runtime): scope optimistic reverts to transition batches #2218's changeset covers those.
  • New tests/conformance/parallel-transitions.test.ts and fixture, 11 cases:
    • ported from ReactTransition-test.js: separate and shared boundaries, reversed resolution order, same-queue entanglement, per-transition isPending and useOptimistic, and a single-transition control;
    • a hook transition that commits while an unrelated root.render transition is held (third commit);
    • regressions from feat(octane): commit unrelated transitions independently #2165's Bugbot review: a fallback-hidden boundary next to an unrelated group, the fallback deadline after a superseded settle, isPending behind a fallback, and view-transition deferral.

Validation

On this branch (current main, plus the re-land and #2223):

Risk / follow-ups

  • fix(octane): publish resumed hydration events on acceptance #2193's hydration test "publishes a ready boundary when a sibling transition ends" expected a parked hydration boundary's reveal to wait for an unrelated transition: the old global barrier. Per the maintainer's decision, it is now "publishes a ready boundary while an unrelated transition still holds". Gate reveals once its own data lands, Later's separate transition keeps holding, and the primary, native-listener and event assertions run at that point. Sharing one startTransition for both was tried first and doesn't create a two-boundary group: Gate's hold claims the shared batch before Later suspends.

  • fix(runtime): scope optimistic reverts to transition batches #2218's final commits revert a transition's optimistic values once a timeout fallback lets its batch commit around the fallback. The behind-the-fallback case therefore checks only isPending, and leaves the optimistic value to fix(runtime): scope optimistic reverts to transition batches #2218's rule. That narrowed case still fails without this PR's hiddenDom guard.

  • Two of the Bugbot fixes (rescanning waiting groups, and skipping an empty deferred reveal) have no dedicated test. Each is reachable only mid-loop, and public behavior doesn't expose either.

  • Async Actions are unchanged: a transition started while an async Action is in flight joins it, as React's entangled action lane does.

Provenance

  • An agent produced this diff (agent-authored)

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Note

High Risk
Changes core transition/Suspense commit coordination and root suspension/retry paths; incorrect grouping or wakeable handling could cause stuck UI, premature reveals, or wrong commits.

Overview
Re-lands React 19.3 parallel transitions: unrelated startTransition work can commit on its own schedule instead of waiting on another suspended transition. Staging/commit coordination now groups held Suspense boundaries by shared transition batch (stagedRevealGroup) and flushes each ready group independently; superseded thenables on visible holds can retry only the batches they were blocking.

Also aligns useDeferredValue without a Suspense boundary with React: a root holding its first render on the initial value can run a spawned deferred attempt, and suspendRootRender retries on whichever wakeable settles first. Deferred swaps batch into one root.retry(true) per held root.

Docs, audit notes, ledger entries, and conformance tests (parallel-transitions.test.ts, extended deferred-value.test.ts) record the new behavior.

Reviewed by Cursor Bugbot for commit 2a13d4d. Bugbot is set up for automated code reviews on this repo. Configure here.

dannyward630 and others added 4 commits October 23, 2026 03:24
A transition batch can finish while a Suspense boundary renders: an urgent
update that supersedes a held transition releases the hold inside the
boundary's render (releaseHeldTransition -> releaseTransitionHookHolder ->
finishTransitionHookBatch). The batch-scoped useOptimistic revert then
scheduled its block while another component was on the stack, so dev logged
"Cannot update a component while rendering a different component" and the
block was flagged as a cross-render update. The global listener this
replaced ran under the publish-depth guard; schedule the revert under it
again via scheduleHookPublication.

Also update the TRANSITION_PENDING_COUNT comment: optimistic lifetimes no
longer subscribe to it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Re-lands #2165 on main. It merged into `next` on 2026-10-20, after
#2103 had already integrated `next` into `main`, and `next` was then
deleted, so the change never reached `main`.

This is the #2165 squash commit (2af686e) without its useOptimistic
fix: #2218 scopes optimistic reverts to their transition batch, so this
change builds on it rather than adding a second mechanism.

React 19.3 renders each transition lane on its own, so a suspended
transition no longer holds back an unrelated one:

- The reveal barrier groups held boundaries that hold a common batch
  (stagedRevealGroup), so one transition's boundaries still reveal
  together while unrelated groups commit on their own, each once per
  flush.
- A held boundary still on screen retries its batches when any thenable
  it suspended on settles, keeping the fresher thenable's resume and
  fallback timeout.

Refs #2053.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent feat PR: new feature or capability labels Oct 23, 2026
@trueadm
trueadm marked this pull request as ready for review October 23, 2026 17:42
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
octane-website 801a51d Commit Preview URL

Branch Preview URL
Oct 23 2026, 08:38 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
octane-website-mcp 2a13d4d Commit Preview URL

Branch Preview URL
Oct 23 2026, 08:42 PM

@cursor cursor Bot 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.

Stale Bugbot comment from a previous run.

Comment thread packages/octane/src/runtime/suspense.ts Resolved
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark report

  • 🔴 bundle-size: 85 value(s) increased
  • 🔴 bundle-reachability: 82 value(s) increased

Compares de689bf33, the merge commit's first parent with af1373734 on the same runner. Any increase in a js-framework work counter fails this check; byte changes are a report. Wall time is a report: base and head samples alternate in one browser, and an operation is called slower or faster only when the 95% confidence interval of its ratio excludes ±3%. Workflow run

js-framework: 1k/10k row operations

All 20 timed operations (20 without a verdict)
target operation base ms head ms head/base 95% CI
octane-tsrx run 3.317 2.975 −3.4% −9.0% … ±0.0% ⚪ within noise
octane-tsrx replace 7.675 7.292 −4.4% −10.0% … +6.1% ⚪ within noise
octane-tsrx add 2.617 2.633 +1.7% −3.7% … +4.1% ⚪ within noise
octane-tsrx update 0.087 0.087 −0.9% −4.0% … +3.7% ⚪ within noise
octane-tsrx select 0.006 0.007 −0.0% −3.1% … +4.4% ⚪ within noise
octane-tsrx swap 0.024 0.024 +0.7% −9.4% … +9.8% ⚪ within noise
octane-tsrx remove 0.025 0.026 +10.2% −1.4% … +21.7% ⚪ within noise
octane-tsrx runlots 25.775 27.025 +1.2% −8.8% … +9.5% ⚪ within noise
octane-tsrx select_lots 0.006 0.007 +0.9% −0.9% … +3.6% ⚪ within noise
octane-tsrx clear 47.600 49.050 +0.2% −3.8% … +1.6% ⚪ within noise
octane-jsx run 3.858 4.042 +1.0% −4.8% … +4.2% ⚪ within noise
octane-jsx replace 8.767 8.308 −2.5% −6.0% … +5.8% ⚪ within noise
octane-jsx add 3.192 3.125 ±0.0% −4.7% … +3.1% ⚪ within noise
octane-jsx update 0.179 0.182 +0.7% −1.7% … +1.0% ⚪ within noise
octane-jsx select 0.101 0.101 +0.3% −3.1% … +3.6% ⚪ within noise
octane-jsx swap 0.158 0.152 −4.5% −11.8% … +2.9% ⚪ within noise
octane-jsx remove 0.160 0.162 +6.6% +1.0% … +17.0% ⚪ within noise
octane-jsx runlots 30.075 30.292 −0.5% −5.4% … +5.7% ⚪ within noise
octane-jsx select_lots 0.994 1.019 +1.6% −0.3% … +3.6% ⚪ within noise
octane-jsx clear 57.175 50.025 +1.8% −3.8% … +17.1% ⚪ within noise

All 64 work counters are unchanged.

Application bundle size (bytes)

target metric base head Δ
octane-tsrx js_raw 85,861 85,984 +123 (+0.1%) 🔴
octane-tsrx js_gzip 29,001 29,047 +46 (+0.2%) 🔴
octane-tsrx js_brotli 26,153 26,205 +52 (+0.2%) 🔴
octane-tsrx app_gzip 2,599 2,597 −2 (−0.1%) 🟢
octane-tsrx app_brotli 2,264 2,261 −3 (−0.1%) 🟢
octane-tsrx fw_raw 78,373 78,496 +123 (+0.2%) 🔴
octane-tsrx fw_gzip 26,402 26,450 +48 (+0.2%) 🔴
octane-tsrx fw_brotli 23,889 23,944 +55 (+0.2%) 🔴
octane-tsrx todo_js_raw 98,688 98,811 +123 (+0.1%) 🔴
octane-tsrx todo_js_gzip 33,676 33,713 +37 (+0.1%) 🔴
octane-tsrx todo_js_brotli 30,164 30,202 +38 (+0.1%) 🔴
octane-tsrx todo_app_gzip 2,744 2,743 −1 (−0.0%) 🟢
octane-tsrx todo_app_brotli 2,318 2,319 +1 (+0.0%) 🔴
octane-tsrx todo_fw_raw 92,581 92,704 +123 (+0.1%) 🔴
octane-tsrx todo_fw_gzip 30,932 30,970 +38 (+0.1%) 🔴
octane-tsrx todo_fw_brotli 27,846 27,883 +37 (+0.1%) 🔴
octane-tsrx chat_js_raw 97,424 97,547 +123 (+0.1%) 🔴
octane-tsrx chat_js_gzip 33,402 33,442 +40 (+0.1%) 🔴
octane-tsrx chat_js_brotli 30,024 30,032 +8 (+0.0%) 🔴
octane-tsrx chat_app_brotli 2,767 2,769 +2 (+0.1%) 🔴
octane-tsrx chat_fw_raw 90,443 90,566 +123 (+0.1%) 🔴
octane-tsrx chat_fw_gzip 30,229 30,269 +40 (+0.1%) 🔴
octane-tsrx chat_fw_brotli 27,257 27,263 +6 (+0.0%) 🔴
octane-tsrx weather_js_raw 135,582 135,705 +123 (+0.1%) 🔴
octane-tsrx weather_js_gzip 45,194 45,229 +35 (+0.1%) 🔴
octane-tsrx weather_js_brotli 40,051 40,072 +21 (+0.1%) 🔴
octane-tsrx weather_app_brotli 7,238 7,236 −2 (−0.0%) 🟢
octane-tsrx weather_fw_raw 110,736 110,859 +123 (+0.1%) 🔴
octane-tsrx weather_fw_gzip 36,618 36,653 +35 (+0.1%) 🔴
octane-tsrx weather_fw_brotli 32,813 32,836 +23 (+0.1%) 🔴
octane-tsrx bindings_js_raw 691,934 692,057 +123 (+0.0%) 🔴
octane-tsrx bindings_js_gzip 229,079 229,127 +48 (+0.0%) 🔴
octane-tsrx bindings_js_brotli 195,013 195,113 +100 (+0.1%) 🔴
octane-tsrx bindings_app_gzip 118,820 118,819 −1 (−0.0%) 🟢
octane-tsrx bindings_app_brotli 98,511 98,633 +122 (+0.1%) 🔴
octane-tsrx bindings_fw_raw 333,325 333,448 +123 (+0.0%) 🔴
octane-tsrx bindings_fw_gzip 110,259 110,308 +49 (+0.0%) 🔴
octane-tsrx bindings_fw_brotli 96,502 96,480 −22 (−0.0%) 🟢
octane-tsrx shell_js_raw 305,489 306,153 +664 (+0.2%) 🔴
octane-tsrx shell_js_gzip 99,581 99,743 +162 (+0.2%) 🔴
octane-tsrx shell_js_brotli 86,661 86,884 +223 (+0.3%) 🔴
octane-tsrx shell_app_gzip 1,178 1,174 −4 (−0.3%) 🟢
octane-tsrx shell_app_brotli 1,019 1,025 +6 (+0.6%) 🔴
octane-tsrx shell_fw_raw 303,552 304,216 +664 (+0.2%) 🔴
octane-tsrx shell_fw_gzip 98,403 98,569 +166 (+0.2%) 🔴
octane-tsrx shell_fw_brotli 85,642 85,859 +217 (+0.3%) 🔴
octane-tsrx shell_client_js_raw 250,441 251,105 +664 (+0.3%) 🔴
octane-tsrx shell_client_js_gzip 81,398 81,564 +166 (+0.2%) 🔴
octane-tsrx shell_client_js_brotli 71,569 71,727 +158 (+0.2%) 🔴
octane-tsrx shell_client_app_gzip 1,183 1,184 +1 (+0.1%) 🔴
octane-tsrx shell_client_app_brotli 1,038 1,045 +7 (+0.7%) 🔴
octane-tsrx shell_client_fw_raw 248,496 249,160 +664 (+0.3%) 🔴
octane-tsrx shell_client_fw_gzip 80,215 80,380 +165 (+0.2%) 🔴
octane-tsrx shell_client_fw_brotli 70,531 70,682 +151 (+0.2%) 🔴
octane-tsrx wayfinder_js_raw 372,052 372,722 +670 (+0.2%) 🔴
octane-tsrx wayfinder_js_gzip 122,055 122,256 +201 (+0.2%) 🔴
octane-tsrx wayfinder_js_brotli 105,561 105,810 +249 (+0.2%) 🔴
octane-tsrx threadline_oxc_js_raw 152,643 152,766 +123 (+0.1%) 🔴
octane-tsrx threadline_oxc_js_gzip 50,623 50,667 +44 (+0.1%) 🔴
octane-tsrx threadline_oxc_js_brotli 44,583 44,607 +24 (+0.1%) 🔴
octane-tsrx threadline_esbuild_js_raw 178,516 178,648 +132 (+0.1%) 🔴
octane-tsrx threadline_esbuild_js_gzip 60,003 60,038 +35 (+0.1%) 🔴
octane-tsrx threadline_esbuild_js_brotli 52,828 52,814 −14 (−0.0%) 🟢
octane-tsrx pagecraft_oxc_js_raw 547,108 547,778 +670 (+0.1%) 🔴
octane-tsrx pagecraft_oxc_js_gzip 172,156 172,355 +199 (+0.1%) 🔴
octane-tsrx pagecraft_oxc_js_brotli 146,257 146,355 +98 (+0.1%) 🔴
octane-tsrx pagecraft_esbuild_js_raw 580,551 581,257 +706 (+0.1%) 🔴
octane-tsrx pagecraft_esbuild_js_gzip 187,916 188,147 +231 (+0.1%) 🔴
octane-tsrx pagecraft_esbuild_js_brotli 159,651 160,096 +445 (+0.3%) 🔴
octane-tsrx full_fw_raw 543,139 544,052 +913 (+0.2%) 🔴
octane-tsrx full_fw_gzip 169,866 170,124 +258 (+0.2%) 🔴
octane-tsrx full_fw_brotli 144,419 144,685 +266 (+0.2%) 🔴
octane-jsx js_raw 162,531 162,654 +123 (+0.1%) 🔴
octane-jsx js_gzip 53,142 53,188 +46 (+0.1%) 🔴
octane-jsx js_brotli 46,988 46,978 −10 (−0.0%) 🟢
octane-jsx app_gzip 3,556 3,557 +1 (+0.0%) 🔴
octane-jsx app_brotli 2,884 2,880 −4 (−0.1%) 🟢
octane-jsx fw_raw 151,562 151,685 +123 (+0.1%) 🔴
octane-jsx fw_gzip 49,586 49,631 +45 (+0.1%) 🔴
octane-jsx fw_brotli 44,104 44,098 −6 (−0.0%) 🟢
octane-jsx shell_js_raw 336,499 337,163 +664 (+0.2%) 🔴
octane-jsx shell_js_gzip 109,760 109,936 +176 (+0.2%) 🔴
octane-jsx shell_js_brotli 95,291 95,372 +81 (+0.1%) 🔴
octane-jsx shell_app_gzip 766 762 −4 (−0.5%) 🟢
octane-jsx shell_app_brotli 664 655 −9 (−1.4%) 🟢
octane-jsx shell_fw_raw 335,406 336,070 +664 (+0.2%) 🔴
octane-jsx shell_fw_gzip 108,994 109,174 +180 (+0.2%) 🔴
octane-jsx shell_fw_brotli 94,627 94,717 +90 (+0.1%) 🔴
octane-jsx shell_client_js_raw 281,133 281,798 +665 (+0.2%) 🔴
octane-jsx shell_client_js_gzip 91,097 91,292 +195 (+0.2%) 🔴
octane-jsx shell_client_js_brotli 79,677 79,869 +192 (+0.2%) 🔴
octane-jsx shell_client_app_brotli 661 662 +1 (+0.2%) 🔴
octane-jsx shell_client_fw_raw 280,032 280,697 +665 (+0.2%) 🔴
octane-jsx shell_client_fw_gzip 90,326 90,521 +195 (+0.2%) 🔴
octane-jsx shell_client_fw_brotli 79,016 79,207 +191 (+0.2%) 🔴
octane-jsx full_fw_raw 543,139 544,052 +913 (+0.2%) 🔴
octane-jsx full_fw_gzip 169,866 170,124 +258 (+0.2%) 🔴
octane-jsx full_fw_brotli 144,419 144,685 +266 (+0.2%) 🔴

13 other measured values are unchanged.

Public-import reachability bundles (bytes)

target metric base head Δ
cli-spa-starter raw 78,348 78,471 +123 (+0.2%) 🔴
cli-spa-starter gzip 27,191 27,232 +41 (+0.2%) 🔴
cli-spa-starter brotli 24,432 24,472 +40 (+0.2%) 🔴
root-static-specialized raw 51,059 51,183 +124 (+0.2%) 🔴
root-static-specialized gzip 17,538 17,573 +35 (+0.2%) 🔴
root-static-specialized brotli 15,965 15,994 +29 (+0.2%) 🔴
root-chained-jsx raw 53,208 53,333 +125 (+0.2%) 🔴
root-chained-jsx gzip 18,247 18,289 +42 (+0.2%) 🔴
root-chained-jsx brotli 16,610 16,650 +40 (+0.2%) 🔴
root-static raw 107,525 107,648 +123 (+0.1%) 🔴
root-static gzip 35,245 35,265 +20 (+0.1%) 🔴
root-static brotli 31,675 31,714 +39 (+0.1%) 🔴
root-static-local raw 50,956 51,082 +126 (+0.2%) 🔴
root-static-local gzip 17,487 17,521 +34 (+0.2%) 🔴
root-static-local brotli 15,925 15,958 +33 (+0.2%) 🔴
root-callback-local raw 53,620 53,752 +132 (+0.2%) 🔴
root-callback-local gzip 18,355 18,372 +17 (+0.1%) 🔴
root-callback-local brotli 16,711 16,736 +25 (+0.1%) 🔴
hooks-state raw 61,979 62,110 +131 (+0.2%) 🔴
hooks-state gzip 21,168 21,202 +34 (+0.2%) 🔴
hooks-state brotli 19,255 19,275 +20 (+0.1%) 🔴
prop-attributes raw 59,265 59,389 +124 (+0.2%) 🔴
prop-attributes gzip 20,355 20,404 +49 (+0.2%) 🔴
prop-attributes brotli 18,529 18,639 +110 (+0.6%) 🔴
context raw 69,854 69,984 +130 (+0.2%) 🔴
context gzip 23,553 23,598 +45 (+0.2%) 🔴
context brotli 21,299 21,332 +33 (+0.2%) 🔴
hydrate-root raw 103,514 103,640 +126 (+0.1%) 🔴
hydrate-root gzip 34,731 34,766 +35 (+0.1%) 🔴
hydrate-root brotli 31,059 31,043 −16 (−0.1%) 🟢
deferred-hydration raw 188,007 188,611 +604 (+0.3%) 🔴
deferred-hydration gzip 61,396 61,574 +178 (+0.3%) 🔴
deferred-hydration brotli 53,633 53,778 +145 (+0.3%) 🔴
hydrate-frame raw 349,510 350,112 +602 (+0.2%) 🔴
hydrate-frame gzip 112,294 112,459 +165 (+0.1%) 🔴
hydrate-frame brotli 97,529 97,725 +196 (+0.2%) 🔴
suspense-transition raw 116,034 116,712 +678 (+0.6%) 🔴
suspense-transition gzip 38,032 38,232 +200 (+0.5%) 🔴
suspense-transition brotli 33,808 34,008 +200 (+0.6%) 🔴
component-owned-effects raw 55,151 55,276 +125 (+0.2%) 🔴
component-owned-effects gzip 18,875 18,899 +24 (+0.1%) 🔴
component-owned-effects brotli 17,196 17,233 +37 (+0.2%) 🔴
descriptor-children raw 159,616 159,739 +123 (+0.1%) 🔴
descriptor-children gzip 51,870 51,913 +43 (+0.1%) 🔴
descriptor-children brotli 46,182 46,150 −32 (−0.1%) 🟢
binding-hooks raw 64,374 64,503 +129 (+0.2%) 🔴
binding-hooks gzip 22,150 22,185 +35 (+0.2%) 🔴
binding-hooks brotli 20,147 20,177 +30 (+0.1%) 🔴
split-shell raw 400,409 401,079 +670 (+0.2%) 🔴
split-shell gzip 130,524 130,708 +184 (+0.1%) 🔴
split-shell brotli 113,761 113,873 +112 (+0.1%) 🔴
split-shell-runtime raw 323,824 324,494 +670 (+0.2%) 🔴
split-shell-runtime gzip 104,309 104,493 +184 (+0.2%) 🔴
split-shell-runtime brotli 90,145 90,262 +117 (+0.1%) 🔴
binding-base-ui-vite raw 170,272 170,393 +121 (+0.1%) 🔴
binding-base-ui-vite gzip 55,613 55,639 +26 (+0.0%) 🔴
binding-base-ui-vite brotli 49,434 49,462 +28 (+0.1%) 🔴
binding-base-ui-esbuild raw 198,620 198,754 +134 (+0.1%) 🔴
binding-base-ui-esbuild gzip 66,820 66,846 +26 (+0.0%) 🔴
binding-base-ui-esbuild brotli 59,107 59,227 +120 (+0.2%) 🔴
binding-radix-vite raw 169,604 169,727 +123 (+0.1%) 🔴
binding-radix-vite gzip 55,218 55,257 +39 (+0.1%) 🔴
binding-radix-vite brotli 49,020 49,052 +32 (+0.1%) 🔴
binding-radix-esbuild raw 198,003 198,137 +134 (+0.1%) 🔴
binding-radix-esbuild gzip 66,494 66,503 +9 (+0.0%) 🔴
binding-radix-esbuild brotli 58,760 58,843 +83 (+0.1%) 🔴
binding-mantine-hooks-vite raw 63,324 63,452 +128 (+0.2%) 🔴
binding-mantine-hooks-vite gzip 21,803 21,843 +40 (+0.2%) 🔴
binding-mantine-hooks-vite brotli 19,796 19,843 +47 (+0.2%) 🔴
binding-mantine-hooks-esbuild raw 78,823 78,950 +127 (+0.2%) 🔴
binding-mantine-hooks-esbuild gzip 27,981 28,037 +56 (+0.2%) 🔴
binding-mantine-hooks-esbuild brotli 25,260 25,318 +58 (+0.2%) 🔴
binding-apollo-client-vite raw 316,844 316,967 +123 (+0.0%) 🔴
binding-apollo-client-vite gzip 99,089 99,141 +52 (+0.1%) 🔴
binding-apollo-client-vite brotli 87,715 87,751 +36 (+0.0%) 🔴
binding-apollo-client-esbuild raw 352,709 352,824 +115 (+0.0%) 🔴
binding-apollo-client-esbuild gzip 114,451 114,495 +44 (+0.0%) 🔴
binding-apollo-client-esbuild brotli 100,944 101,037 +93 (+0.1%) 🔴
binding-usehooks-ts-vite raw 64,105 64,233 +128 (+0.2%) 🔴
binding-usehooks-ts-vite gzip 22,036 22,090 +54 (+0.2%) 🔴
binding-usehooks-ts-vite brotli 20,002 20,053 +51 (+0.3%) 🔴
binding-usehooks-ts-esbuild raw 79,591 79,724 +133 (+0.2%) 🔴
binding-usehooks-ts-esbuild gzip 28,221 28,258 +37 (+0.1%) 🔴
binding-usehooks-ts-esbuild brotli 25,485 25,529 +44 (+0.2%) 🔴

39 other measured values are unchanged.

main now has #2218 (squashed) and #2221. The conflicts were in #2218's
own files, actions.ts and actions.test.ts, which this branch carried at
#2218's earlier head; they take main's version.

#2218's later commits revert a transition's optimistic values once a
timeout fallback lets its batch commit around the fallback, so the
behind-the-fallback case now pins only isPending, and leaves the
optimistic value to that rule.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Flushed groups rejoin via missing holds
    • Added a flushed.has(other) check to the expansion loop in stagedRevealGroup so that members already committed in the current scan cycle are not re-absorbed into later groups via the HELD_TRANSITIONS walk, preventing both double-commits and poisoned group formation.

Create PR

Or push these changes by commenting:

@cursor push f6efbb92a4
Preview (f6efbb92a4)
diff --git a/packages/octane/src/runtime/transitions.ts b/packages/octane/src/runtime/transitions.ts
--- a/packages/octane/src/runtime/transitions.ts
+++ b/packages/octane/src/runtime/transitions.ts
@@ -511,7 +511,7 @@
 			if (hold === undefined) unbounded = true;
 			else for (const batch of hold.batches) batches.add(rootTransitionBatch(batch));
 			for (const other of HELD_TRANSITIONS) {
-				if (group.includes(other)) continue;
+				if (group.includes(other) || flushed.has(other)) continue;
 				const peer = TRANSITION_HOLDERS?.get(other);
 				let shares = unbounded || peer === undefined;
 				if (!shares)

You can send follow-ups to the cloud agent here.

Reviewed by Cursor Bugbot for commit 6541257. Configure here.

trueadm and others added 5 commits October 23, 2026 19:49
stagedRevealGroup put every held boundary without a batch hold into
every group. That one rule covered three different cases: a transition
that folded no hook work (`root.render` in startTransition), a holder
released during its retry, and members of a view-transition-deferred
reveal. So unrelated groups were pulled together: a hook transition
waited behind an unrelated root.render transition, and a deferred group
could be absorbed into another flush.

Boundaries without a batch hold now form one group of their own, the
barrier before parallel transitions, and never join a batch's group.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ds its first render (#2223)

* fix(octane): render a deferred value's final attempt while a root holds its first render

When a root with no Suspense boundary suspends on its first render, a
useDeferredValue mounted with an initialValue spawned its swap, but the
rollback disposed the slot and the swap was dropped. The final value
never rendered until the preview fully loaded.

The swap now renders the root again as a deferred pass in its host task.
Its suspension keeps the original attempt's wakeable live, so whichever
attempt is ready first commits, as in React 19.3 (react/react#35392).

Ports the two React 19.3.0 ReactDeferredValue-test.js sibling cases into
parallel-transitions.test.ts, and :407 and :526 into deferred-value.test.ts,
asserting committed DOM.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(octane): retry a held root's deferred attempt once per swap task

Each disposed useDeferredValue slot from a rolled-back root render called
owner.retry(true) on its own. With two such hooks, the second deferred
attempt rolled back the first and unioned only its wakeable, so the
original attempt's data no longer retried the root and the initial
values never committed. Collect held roots and retry each once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
…ransition holds

The sibling case from #2193 expected Gate's ready reveal to wait for
Later's unrelated transition, the global barrier from before parallel
transitions. Gate's root.render transition and Later's setLater
transition are separate, so Gate now reveals once its own data lands
while Later keeps holding; the primary, listener and event assertions
run at that point.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@trueadm
trueadm merged commit b7e4965 into main Oct 23, 2026
33 checks passed
@trueadm
trueadm deleted the feat/parallel-transitions-main branch October 23, 2026 21:01
@github-actions github-actions Bot mentioned this pull request Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent feat PR: new feature or capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants