Skip to content

fix(octane): retire value-hole hosts when their removal dispatches focusout - #1549

Merged
trueadm merged 14 commits into
mainfrom
fix/retired-value-hole-hosts
Oct 2, 2026
Merged

trueadm merged 14 commits into
mainfrom
fix/retired-value-hole-hosts

Conversation

@trueadm

@trueadm trueadm commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Follows #1548 (the #1472 fix, now merged), which skips hosts whose rendering Block retired before a native delivery began. This PR closes its residual gap: a host rendered into a value hole has no Block of its own, so the hole can remove it while the Block that rendered it stays live.

<section onBlur={() => log('parent')}>
	{show && (
		<div onBlur={() => log('dropped')}>
			<input />
		</div>
	)}
</section>

With focus in the input, setting show to false made Chromium dispatch focusout while the hole was removing the div, and dropped ran. React runs no handler during its commit. After this PR the removed host starts no handler, parent still receives the event, and a delivery that began before the removal keeps its route, as in #1472.

Why

#1472 retires hosts through their owning Block (retireEventOwner). Pure de-opt hosts (createElement output in a value hole, nested createElement children, a root that renders a descriptor) claim the live parent Block, so nothing retired them. Ternary holes compile to ifBlock and were already covered.

Changes

  • detachDeoptTreeRefs(node, null) is the teardown hook that every Block-less de-opt removal already calls right before detaching the node, both directly and in root-transaction commit callbacks. It now calls retireEventHostTree(node), which stamps the removed root's $$retiredEpoch with a new event epoch. No removal site changes, and nothing changes at mount. Under a View Transition capture the deferred-layout driver's retireHostTree queues one action per capture that stamps every removed root before the DOM removals queued after it, matching fix(octane): skip retired hosts when removal dispatches focusout #1548's retireHosts, so that code ships only with ViewTransition.
  • snapshotDelegatedSlots skips handlers at or below the outermost stamped path node whose stamp is no newer than the delivery's epoch. retiringHostsSince limits that scan to the task in which a removal happened; one queueMicrotask closes it. Idle dispatch pays one global read; the scan is inlined.
  • hostElementBody (a host with component children whose tag changes) keeps its Block, and its children leave the old element before the element does. It now retires that element first. In a root transaction this runs as the first commit action.
  • docs/differences-from-react.md: the Native blur runs against a disposed component during removal #1472 bullet now covers removed hosts as well as hosts of unmounted components.
  • benchmarks/bundle-size/minimal-budgets.json: root-chained-jsx raised (see Risk).
  • Changeset: octane patch.

Validation

  • pnpm format:check (scoped format:files:check on the changed files passes)

  • pnpm typecheck (scoped typecheck:files on the changed files passes)

  • pnpm test (see below)

  • targeted tests:

    • tests/browser/retired-event-hosts (Chromium): 50/50, dev and prod. The 14 new scenarios cover a value-hole host, <input onBlur> as the removed root, a nested de-opt child, a tag swap, a component-bearing tag swap, a component-bearing hole, mapped de-opt rows, root descriptor replacement, removal by the owner's state update, View Transition publication (host live before publish, skipped at publish), and two in-flight controls (bubble snapshot, capture-phase removal). Five of the shapes, ten tests across dev and prod, ran the dropped handler before this change.
    • Mutation checks: removing the teardown hook, either hostElementBody branch, the staged stamp, the scan window, ancestor propagation, or the delivery-epoch comparison each turns at least one scenario red.
    • tests/browser/event-metadata (including "keeps a removed portal route through the end of its native dispatch"), portal-events, retired-event-hosts (jsdom), discrete-flush-reentrancy, stable-event-authority (octane + octane-prod): all pass.
    • A full local octane, octane-prod, and octane-events-browser run, while other worktrees were also running suites (load average about 58), had timeout failures. Each failing file passed when re-run alone with a longer timeout, except behavior-root.test.ts, which timed out on the Native blur runs against a disposed component during removal #1472 baseline as well. With a 60 s timeout its retirement-cleanup tests pass in the same 1.5–2.3 s as on main.
  • Performance: the Native blur runs against a disposed component during removal #1472 runtime and this change were loaded into one Chromium page and alternated, 60 rounds per workload, in both load orders. A run with the baseline loaded twice stayed within ±2%.

    workload ratio (A/B, B/A)
    click on a 20-deep path, idle 1.000, 0.997
    click after a removal in the same task 1.008, 0.987
    value-hole show/hide 0.962, 0.990
    mapped de-opt rows, 1000 (item Blocks) 0.988, 0.970
    createElement('ul', null, rows), 1000 rows mount + clear 1.053, 1.030

    The stamp alone measures about 20 ns per removed de-opt root, which shows only when many de-opt siblings leave together.

  • node benchmarks/view-transitions/effect-cleanup.mjs: every case is at or below its committed call budget; de-opt rows here are Block-owned, so the hook adds no call per removed row.

  • PR benchmark report (CI, ca2b1d7 vs main 95421bb): all 20 js-framework timed operations are within noise. Every application and reachability bundle grows by the same code, +292 raw bytes (about +0.2%; for example octane-tsrx js_gzip +102 and octane-jsx js_gzip +135).

  • node benchmarks/bundle-size/run-minimal.mjs --budgets root-static-local root-chained-jsx hooks-state prop-attributes context (the CI step) passes with the raised budget. Against main 203be41 (85,641 / 28,399 / 25,258 raw/gzip/brotli), root-chained-jsx measures 85,933 / 28,494 / 25,306, which is +292 / +95 / +48. The other four scenarios are unchanged and within their budgets.

Risk / follow-ups

  • Bundle budget: the root-chained-jsx fixture renders root.render(<JSX/>), which links the de-opt removal paths and the delegated dispatcher, so this fix's code is reachable there even though the fixture has no handlers. After trimming, the rest can't shrink without per-event dispatch cost. With maintainer approval, this PR raises that budget by whole 32-byte steps to 85,952 / 28,512 / 25,312 (from 85,728 / 28,416 / 25,280), leaving 19 / 18 / 6 bytes of headroom. No other budget changes.
  • The non-transaction branch of the hostElementBody change has no scenario: every root and state-driven render runs inside a root transaction. It mirrors that function's existing synchronous detach() branch.
  • A global "currently removing" pointer instead of a per-node stamp would save about 15 ns per removal. I rejected it because it requires each hook call to be immediately followed by that node's removal, and two sites break that: hostElementBody's child-first teardown and hydration's replaceChildren after hooking each child.
  • Live ancestors still receive the event; React suppresses every handler during commit. That divergence is unchanged from Native blur runs against a disposed component during removal #1472.

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. Autofix is disabled.


Note

Medium Risk
Changes core delegated event dispatch during synchronous DOM removal and focusout; behavior is broad but heavily browser-tested, with a small bundle-size increase on a chained-JSX budget.

Overview
Extends the #1472 retired-host event fix so DOM hosts removed without disposing their renderer (value holes like {show && <div onBlur={…}>…</div>}, nested createElement, tag swaps, root descriptor replacement, and View Transition–staged removals) no longer run delegated handlers for focusout fired while the node is being torn down.

The runtime stamps removed subtree roots with $$retiredEpoch via retireEventHostTree (hooked from blockless de-opt teardown and host tag replacement), queues batched stamps under staged commits like retireHosts, and snapshotDelegatedSlots suppresses handlers at or below the outermost stamped node on the capture path for the current delivery. In-flight dispatches that already captured handlers still run through to the end; mounted ancestors keep receiving the event.

Docs and a patch changeset describe the behavior; root-chained-jsx minimal bundle budgets are bumped slightly. Chromium Playwright coverage adds many de-opt/value-hole scenarios (including view transitions and capture-phase removal).

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

trueadm and others added 3 commits October 2, 2026 08:44
Teardown disposes a Block before it detaches the Block's DOM, and Chromium
dispatches focusout synchronously while it removes a focused host. Delegated
dispatch then started handlers on hosts whose component had unmounted: a
signal write reported ScopeDisposedError (production error 151) and plain
onBlur handlers ran for unmounted components.

setEventHandler records the rendering Block on each event host, a disposed
Block records the event-route epoch at which its hosts leave dispatch (staged
for a ViewTransition deletion), and a phase snapshot skips hosts that retired
before the native delivery began. Live ancestors, other roots, snapshotted
handlers, and in-flight deliveries keep their existing behavior.

Closes #1472

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

A pure host in a value hole, such as `{show && <div onBlur={…}><input /></div>}`,
has no Block of its own: the live Block that rendered it stays mounted when
the hole removes it. Chromium dispatches focusout synchronously during that
removal, so the removed host's handler still ran.

Every Block-less de-opt removal already calls detachDeoptTreeRefs just before
detaching the node. Its teardown entry now stamps the removed root with a new
event epoch. While a stamp from the current task exists, snapshotDelegatedSlots
skips handlers at or below the outermost stamped path node whose stamp is no
newer than the delivery. A component-bearing host whose tag changes retires
its old element before its children leave it. View Transition captures stage
the stamp with the removal, and a delivery already in flight keeps its route.

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 fix PR: bug fix labels Oct 2, 2026
@trueadm
trueadm marked this pull request as ready for review October 2, 2026 08:41
Stamp a disposed Block's retirement inline where Blocks are disposed instead
of calling a helper per Block: the ViewTransition effect-cleanup gate allows
no extra call per removed row. A staged deletion now retires its Blocks
through one deferred-layout-driver action per capture, so the batching code
ships only with ViewTransition. The snapshot check is inlined and the Block
field is renamed `retired`, keeping root-chained-jsx within its committed
byte budget.

batchClearItems' immediate path now disposes the items before it clears
their DOM, matching every other deletion: cleanups observe attached hosts,
and removing a focused row finds its hosts already retired.

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

trueadm commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator Author

Base update: fix/retired-event-hosts (#1548) gained 9124f65, which conflicts with this stack.

  • Block.retiredEpoch is now Block.retired.
  • retireEventOwner and isRetiredEventHost are gone. Disposal sites stamp inline: if (STAGED_COMMIT_CAPTURE === null) block.retired = ++eventRootEpoch; else DEFERRED_LAYOUT_DRIVER!.retireEventHosts(block);
  • snapshotDelegatedSlots inlines the owner check and reads EVENT_ROOT_EPOCH with no fallback.
  • batchClearItems' immediate path now unmounts items before clearing their DOM.

The change keeps #1548 within the vt-effect-cleanup call budget and the root-chained-jsx byte budget. root-chained-jsx is now 85,641 raw / 28,379 gzip against 85,728 / 28,384, so this residual's bytes may need trimming or a budget update.

🤖 Posted by Claude Code

trueadm and others added 4 commits October 2, 2026 13:09
Move the $$eventOwner prototype seed into delegateEvents so handler-free
bundles skip it, and read the owner's retirement through optional chaining.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Branch on the staged capture by truthiness and shorten the driver method to
`retireHosts`. root-chained-jsx still needs 75 gzip / 115 brotli bytes over
current main for the Block field, the inline disposal stamp, and the dispatch
check, which exceeds the 60-byte gzip headroom main had left. Raise only its
gzip and brotli ceilings by one 32-byte step (28416 / 25280); raw stays within
85728 and every other budget is unchanged.

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

trueadm commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator Author

Follow-up: #1548 head is now 46a8577, merged with main 3f1a7b2.

  • The staged driver method is now retireHosts, and disposal sites read if (STAGED_COMMIT_CAPTURE) DEFERRED_LAYOUT_DRIVER!.retireHosts(block); else block.retired = ++eventRootEpoch;.
  • snapshotDelegatedSlots checks (retired = node.$$eventOwner?.retired) > 0 && retired <= epoch.
  • The $$eventOwner prototype seed moved into delegateEvents.
  • root-chained-jsx's gzip/brotli budgets rose by 32 bytes (28,416 / 25,280), and this branch sits at 28,399 / 25,258, so the residual has about 17 gzip bytes left.

🤖 Posted by Claude Code

trueadm and others added 3 commits October 2, 2026 13:20
Stage removed host roots through the deferred-layout driver, batched into one
action per capture like retireEventHosts, so the staging code ships only with
ViewTransition. Inline the path scan into snapshotDelegatedSlots and drop the
element check: only the root of a removed subtree is stamped, and text nodes
never appear on an event path. Behavior is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Since batchClearItems disposes items before clearing their DOM, each item's
unmountBlock was an outermost teardown that dispatched queued cleanup errors
on return. An ancestor @catch could then re-render and dispose the list while
the clear still wrote through state.start. Hold one teardown bracket across
the items and the DOM clear, as unmountBlock does for its own range, so errors
reach their boundary only after the list is cleared and its map emptied.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Base automatically changed from fix/retired-event-hosts to main October 2, 2026 12:53
…e-hosts

# Conflicts:
#	docs/differences-from-react.md
#	packages/octane/src/runtime.ts
#	packages/octane/tests/browser/retired-event-hosts/retired-event-hosts.test.ts
@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark report

  • 🟡 js-framework: 1 timed operation(s) possibly slower
  • 🔴 bundle-size: 35 value(s) increased
  • 🔴 bundle-reachability: 70 value(s) increased

Compares 203be41eb with fb5e83f56 on the same runner. Timing verdicts require a change beyond the combined margin of error (at least 5%) and one 0.1ms timer tick, with the fastest sample also moving beyond that margin. Workflow run

js-framework: 1k/10k row operations (ms, lower is better)

target operation base head Δ noise
octane-tsrx run 3.59 4.02 +12.0% ±11% 🟡 slower
All 20 timed operations (19 within noise)
target operation base head Δ noise
octane-tsrx run 3.59 4.02 +12.0% ±11% 🟡 slower
octane-tsrx replace 8.49 11.39 +34.2% ±28% ⚪ within noise
octane-tsrx add 3.61 4.19 +16.1% ±25% ⚪ within noise
octane-tsrx update 0.55 0.72 +30.9% ±77% ⚪ within noise
octane-tsrx select 0.22 0.29 +31.8% ±95% ⚪ within noise
octane-tsrx swap 0.54 0.56 +3.7% ±78% ⚪ within noise
octane-tsrx remove 0.47 0.60 +27.7% ±64% ⚪ within noise
octane-tsrx runlots 33.78 41.02 +21.4% ±40% ⚪ within noise
octane-tsrx select_lots 0.26 0.35 +34.6% ±63% ⚪ within noise
octane-tsrx clear 50.66 52.58 +3.8% ±33% ⚪ within noise
octane-jsx run 4.95 4.28 −13.5% ±38% ⚪ within noise
octane-jsx replace 10.22 10.33 +1.1% ±63% ⚪ within noise
octane-jsx add 3.73 3.92 +5.1% ±29% ⚪ within noise
octane-jsx update 0.91 0.96 +5.5% ±65% ⚪ within noise
octane-jsx select 0.49 0.59 +20.4% ±73% ⚪ within noise
octane-jsx swap 0.72 0.99 +37.5% ±64% ⚪ within noise
octane-jsx remove 0.81 0.74 −8.6% ±50% ⚪ within noise
octane-jsx runlots 33.95 33.87 −0.2% ±22% ⚪ within noise
octane-jsx select_lots 2.66 2.80 +5.3% ±32% ⚪ within noise
octane-jsx clear 46.60 56.02 +20.2% ±29% ⚪ within noise

Application bundle size (bytes)

target metric base head Δ
octane-tsrx js_raw 126,474 126,766 +292 (+0.2%) 🔴
octane-tsrx js_gzip 41,859 41,953 +94 (+0.2%) 🔴
octane-tsrx js_brotli 36,945 36,987 +42 (+0.1%) 🔴
octane-tsrx app_gzip 2,563 2,562 −1 (−0.0%) 🟢
octane-tsrx app_brotli 2,227 2,232 +5 (+0.2%) 🔴
octane-tsrx fw_raw 118,962 119,254 +292 (+0.2%) 🔴
octane-tsrx fw_gzip 39,296 39,391 +95 (+0.2%) 🔴
octane-tsrx fw_brotli 34,718 34,755 +37 (+0.1%) 🔴
octane-tsrx todo_js_raw 140,880 141,172 +292 (+0.2%) 🔴
octane-tsrx todo_js_gzip 46,515 46,625 +110 (+0.2%) 🔴
octane-tsrx todo_js_brotli 40,751 40,836 +85 (+0.2%) 🔴
octane-tsrx todo_app_brotli 2,121 2,118 −3 (−0.1%) 🟢
octane-tsrx todo_fw_raw 135,770 136,062 +292 (+0.2%) 🔴
octane-tsrx todo_fw_gzip 44,038 44,148 +110 (+0.2%) 🔴
octane-tsrx todo_fw_brotli 38,630 38,718 +88 (+0.2%) 🔴
octane-tsrx chat_js_raw 140,125 140,417 +292 (+0.2%) 🔴
octane-tsrx chat_js_gzip 46,452 46,575 +123 (+0.3%) 🔴
octane-tsrx chat_js_brotli 40,779 40,865 +86 (+0.2%) 🔴
octane-tsrx chat_app_gzip 2,980 2,979 −1 (−0.0%) 🟢
octane-tsrx chat_app_brotli 2,633 2,640 +7 (+0.3%) 🔴
octane-tsrx chat_fw_raw 133,472 133,764 +292 (+0.2%) 🔴
octane-tsrx chat_fw_gzip 43,472 43,596 +124 (+0.3%) 🔴
octane-tsrx chat_fw_brotli 38,146 38,225 +79 (+0.2%) 🔴
octane-tsrx weather_js_raw 176,366 176,658 +292 (+0.2%) 🔴
octane-tsrx weather_js_gzip 57,621 57,752 +131 (+0.2%) 🔴
octane-tsrx weather_js_brotli 50,073 50,182 +109 (+0.2%) 🔴
octane-tsrx weather_app_gzip 9,043 9,045 +2 (+0.0%) 🔴
octane-tsrx weather_app_brotli 7,591 7,607 +16 (+0.2%) 🔴
octane-tsrx weather_fw_raw 149,631 149,923 +292 (+0.2%) 🔴
octane-tsrx weather_fw_gzip 48,578 48,707 +129 (+0.3%) 🔴
octane-tsrx weather_fw_brotli 42,482 42,575 +93 (+0.2%) 🔴
octane-jsx js_raw 224,889 225,234 +345 (+0.2%) 🔴
octane-jsx js_gzip 71,681 71,821 +140 (+0.2%) 🔴
octane-jsx js_brotli 62,043 62,155 +112 (+0.2%) 🔴
octane-jsx app_brotli 2,498 2,503 +5 (+0.2%) 🔴
octane-jsx fw_raw 216,422 216,767 +345 (+0.2%) 🔴
octane-jsx fw_gzip 68,738 68,878 +140 (+0.2%) 🔴
octane-jsx fw_brotli 59,545 59,652 +107 (+0.2%) 🔴

7 other measured values are unchanged.

Public-import reachability bundles (bytes)

target metric base head Δ
cli-spa-starter raw 116,162 116,458 +296 (+0.3%) 🔴
cli-spa-starter gzip 39,219 39,332 +113 (+0.3%) 🔴
cli-spa-starter brotli 34,292 34,341 +49 (+0.1%) 🔴
root-static-specialized raw 76,775 77,067 +292 (+0.4%) 🔴
root-static-specialized gzip 25,459 25,582 +123 (+0.5%) 🔴
root-static-specialized brotli 22,679 22,778 +99 (+0.4%) 🔴
root-chained-jsx raw 85,641 85,933 +292 (+0.3%) 🔴
root-chained-jsx gzip 28,399 28,494 +95 (+0.3%) 🔴
root-chained-jsx brotli 25,258 25,306 +48 (+0.2%) 🔴
root-static raw 201,212 201,557 +345 (+0.2%) 🔴
root-static gzip 63,849 63,970 +121 (+0.2%) 🔴
root-static brotli 55,338 55,457 +119 (+0.2%) 🔴
root-static-local raw 76,778 77,070 +292 (+0.4%) 🔴
root-static-local gzip 25,449 25,569 +120 (+0.5%) 🔴
root-static-local brotli 22,709 22,843 +134 (+0.6%) 🔴
hooks-state raw 88,943 89,231 +288 (+0.3%) 🔴
hooks-state gzip 29,528 29,639 +111 (+0.4%) 🔴
hooks-state brotli 26,321 26,405 +84 (+0.3%) 🔴
prop-attributes raw 97,097 97,385 +288 (+0.3%) 🔴
prop-attributes gzip 32,246 32,371 +125 (+0.4%) 🔴
prop-attributes brotli 28,624 28,663 +39 (+0.1%) 🔴
context raw 109,642 109,931 +289 (+0.3%) 🔴
context gzip 36,258 36,363 +105 (+0.3%) 🔴
context brotli 32,054 32,155 +101 (+0.3%) 🔴
hydrate-root raw 160,932 161,228 +296 (+0.2%) 🔴
hydrate-root gzip 51,580 51,688 +108 (+0.2%) 🔴
hydrate-root brotli 44,952 45,012 +60 (+0.1%) 🔴
deferred-hydration raw 223,310 223,602 +292 (+0.1%) 🔴
deferred-hydration gzip 71,029 71,140 +111 (+0.2%) 🔴
deferred-hydration brotli 61,320 61,410 +90 (+0.1%) 🔴
suspense-transition raw 166,148 166,440 +292 (+0.2%) 🔴
suspense-transition gzip 53,362 53,466 +104 (+0.2%) 🔴
suspense-transition brotli 46,558 46,650 +92 (+0.2%) 🔴
component-owned-effects raw 81,391 81,679 +288 (+0.4%) 🔴
component-owned-effects gzip 26,817 26,938 +121 (+0.5%) 🔴
component-owned-effects brotli 23,908 24,019 +111 (+0.5%) 🔴
binding-hooks raw 87,456 87,744 +288 (+0.3%) 🔴
binding-hooks gzip 29,267 29,352 +85 (+0.3%) 🔴
binding-hooks brotli 26,083 26,098 +15 (+0.1%) 🔴
binding-base-ui-vite raw 211,406 211,751 +345 (+0.2%) 🔴
binding-base-ui-vite gzip 67,414 67,549 +135 (+0.2%) 🔴
binding-base-ui-vite brotli 58,441 58,549 +108 (+0.2%) 🔴
binding-base-ui-esbuild raw 209,381 209,724 +343 (+0.2%) 🔴
binding-base-ui-esbuild gzip 67,426 67,544 +118 (+0.2%) 🔴
binding-base-ui-esbuild brotli 58,460 58,632 +172 (+0.3%) 🔴
binding-aria-esbuild brotli 3,009 3,013 +4 (+0.1%) 🔴
binding-radix-vite raw 213,335 213,680 +345 (+0.2%) 🔴
binding-radix-vite gzip 67,981 68,104 +123 (+0.2%) 🔴
binding-radix-vite brotli 58,961 59,167 +206 (+0.3%) 🔴
binding-radix-esbuild raw 211,269 211,612 +343 (+0.2%) 🔴
binding-radix-esbuild gzip 67,983 68,102 +119 (+0.2%) 🔴
binding-radix-esbuild brotli 59,048 59,070 +22 (+0.0%) 🔴
binding-mantine-hooks-vite raw 97,732 98,020 +288 (+0.3%) 🔴
binding-mantine-hooks-vite gzip 32,470 32,587 +117 (+0.4%) 🔴
binding-mantine-hooks-vite brotli 28,838 28,886 +48 (+0.2%) 🔴
binding-mantine-hooks-esbuild raw 97,324 97,610 +286 (+0.3%) 🔴
binding-mantine-hooks-esbuild gzip 32,647 32,765 +118 (+0.4%) 🔴
binding-mantine-hooks-esbuild brotli 29,003 29,059 +56 (+0.2%) 🔴
binding-apollo-client-vite raw 356,456 356,801 +345 (+0.1%) 🔴
binding-apollo-client-vite gzip 111,521 111,682 +161 (+0.1%) 🔴
binding-apollo-client-vite brotli 97,291 97,448 +157 (+0.2%) 🔴
binding-apollo-client-esbuild raw 359,436 359,779 +343 (+0.1%) 🔴
binding-apollo-client-esbuild gzip 113,786 113,914 +128 (+0.1%) 🔴
binding-apollo-client-esbuild brotli 99,241 99,259 +18 (+0.0%) 🔴
binding-usehooks-ts-vite raw 98,365 98,653 +288 (+0.3%) 🔴
binding-usehooks-ts-vite gzip 32,637 32,737 +100 (+0.3%) 🔴
binding-usehooks-ts-vite brotli 28,995 29,073 +78 (+0.3%) 🔴
binding-usehooks-ts-esbuild raw 97,946 98,232 +286 (+0.3%) 🔴
binding-usehooks-ts-esbuild gzip 32,807 32,912 +105 (+0.3%) 🔴
binding-usehooks-ts-esbuild brotli 29,191 29,268 +77 (+0.3%) 🔴

35 other measured values are unchanged.

CI job durations

  • 🟡 6 job(s) slower than every recent main run: heavy integration (browser - chromium), test shard (Node 24, 2/4), React parity shard (1/4), validate publishable packages, Lynx compatibility, Three compatibility

Compares the CI run for 073f7bc2b (run) with the last 5 successful main push runs. A job is only slower or faster outside the whole main range, by at least 10% and 15s. Job time excludes runner setup.

job main median main range this PR Δ
wall clock (first job start to last job end) 12m 39s 11m 55s–13m 32s 13m 59s +1m 20s (+11%) 🟡 slower
total job time 140m 36s 134m 18s–149m 29s 149m 22s +8m 46s (+6%) ⚪ within noise
heavy integration (browser - chromium) 11m 08s 10m 58s–12m 54s 13m 24s +2m 16s (+20%) 🟡 slower
test shard (Node 24, 2/4) 11m 17s 10m 38s–12m 09s 13m 13s +1m 56s (+17%) 🟡 slower
React parity shard (1/4) 10m 55s 10m 23s–11m 18s 12m 40s +1m 45s (+16%) 🟡 slower
validate publishable packages 3m 55s 3m 51s–4m 16s 4m 27s +32s (+14%) 🟡 slower
Lynx compatibility 1m 32s 1m 29s–1m 38s 1m 54s +22s (+24%) 🟡 slower
Three compatibility 2m 44s 2m 42s–2m 56s 3m 03s +19s (+12%) 🟡 slower
All 26 timed jobs
job main median main range this PR Δ
heavy integration (browser - chromium) 11m 08s 10m 58s–12m 54s 13m 24s +2m 16s (+20%) 🟡 slower
test shard (Node 24, 2/4) 11m 17s 10m 38s–12m 09s 13m 13s +1m 56s (+17%) 🟡 slower
React parity shard (1/4) 10m 55s 10m 23s–11m 18s 12m 40s +1m 45s (+16%) 🟡 slower
lint checks 7m 52s 7m 43s–8m 51s 8m 50s +58s (+12%) ⚪ within noise
React parity shard (2/4) 10m 08s 9m 52s–11m 18s 10m 52s +44s (+7%) ⚪ within noise
test shard (Node 24, 1/4) 11m 50s 11m 19s–12m 46s 12m 31s +41s (+6%) ⚪ within noise
validate publishable packages 3m 55s 3m 51s–4m 16s 4m 27s +32s (+14%) 🟡 slower
test shard (Node 24, 3/4) 9m 31s 9m 24s–10m 06s 10m 00s +29s (+5%) ⚪ within noise
website integration suite 5m 46s 5m 43s–7m 00s 6m 11s +25s (+7%) ⚪ within noise
Lynx compatibility 1m 32s 1m 29s–1m 38s 1m 54s +22s (+24%) 🟡 slower
React parity shard (3/4) 10m 25s 10m 07s–12m 02s 10m 47s +22s (+4%) ⚪ within noise
Three compatibility 2m 44s 2m 42s–2m 56s 3m 03s +19s (+12%) 🟡 slower
typecheck checks 2m 01s 1m 56s–8m 20s 2m 16s +15s (+12%) ⚪ within noise
example apps (2/3) 3m 43s 3m 38s–3m 55s 3m 53s +10s (+4%) ⚪ within noise
example apps (1/3) 3m 12s 3m 04s–3m 14s 3m 20s +8s (+4%) ⚪ within noise
example apps (3/3) 3m 30s 3m 19s–3m 41s 3m 36s +6s (+3%) ⚪ within noise
test shard (Node 24, 4/4) 11m 03s 10m 21s–11m 19s 11m 09s +6s (+1%) ⚪ within noise
React parity shard (4/4) 10m 52s 10m 08s–11m 23s 10m 57s +5s (+1%) ⚪ within noise
classify changeset release 13s 12s–14s 14s +1s (+8%) ⚪ within noise
examples 3s 3s–4s 4s +1s (+33%) ⚪ within noise
React parity checks 11s 10s–12s 12s +1s (+9%) ⚪ within noise
typecheck 3s 3s–3s 3s ±0s (±0%) ⚪ within noise
lint 3s 3s–4s 3s ±0s (±0%) ⚪ within noise
test (24) 3s 2s–4s 3s ±0s (±0%) ⚪ within noise
CI provenance 3s 3s–4s 3s ±0s (±0%) ⚪ within noise
heavy integration (package builds, eval corpus, runtime loaders, Astro) 5m 43s 5m 21s–5m 45s 5m 37s −6s (−2%) ⚪ within noise

trueadm and others added 2 commits October 2, 2026 14:11
…irement

`root.render(<JSX/>)` links both the de-opt removal paths and the delegated
dispatcher, so this fixture carries the value-hole host retirement even though
it renders no handlers. Against main (85,641 / 28,399 / 25,258), it adds
+292 raw / +95 gzip / +48 brotli bytes. Trimming moved the ViewTransition
staging into the deferred-layout driver, and the rest cannot shrink without
per-event dispatch cost. Raise the ceilings by whole 32-byte steps to
85,952 / 28,512 / 25,312; every other budget is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@trueadm
trueadm merged commit 15c7b97 into main Oct 2, 2026
32 checks passed
@trueadm
trueadm deleted the fix/retired-value-hole-hosts branch October 2, 2026 13:34
trueadm added a commit that referenced this pull request Oct 3, 2026
Every transactional blockless de-opt removal now commits through
deferRootRange, which retires its nodes before their cleanup runs, so the
stamp detachDeoptTreeRefs added for #1549 repeats it. Removing it returns
detachDeoptTreeRefs to its single recursive form and keeps root-chained-jsx
within the budget main tightened to 84,352 raw bytes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm added a commit that referenced this pull request Oct 3, 2026
* fix(octane): retire a deletion's hosts before its cleanups run

Deletion cleanups run parent first. A dialog that restored focus in its own
layout cleanup started onBlur on an input owned by a child component the
teardown had not reached yet, and the same happened for a value-hole input in
a removed @for row: #1548 retired each Block only when its own unmount began.

Replace #1548's per-host owner claim and per-Block epoch with #1549's DOM-root
stamp, applied before any cleanup at every committed deletion: the deferred
range removal, parked keyed rows, root.unmount, and a portal's own content.
An inert list clear retires only the row holding the scheduler's captured
focus, and parked rows are stamped only when focus was captured, so an
unfocused bulk removal does no per-row work. Handler publication no longer
writes an owner expando on every host.

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

* fix(octane): classify the focused-row climb and retire every portal teardown

The owned-list clear read row.parentNode directly; read it through domNode so
the staged-DOM boundary check classifies it (lint checks).

Stamp a portal's own range in unmountBlockInner rather than only in
teardownPortalState, so a portal torn down through unmountSlot's portal
branch, such as one detaching under a retained hydration parent, retires its
content before its cleanups run too. A non-parkable list clear stamps each row
before its cleanup under the same captured-focus rule as parked rows. Add a
regression for a portal compiled in a template.

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

* fix(octane): retire a non-parkable list clear's rows before any row's cleanup

batchClearItems stamped each row just before that row's own teardown, so an
earlier row's cleanup that moved focus could still start onBlur on a later row
the same clear was removing. Stamp the whole span between the list's markers
first, under the same captured-focus rule as parked rows.

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

* fix(octane): keep an interleaved independent portal live when its Fragment owner unmounts

Stamping every portal Block's range in unmountBlockInner also stamped a
foreign portal range parked between a Fragment owner's markers, so a click on
that still-mounted portal in the same task started no handler
(conformance/fragment-future-children). Retire a portal's range in
teardownPortalState again: a portal compiled into a template routes its
events through a host element inside its owner, which the enclosing deletion
has already retired before any cleanup runs.

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

* perf(octane): drop the blockless de-opt retirement hook

Every transactional blockless de-opt removal now commits through
deferRootRange, which retires its nodes before their cleanup runs, so the
stamp detachDeoptTreeRefs added for #1549 repeats it. Removing it returns
detachDeoptTreeRefs to its single recursive form and keeps root-chained-jsx
within the budget main tightened to 84,352 raw bytes.

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

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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 fix PR: bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant