Skip to content

fix(octane): resolve a component's signal handles from the children it passes - #1774

Closed
trueadm wants to merge 10 commits into
mainfrom
fix/children-signal-owner
Closed

trueadm wants to merge 10 commits into
mainfrom
fix/children-signal-owner

Conversation

@trueadm

@trueadm trueadm commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The children a .tsrx component writes between another component's tags now resolve its signal$, derived$ and query$ handles to the component's own cells. Before this change, compiled children rendered in a signal instance of the receiving component.

function Card(props) @{
	<div>{props.children}</div>
}
export function App(props) @{
	const record$ = query$(() => 'record', props.load);
	const state = record$.snapshot();
	@try { <Card><output>{record$.get() as string}</output></Card> } @pending { <i>waiting</i> }
}

On #1761's head this starts two requests in the browser. The server also calls load twice, so hydration cannot resume the server's result for both reads. A derived read in the children computes from a copy of the component's signals that never sees its writes. .tsx evaluates <Card>{record$.get()}</Card> in the parent, so only .tsrx diverged.

The same defect applied when the children went to <Suspense>, <ViewTransition>, <ErrorBoundary> (component form, for example through an alias), or a context provider.

Stacked on #1761. The branch contains #1761's commits. Review only the top commit (fix(octane): resolve a component's signal handles from the children it passes) until #1761 merges.

Size budgets: this needs the budget-only PR #1773. Since main gained #1762, #1773 is computed against main and covers #1761 as well, so #1760 is no longer required. Merge order: #1773, #1761, then this PR, merging main in after each.

Why

The contract is the docs/signals.md paragraph that begins "Module declarations resolve to request-local cells…":

  • "a component's cells do not depend on how its JSX is written or compiled";
  • "A function the body creates closes over the body's declarations".

A compiled children function is created by the authoring component's body and closes over its declarations. Compiled children are excluded from #1761's 't:' link on purpose: they belong to the template that authored them, not to the component rendering them. Linking them to the renderer would trade one wrong cell for another. So the runtime needs the author's owner, and only the creation site knows it.

Changes

  • Client (runtime.ts):
    • markChildrenBlock already runs when the authoring template creates its children each render. It now records the signal owner that template renders in. The check is two reads while no owner is active.
    • scopeSignalOwner links an owner to that recorded owner, instead of to the structural parent, in two cases:
      • a block whose body is those children, which covers a child slot, a forwarded {props.children}, and the try body of <Suspense> or the component-form <ErrorBoundary>;
      • a context provider, which renders its children inline in its own block and declares nothing itself.
    • The children keep their own instance key, so the declarations they evaluate are unchanged. Only a renderer owner of the same document is linked.
  • Server (runtime.server.ts):
    • markChildrenBlock records the active renderer owner.
    • ssrComponent passes it as the enclosing owner for children rendered in a slot (ssrChildValue, ssrDescriptorPart).
    • ssrComponent also passes it for built-ins that render compiled children inline in their own frame: Suspense, ViewTransition, ErrorBoundary, and context providers. The client renders those children in a block of their own instead; resolution is identical because the built-ins declare nothing.
    • serverSignalQueryAttemptObserver already walks enclosingOwner, so the streamed selection observes the read under the author's key.
  • component-flags.ts: adds COMPONENT_FLAG_AUTHOR_CHILDREN, plus a pre-combined COMPONENT_FLAGS_AUTHOR_BOUNDARY. A computed A | B argument kept the pure built-in definitions alive, and the server-hooks reachability gate caught it pulling in DOM namespace tables.
  • Docs: docs/signals.md adds children, including through the built-ins above, to the template rule.
  • Changeset: octane patch.

Validation

  • pnpm format:check: not run repo-wide. format:files:check passed on every changed file.
  • pnpm typecheck: not run repo-wide. typecheck:files passed on component-flags.ts, runtime.ts, runtime.server.ts and the test.
  • pnpm test: not run locally; CI runs it.
  • pnpm sync: no generated changes.
  • targeted: packages/octane/tests/hydration/signal-declaration-owner.test.ts passes on the final head: 217/217 in octane (dev) and 434/434 in octane-prod (prod and strong).
    • New frames shapes, each run through the existing cases (one browser query for setup plus template reads; server query resumed with a setup read; server query resumed with template reads only): children, forwarded children, row children, Suspense, Suspense row, ViewTransition, ErrorBoundary (aliased component form) and provider.
    • New case: computes a children read from the component's cells. A derived read in children, rendered by a Card with its own state, must see the component's count$ write, with one request.
    • Seen failing before the fix: 65 cases fail on fix(octane): resolve a component's signal handles from its nested @{ … } blocks #1761's runtime (5208a78) with these tests. Dropping the server flag from ErrorBoundary alone fails its 8 hydration cases.
  • Related files, run before the final rebase onto fix(octane): resolve a component's signal handles from its nested @{ … } blocks #1761's head and the byte trim (same logic): suspense-parent-render-query (client and hydration), signal-instance-identity, event-signal-owner, private-context, returned-jsx-query-resume, view-transition-staging, signals-deferred-values, direct-signal-bindings (550 passed). Also signals-local*, signals-rendering, signal-local-selectors, signals-query-attempt-observer, event-signal-owner-retirement, children-block, jsx-context-children*, provider-children-dialect, component-children-hydrate, children-local-hydrate, document-signal-owner and others (128 passed).
  • Bundle size: measured with run-minimal.mjs and run.mjs against ci(bench): raise byte budgets for the nested-block signal owner fix #1760's budgets.
    • Growth is about 112–151 raw bytes on client bundles and 171 on server-render.
    • An earlier draft cost about 250 raw. Trimming the symbol description, the lite-scope guard and a helper brought it down.
    • Benchmarks were not run locally.

Risk / follow-ups

  • <Hydrate> children are not covered. The client renders them inline inside its own try body, and the server inside its frame, so they still read the Hydrate instance's cells, consistently on both sides. Linking them needs the island capture path checked first.
  • Hot paths:
    • Client: when a signal owner is active, each compiled children function gets one more property write per render.
    • Server: on a signals-enabled pass, each compiled component call reads props.children and tests it for the children marker. A built-in check follows only when the children carry an owner.
  • Owner lifetime: the link is recorded once, when an owner is first created; owner identities are frozen. A children function rendered after its author retired resolves to the retired owner and throws ScopeDisposedError on read. That matches fix(octane): resolve a body's signal declarations from the functions it creates #1706's rule for the body's own functions.

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

High Risk
Changes core signal instance / enclosing-owner resolution on client and SSR hydration paths; incorrect linking would duplicate queries or mis-associate cells across boundaries.

Overview
Fixes signal cell ownership so compiled .tsrx template pieces read the declaring component’s signal$ / derived$ / query$ cells instead of spinning up duplicate instances (extra fetches, stale derived values, broken hydration resume).

Nested @{ … } blocks now resolve parent handles like directive arms and keyed @for rows already do, via a TEMPLATE_INVOCATION_SITE ('t:') link on client and server while blocks still own their own declarations.

Compiled children (markChildrenBlock) record the authoring template’s signal owner; rendering paths (child slots, forwarded children, <Suspense>, <ViewTransition>, <ErrorBoundary>, context providers) pass that as enclosingOwner so reads match .tsx parent-evaluated children. Server built-ins get COMPONENT_FLAG_AUTHOR_CHILDREN / COMPONENT_FLAGS_AUTHOR_BOUNDARY.

docs/signals.md and hydration tests (signal-declaration-owner.test.ts) document and lock in single-query and SSR-resume behavior across these shapes.

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

trueadm and others added 7 commits October 5, 2026 12:54
… … }` blocks

A nested block got a signal instance of its own, so a component handle it
read resolved to a second cell: a second query request, and a value computed
from signals the component never updated. The block now links to the
template that renders it, as directive arms and keyed rows do, on the client
and the server. It still owns the declarations it evaluates. Fragment
renderers link to their component the same way, so a nested block in
returned JSX reads the component's cells below the root too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A host or fragment renderer copies the recipe of the scope it renders for,
including a nested block's `t:` site, so it was treated as a block and linked
past it to the block's parent. A block nested in that renderer then missed
the outer block's declarations and started its own query. Check the key
first: a renderer keeps its parent's key and links to it, and only a scope
that adds a segment of its own links to the scope that rendered it.

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

A hookless component's blocks hang off a DOM stand-in rather than its
scope, and the stand-in has no owner of its own. A renderer the component
renders, such as value-position JSX, therefore skipped the link, and a nested
block in it read a handle prop from a cell of its own. The stand-in records
the scope the component is registered on, so resolve the component's scope
from that scope's children. Arms inside a hookless component now link the
same way.

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

Compiled `.tsrx` children rendered in the receiving component's signal
instance, so `<Card>{record$.get()}</Card>` gave the read a cell of its own:
a second query in the browser and on the server, and derived reads computed
from signals the author never updated. `.tsx` children are evaluated by the
parent, so they already read the author's cells.

markChildrenBlock now records the owner the authoring template renders in.
On the client, a block whose body is those children, and a context provider
that renders them inline, link their owner to it. On the server, children
rendered in a slot link the same way, and Suspense, ViewTransition,
ErrorBoundary and context providers, which render them inline in their own
frame, carry a new capability bit so their owner links to the author.

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 5, 2026
@trueadm
trueadm marked this pull request as ready for review October 5, 2026 12:38
@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark report

  • ❌ bundle-size: 26 value(s) exceed their committed budget
  • ❌ bundle-reachability: 55 value(s) exceed their committed budget
  • 🔴 bundle-size: 19 value(s) increased within budget
  • 🔴 bundle-reachability: 17 value(s) increased within budget

Compares e233e4a11, the merge commit's first parent with 8e3ac57ae on the same runner. A byte value over its committed budget or any increase in a js-framework work counter fails this check. 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 7.717 8.200 −3.7% −17.7% … +13.0% ⚪ within noise
octane-tsrx replace 12.950 13.692 +14.8% −15.6% … +28.6% ⚪ within noise
octane-tsrx add 3.133 3.750 −1.4% −10.4% … +4.8% ⚪ within noise
octane-tsrx update 0.179 0.173 −6.1% −9.5% … ±0.0% ⚪ within noise
octane-tsrx select 0.006 0.007 −0.6% −5.1% … +6.9% ⚪ within noise
octane-tsrx swap 0.047 0.043 −4.1% −11.2% … +1.3% ⚪ within noise
octane-tsrx remove 0.042 0.043 −1.2% −6.2% … +8.1% ⚪ within noise
octane-tsrx runlots 43.283 39.433 −4.2% −18.7% … +15.1% ⚪ within noise
octane-tsrx select_lots 0.007 0.008 +2.9% −1.0% … +8.6% ⚪ within noise
octane-tsrx clear 64.533 61.892 −2.1% −6.7% … +5.2% ⚪ within noise
octane-jsx run 4.458 4.833 +4.7% −4.9% … +10.7% ⚪ within noise
octane-jsx replace 11.983 13.133 +11.6% −2.8% … +23.7% ⚪ within noise
octane-jsx add 3.833 3.875 −1.4% −9.9% … +10.8% ⚪ within noise
octane-jsx update 0.315 0.321 +3.2% −1.3% … +7.1% ⚪ within noise
octane-jsx select 0.171 0.177 +2.1% −3.5% … +12.9% ⚪ within noise
octane-jsx swap 0.310 0.312 +2.9% −1.8% … +7.5% ⚪ within noise
octane-jsx remove 0.251 0.273 +6.5% −6.0% … +14.0% ⚪ within noise
octane-jsx runlots 34.558 37.700 +3.2% −9.2% … +15.7% ⚪ within noise
octane-jsx select_lots 2.099 2.510 +4.8% −2.0% … +23.2% ⚪ within noise
octane-jsx clear 62.467 60.625 +0.7% −8.4% … +5.5% ⚪ within noise

All 64 work counters are unchanged.

Application bundle size (bytes)

❌ 26 value(s) exceed their committed budget. Reduce the growth, or raise the budget in a separate pull request that names the bytes and the reason (CONTRIBUTING.md, "Size budgets").

target metric head budget over
octane-tsrx fw_raw 113,385 113,103 +282
octane-tsrx fw_gzip 37,422 37,339 +83
octane-tsrx js_raw 120,520 120,238 +282
octane-tsrx js_gzip 39,856 39,774 +82
octane-tsrx todo_fw_raw 126,430 126,147 +283
octane-tsrx todo_fw_gzip 41,186 41,089 +97
octane-tsrx todo_js_raw 131,241 130,958 +283
octane-tsrx todo_js_gzip 43,517 43,422 +95
octane-tsrx chat_fw_raw 123,890 123,607 +283
octane-tsrx chat_fw_gzip 40,461 40,357 +104
octane-tsrx chat_js_raw 129,880 129,597 +283
octane-tsrx chat_js_gzip 43,230 43,158 +72
octane-tsrx weather_fw_raw 145,680 145,397 +283
octane-tsrx weather_fw_gzip 47,385 47,302 +83
octane-tsrx weather_js_raw 168,418 168,135 +283
octane-tsrx weather_js_gzip 55,495 55,412 +83
octane-tsrx bindings_fw_raw 360,806 360,502 +304
octane-tsrx bindings_fw_gzip 118,230 118,118 +112
octane-tsrx bindings_js_raw 715,616 715,312 +304
octane-tsrx bindings_js_gzip 239,600 239,491 +109
octane-jsx fw_raw 220,176 219,911 +265
octane-jsx fw_gzip 70,157 70,079 +78
octane-jsx fw_brotli 60,863 60,857 +6
octane-jsx js_raw 228,635 228,370 +265
octane-jsx js_gzip 73,093 73,015 +78
octane-jsx js_brotli 63,368 63,367 +1
target metric base head Δ
octane-tsrx js_raw 120,210 120,520 +310 (+0.3%) 🔴
octane-tsrx js_gzip 39,749 39,856 +107 (+0.3%) 🔴
octane-tsrx js_brotli 35,116 35,202 +86 (+0.2%) 🔴
octane-tsrx app_gzip 2,435 2,434 −1 (−0.0%) 🟢
octane-tsrx app_brotli 2,127 2,116 −11 (−0.5%) 🟢
octane-tsrx fw_raw 113,075 113,385 +310 (+0.3%) 🔴
octane-tsrx fw_gzip 37,314 37,422 +108 (+0.3%) 🔴
octane-tsrx fw_brotli 32,989 33,086 +97 (+0.3%) 🔴
octane-tsrx todo_js_raw 130,931 131,241 +310 (+0.2%) 🔴
octane-tsrx todo_js_gzip 43,410 43,517 +107 (+0.2%) 🔴
octane-tsrx todo_js_brotli 38,147 38,253 +106 (+0.3%) 🔴
octane-tsrx todo_app_gzip 2,330 2,331 +1 (+0.0%) 🔴
octane-tsrx todo_app_brotli 1,989 1,988 −1 (−0.1%) 🟢
octane-tsrx todo_fw_raw 126,120 126,430 +310 (+0.2%) 🔴
octane-tsrx todo_fw_gzip 41,080 41,186 +106 (+0.3%) 🔴
octane-tsrx todo_fw_brotli 36,158 36,265 +107 (+0.3%) 🔴
octane-tsrx chat_js_raw 129,570 129,880 +310 (+0.2%) 🔴
octane-tsrx chat_js_gzip 43,126 43,230 +104 (+0.2%) 🔴
octane-tsrx chat_js_brotli 37,992 38,065 +73 (+0.2%) 🔴
octane-tsrx chat_app_brotli 2,458 2,448 −10 (−0.4%) 🟢
octane-tsrx chat_fw_raw 123,580 123,890 +310 (+0.3%) 🔴
octane-tsrx chat_fw_gzip 40,357 40,461 +104 (+0.3%) 🔴
octane-tsrx chat_fw_brotli 35,534 35,617 +83 (+0.2%) 🔴
octane-tsrx weather_js_raw 168,108 168,418 +310 (+0.2%) 🔴
octane-tsrx weather_js_gzip 55,385 55,495 +110 (+0.2%) 🔴
octane-tsrx weather_js_brotli 48,322 48,417 +95 (+0.2%) 🔴
octane-tsrx weather_app_brotli 6,907 6,909 +2 (+0.0%) 🔴
octane-tsrx weather_fw_raw 145,370 145,680 +310 (+0.2%) 🔴
octane-tsrx weather_fw_gzip 47,275 47,385 +110 (+0.2%) 🔴
octane-tsrx weather_fw_brotli 41,415 41,508 +93 (+0.2%) 🔴
octane-tsrx bindings_js_raw 715,285 715,616 +331 (+0.0%) 🔴
octane-tsrx bindings_js_gzip 239,481 239,600 +119 (+0.0%) 🔴
octane-tsrx bindings_js_brotli 204,088 204,121 +33 (+0.0%) 🔴
octane-tsrx bindings_app_gzip 121,381 121,370 −11 (−0.0%) 🟢
octane-tsrx bindings_app_brotli 101,572 101,496 −76 (−0.1%) 🟢
octane-tsrx bindings_fw_raw 360,475 360,806 +331 (+0.1%) 🔴
octane-tsrx bindings_fw_gzip 118,100 118,230 +130 (+0.1%) 🔴
octane-tsrx bindings_fw_brotli 102,516 102,625 +109 (+0.1%) 🔴
octane-tsrx full_fw_raw 571,501 571,833 +332 (+0.1%) 🔴
octane-tsrx full_fw_gzip 175,058 175,239 +181 (+0.1%) 🔴
octane-tsrx full_fw_brotli 147,927 147,946 +19 (+0.0%) 🔴
octane-jsx js_raw 228,343 228,635 +292 (+0.1%) 🔴
octane-jsx js_gzip 72,989 73,093 +104 (+0.1%) 🔴
octane-jsx js_brotli 63,287 63,368 +81 (+0.1%) 🔴
octane-jsx app_brotli 2,497 2,505 +8 (+0.3%) 🔴
octane-jsx fw_raw 219,884 220,176 +292 (+0.1%) 🔴
octane-jsx fw_gzip 70,053 70,157 +104 (+0.1%) 🔴
octane-jsx fw_brotli 60,790 60,863 +73 (+0.1%) 🔴
octane-jsx full_fw_raw 571,501 571,833 +332 (+0.1%) 🔴
octane-jsx full_fw_gzip 175,058 175,239 +181 (+0.1%) 🔴
octane-jsx full_fw_brotli 147,927 147,946 +19 (+0.0%) 🔴

9 other measured values are unchanged.

Public-import reachability bundles (bytes)

❌ 55 value(s) exceed their committed budget. Reduce the growth, or raise the budget in a separate pull request that names the bytes and the reason (CONTRIBUTING.md, "Size budgets").

target metric head budget over
cli-spa-starter raw 109,250 108,976 +274
cli-spa-starter gzip 36,944 36,863 +81
root-static-specialized raw 77,707 77,425 +282
root-static-specialized gzip 25,832 25,735 +97
root-static-specialized brotli 23,045 22,997 +48
root-chained-jsx raw 79,743 79,465 +278
root-chained-jsx gzip 26,376 26,301 +75
root-static raw 204,862 204,593 +269
root-static gzip 65,281 65,174 +107
root-static-local raw 77,710 77,428 +282
root-static-local gzip 25,817 25,724 +93
root-static-local brotli 23,066 23,009 +57
hooks-state raw 89,770 89,488 +282
hooks-state gzip 29,839 29,740 +99
hooks-state brotli 26,539 26,520 +19
prop-attributes raw 90,249 89,971 +278
prop-attributes gzip 29,915 29,838 +77
context raw 104,176 103,895 +281
context gzip 34,518 34,442 +76
hydrate-root raw 170,098 169,866 +232
hydrate-root gzip 53,923 53,864 +59
deferred-hydration raw 233,650 233,383 +267
deferred-hydration gzip 73,882 73,794 +88
suspense-transition raw 160,594 160,348 +246
suspense-transition gzip 51,515 51,464 +51
server-render raw 65,499 65,201 +298
server-render gzip 22,597 22,499 +98
component-owned-effects raw 82,219 81,941 +278
component-owned-effects gzip 27,109 27,022 +87
component-owned-effects brotli 24,165 24,146 +19
binding-hooks raw 88,286 88,004 +282
binding-hooks gzip 29,570 29,469 +101
binding-base-ui-vite raw 215,118 214,853 +265
binding-base-ui-vite gzip 68,857 68,783 +74
binding-base-ui-vite brotli 59,768 59,686 +82
binding-base-ui-esbuild raw 213,058 212,795 +263
binding-base-ui-esbuild gzip 68,787 68,693 +94
binding-radix-vite raw 217,034 216,769 +265
binding-radix-vite gzip 69,427 69,314 +113
binding-radix-vite brotli 60,245 60,196 +49
binding-radix-esbuild raw 214,933 214,670 +263
binding-radix-esbuild gzip 69,382 69,302 +80
binding-mantine-hooks-vite raw 91,590 91,312 +278
binding-mantine-hooks-vite gzip 30,396 30,321 +75
binding-mantine-hooks-esbuild raw 91,237 90,961 +276
binding-mantine-hooks-esbuild gzip 30,566 30,484 +82
binding-apollo-client-vite raw 360,124 359,820 +304
binding-apollo-client-vite gzip 112,909 112,809 +100
binding-apollo-client-esbuild raw 363,048 362,749 +299
binding-apollo-client-esbuild gzip 115,166 115,051 +115
binding-apollo-client-esbuild brotli 100,466 100,390 +76
binding-usehooks-ts-vite raw 92,371 92,093 +278
binding-usehooks-ts-vite gzip 30,642 30,567 +75
binding-usehooks-ts-esbuild raw 92,003 91,727 +276
binding-usehooks-ts-esbuild gzip 30,766 30,701 +65
target metric base head Δ
cli-spa-starter raw 108,944 109,250 +306 (+0.3%) 🔴
cli-spa-starter gzip 36,831 36,944 +113 (+0.3%) 🔴
cli-spa-starter brotli 32,241 32,404 +163 (+0.5%) 🔴
root-static-specialized raw 77,397 77,707 +310 (+0.4%) 🔴
root-static-specialized gzip 25,722 25,832 +110 (+0.4%) 🔴
root-static-specialized brotli 22,925 23,045 +120 (+0.5%) 🔴
root-chained-jsx raw 79,433 79,743 +310 (+0.4%) 🔴
root-chained-jsx gzip 26,269 26,376 +107 (+0.4%) 🔴
root-chained-jsx brotli 23,443 23,506 +63 (+0.3%) 🔴
root-static raw 204,566 204,862 +296 (+0.1%) 🔴
root-static gzip 65,149 65,281 +132 (+0.2%) 🔴
root-static brotli 56,509 56,663 +154 (+0.3%) 🔴
root-static-local raw 77,400 77,710 +310 (+0.4%) 🔴
root-static-local gzip 25,709 25,817 +108 (+0.4%) 🔴
root-static-local brotli 22,972 23,066 +94 (+0.4%) 🔴
hooks-state raw 89,460 89,770 +310 (+0.3%) 🔴
hooks-state gzip 29,727 29,839 +112 (+0.4%) 🔴
hooks-state brotli 26,446 26,539 +93 (+0.4%) 🔴
prop-attributes raw 89,939 90,249 +310 (+0.3%) 🔴
prop-attributes gzip 29,806 29,915 +109 (+0.4%) 🔴
prop-attributes brotli 26,484 26,670 +186 (+0.7%) 🔴
context raw 103,863 104,176 +313 (+0.3%) 🔴
context gzip 34,410 34,518 +108 (+0.3%) 🔴
context brotli 30,451 30,619 +168 (+0.6%) 🔴
hydrate-root raw 169,820 170,098 +278 (+0.2%) 🔴
hydrate-root gzip 53,830 53,923 +93 (+0.2%) 🔴
hydrate-root brotli 46,982 47,039 +57 (+0.1%) 🔴
deferred-hydration raw 233,337 233,650 +313 (+0.1%) 🔴
deferred-hydration gzip 73,759 73,882 +123 (+0.2%) 🔴
deferred-hydration brotli 63,672 63,792 +120 (+0.2%) 🔴
suspense-transition raw 160,316 160,594 +278 (+0.2%) 🔴
suspense-transition gzip 51,432 51,515 +83 (+0.2%) 🔴
suspense-transition brotli 45,055 45,154 +99 (+0.2%) 🔴
server-render raw 65,169 65,499 +330 (+0.5%) 🔴
server-render gzip 22,467 22,597 +130 (+0.6%) 🔴
server-render brotli 20,230 20,337 +107 (+0.5%) 🔴
component-owned-effects raw 81,913 82,219 +306 (+0.4%) 🔴
component-owned-effects gzip 27,004 27,109 +105 (+0.4%) 🔴
component-owned-effects brotli 24,075 24,165 +90 (+0.4%) 🔴
binding-hooks raw 87,976 88,286 +310 (+0.4%) 🔴
binding-hooks gzip 29,456 29,570 +114 (+0.4%) 🔴
binding-hooks brotli 26,212 26,323 +111 (+0.4%) 🔴
binding-base-ui-vite raw 214,826 215,118 +292 (+0.1%) 🔴
binding-base-ui-vite gzip 68,758 68,857 +99 (+0.1%) 🔴
binding-base-ui-vite brotli 59,572 59,768 +196 (+0.3%) 🔴
binding-base-ui-esbuild raw 212,768 213,058 +290 (+0.1%) 🔴
binding-base-ui-esbuild gzip 68,668 68,787 +119 (+0.2%) 🔴
binding-base-ui-esbuild brotli 59,529 59,749 +220 (+0.4%) 🔴
binding-radix-vite raw 216,742 217,034 +292 (+0.1%) 🔴
binding-radix-vite gzip 69,292 69,427 +135 (+0.2%) 🔴
binding-radix-vite brotli 60,170 60,245 +75 (+0.1%) 🔴
binding-radix-esbuild raw 214,643 214,933 +290 (+0.1%) 🔴
binding-radix-esbuild gzip 69,275 69,382 +107 (+0.2%) 🔴
binding-radix-esbuild brotli 60,242 60,291 +49 (+0.1%) 🔴
binding-mantine-hooks-vite raw 91,280 91,590 +310 (+0.3%) 🔴
binding-mantine-hooks-vite gzip 30,289 30,396 +107 (+0.4%) 🔴
binding-mantine-hooks-vite brotli 26,922 27,056 +134 (+0.5%) 🔴
binding-mantine-hooks-esbuild raw 90,929 91,237 +308 (+0.3%) 🔴
binding-mantine-hooks-esbuild gzip 30,452 30,566 +114 (+0.4%) 🔴
binding-mantine-hooks-esbuild brotli 27,104 27,191 +87 (+0.3%) 🔴
binding-apollo-client-vite raw 359,793 360,124 +331 (+0.1%) 🔴
binding-apollo-client-vite gzip 112,786 112,909 +123 (+0.1%) 🔴
binding-apollo-client-vite brotli 98,422 98,544 +122 (+0.1%) 🔴
binding-apollo-client-esbuild raw 362,722 363,048 +326 (+0.1%) 🔴
binding-apollo-client-esbuild gzip 115,028 115,166 +138 (+0.1%) 🔴
binding-apollo-client-esbuild brotli 100,203 100,466 +263 (+0.3%) 🔴
binding-usehooks-ts-vite raw 92,061 92,371 +310 (+0.3%) 🔴
binding-usehooks-ts-vite gzip 30,535 30,642 +107 (+0.4%) 🔴
binding-usehooks-ts-vite brotli 27,181 27,300 +119 (+0.4%) 🔴
binding-usehooks-ts-esbuild raw 91,695 92,003 +308 (+0.3%) 🔴
binding-usehooks-ts-esbuild gzip 30,669 30,766 +97 (+0.3%) 🔴
binding-usehooks-ts-esbuild brotli 27,321 27,469 +148 (+0.5%) 🔴

33 other measured values are unchanged.

@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: Children owner symbol is copy-local
    • Changed CHILDREN_SIGNAL_OWNER from Symbol() to Symbol.for('octane.childrenSignalOwner') in both runtime.ts and runtime.server.ts so the owner stamp survives across multiple Octane runtime copies, matching the existing pattern used by CHILDREN_BLOCK and CHILDREN_BODY.

Create PR

Or push these changes by commenting:

@cursor push 6fe9deddd9
Preview (6fe9deddd9)
diff --git a/packages/octane/src/runtime.server.ts b/packages/octane/src/runtime.server.ts
--- a/packages/octane/src/runtime.server.ts
+++ b/packages/octane/src/runtime.server.ts
@@ -513,7 +513,7 @@
 // Compiled children are part of the template that authored them, not of the
 // component rendering them. markChildrenBlock records the owner that template
 // renders in, and the children's owner links to it (runtime.ts does the same).
-const CHILDREN_SIGNAL_OWNER: unique symbol = Symbol() as any;
+const CHILDREN_SIGNAL_OWNER: unique symbol = Symbol.for('octane.childrenSignalOwner') as any;
 let SIGNAL_COMPONENT_INSTANCE_KEY: ServerSignalInstanceKey = '';
 let SERVER_SIGNAL_OWNER_ACTIVE = false;
 let SIGNAL_CONTROL_SITE = '';

diff --git a/packages/octane/src/runtime.ts b/packages/octane/src/runtime.ts
--- a/packages/octane/src/runtime.ts
+++ b/packages/octane/src/runtime.ts
@@ -14839,7 +14839,7 @@
 // their parent are. markChildrenBlock records the signal owner that template
 // renders in, and scopeSignalOwner links the children's owner to it. A render
 // runs in an owner identity, which never retains its renderer tree.
-const CHILDREN_SIGNAL_OWNER: unique symbol = Symbol() as any;
+const CHILDREN_SIGNAL_OWNER: unique symbol = Symbol.for('octane.childrenSignalOwner') as any;
 
 /**
  * Compiler-emitted: attach markerless single-host-root metadata while a fresh

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

Reviewed by Cursor Bugbot for commit 40a7404. Configure here.

Comment thread packages/octane/src/runtime.ts Resolved
trueadm added a commit that referenced this pull request Oct 5, 2026
@trueadm trueadm closed this in #1761 Oct 5, 2026
trueadm added a commit that referenced this pull request Oct 5, 2026
…er fix (#1797)

#1781 lands #1774's children signal owner and the Hydrate children fix on
top of main c3c0a3b. #1773's raises for #1774 were used up by #1783's
budgets (#1793, #1794), which were sized without #1774's code. Measured on
main + #1781: 69 values breach, all raw or gzip; brotli fits everywhere.
Each breached value goes to measured + 32; no other value moves.

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