Repository navigation
Description
Summary
Track the follow-up to a regression sweep of every commit merged to main between 2026-09-03 and 2026-09-10 (83 commits, PRs #943 through #1033, main @ 856febc73). This is one coordination issue; fixes should land as separate package-owned PRs with regressions in the owning package per CLAUDE.md.
Method: per-area diff review of every non-generated source hunk (runtime render/commit, events/transitions/hooks, SSR, universal core, compiler, Strong mode, bindings, tooling), each suspicious spot re-verified against current main; the packages/octane Vitest suite locally (18,656 pass, one load flake); log triage of every red CI run on main this week; and scratchpad reproductions of the top items (marked confirmed). No repo files were modified.
Headline: main is green and nothing is a blocker. The 13 render/commit/reconciler perf commits, the 18 event/transition/hook/context commits, the universal-core commits, and the app-core route indexing (#951/#955, 160k-query old-vs-new differential fuzz) came up clean. The items below are the concrete defects, the core changes that shipped under binding-PR titles without changesets, and the CI signal problems.
Defects
Items 1–6 are resolved. The core-change reviews and CI signal work below remain open.
1. Any $-suffixed name flips a module into native-signal-read mode (#997) — confirmed
packages/octane/src/compiler/native-read-diagnostics.js:75-101 (nativeReadOptions), wired at compile.js and slot-hooks.js. #997 removed the explicit nativeReads option and replaced it with syntactic inference: an Identifier/JSXIdentifier, member property, or object key whose name ends in $ anywhere in runtime AST enables native reads for the whole module. $ itself qualifies, as do rxjs-style foo$ names.
Repro (compile with renderer: { target }):
import { useEffect, useState } from 'octane';
export function Ticker() @{
const [n, setN] = useState(0);
useEffect(() => { const tick$ = setInterval(() => setN((v) => v + 1), 1000); return () => clearInterval(tick$); }, []);
<div>{n as string}</div>
}| name | target | result |
|---|---|---|
tick |
dom | hoisted _$template path |
tick$ |
dom | beginNativeReadScope + nativeCreateScopedElement path (no hoisted template) |
tick$ |
universal | throws Octane native signal reads support only the DOM client and server. |
The design comment says the heuristic is deliberate ("do not require a direct signals import"); the consequence is a compile failure for every universal/Lynx module using a $ naming convention and a silent render-path change on the DOM client, with no opt-out left. Suggested guard: require an octane/signals* import (or a $ binding that resolves to one) before inferring, or restore an explicit opt-out.
- Fix in
packages/octanecompiler + regression (.tsrxwithimport $ from 'jquery'/const tick$compiles on universal and keeps the template path on DOM).
2. Strong mode: @switch arms have no scope in the phase analyzer (#963, #1029, #1031, #1033) — confirmed
packages/octane/src/compiler/strong-mode.js visit() (the switch near line 3073) has no JSXSwitchExpression case, so @case/@default consequents fall to the generic child loop (~line 3650) and are visited in the enclosing scope with no predeclareStatements. The locality walker added in #963 handles the same node correctly (~line 729, createScope(scope, 'function', branch.consequent)) and is the template for the fix.
Consequences, each reproduced against compile() with Strong enabled:
let revision = 0; function advance() { revision++ }+@case 'a': { const revision = props.r; <p>{revision as string}</p> }→ falseOCTANE_STRONG_RENDER_MODULE_STATE_READ(arm-local shadow invisible). The same input in an@ifarm compiles clean.const ref = useRef(null)in the parent +@case 'a': { const ref = props.other; <p>{ref.current as string}</p> }→ falseRENDER_REF_READ; same shape withgetN/setN/itemsgives falseRENDER_STATE_GETTER_CALL/RENDER_STATE_UPDATE/RENDER_SNAPSHOT_MUTATION(bindings from one arm leak into later arms).- Missed diagnostic:
@case 'a': { function read() { return ref.current; } <p>{read() as string}</p> }compiles clean; the identical@ifarm throwsRENDER_REF_READ(arm-local function declarations are never bound).
Also (lower): PropertyDefinition/AccessorProperty values (strong-mode.js ~3125) are visited as render-time regardless of node.static, so class Entry { value = revision } instantiated only from a handler is rejected. Object-literal getters/methods are never visited (missed diagnostics). Strong mode is opt-in, which bounds the impact.
- Add a
JSXSwitchExpressioncase tovisit()mirroring the locality walker; visit non-static class fields as deferred; add the arm-shadow, arm-leak, and arm-local-function regressions.
3. React Aria port defects (#978)
-
VirtualizerItemdropsshouldObserveItemSize— confirmed.packages/aria/src/virtualizer/VirtualizerItem.tsx:31-39destructures the prop but theuseVirtualizerItem({ layoutInfo, virtualizer, ref })call omits it, so the new ResizeObserver path inuseVirtualizerItem.tsx:61-85is unreachable through the component.<Virtualizer shouldObserveItemSize>items whose content grows are never re-measured. - Dead propagation guard in
useGridListItem— confirmed dead.packages/aria/src/gridlist/useGridListItem.tsx:446-452guardsbaseOnKeyDownon'isPropagationStopped' in e, which is never true for the nativeKeyboardEventOctane delivers, so the row's press handler always runs. WithkeyboardNavigationBehavior="tab"and a native checkbox/link/button inside a row, Space/Enter still presses/selects the row, which is exactly what upstream's comment at line 441 guards. Under Octane the equivalent ise.cancelBubble. The same pattern was added tointeractions/createEventHandler.ts:86-95where it is harmless (net behavior unchanged). -
useKeyboardhands the raw native event to user handlers whenshortcutsis set —packages/aria/src/interactions/useKeyboard.ts:84-85useschain(props.onKeyDown, shortcutOnKeyDown)while the prop type promisesBaseEvent<KeyboardEvent>;useMenuItem.ts:390-393routes consumeronKeyDownthis way, so aMenuItem onKeyDown={e => e.continuePropagation()}throwsTypeError. Upstream has the samechain, but under OctaneisDefaultPrevented()/isPropagationStopped()are also missing. - Type-only losses:
packages/aria/src/tokenfield/useTokenField.tsx:45-46droppedFocusablePropsfromAriaTokenFieldProps(import left unused), soautoFocus/onFocus/onBlur/onFocusChangefailtsrx-tsconTokenFieldthough the runtime honors them;packages/aria/src/components/Tree.ts:1388-1389changed the exportedTreeSectionsignature toGridListHeaderProps & { ref?: any }, so<TreeSection items={…}>is an excess-property error. - Lower:
packages/aria/src/index.ts:379exportsgetSelection, which upstream'suseTokenFieldexports do not;useDialog.ts:64callsuseSlotId()without a manual slot inside a manual-slot.tshook (falls back to the global key; latent collision); converted.tsxhooks accept and ignore_slot(latent collision only from non-compiled.tscallers that invoke the same hook twice; none found).
4. shadcn port (#978)
Resolved in #1042.
- Remove the unused
cn-menu-target cn-menu-translucentclasses from Base UI Select and its React reference, matching the pinned shadcn 4.21.0 defaultmenuColortransform. - Open Select and NavigationMenu popups in the differential and compare their portaled content with React, including Select options and scroll controls.
- Move unused
clsxandtailwind-mergeruntime dependencies to development dependencies in@octanejs/shadcn.
5. SSR spliceHead and fragment-root <head> (#1001) — resolved
At the sweep baseline, packages/octane/src/runtime.server.ts:6573-6583 spliced hoisted head markup before </head> only when isDocumentRoot(body) (first-bytes <html check); everything else is prepended. A root fragment that authors its own <head> without <html> (the Fizz-supported preamble shape, used when a server template owns <html>):
export function Page() @{ <><head><meta charSet="utf-8" /></head><body><title>T</title><main>x</main></body></> }- before perf: skip head-close scan for SSR fragments #1001:
<!--[--><head>…<meta charSet="utf-8"><title>T</title></head><!--]-->… - at sweep baseline:
<!--rnh-…--><meta charSet="utf-8"><!--/rnh-…--><!--rnh-…--><title>T</title><!--/rnh-…--><!--[--><head><!--[--><!--]--></head><!--]-->…
At the sweep baseline, the compiler hoisted the authored <meta> out of <head>, so the authored head serialized empty and metadata landed before it. The SSR preamble behavior and hydration boundary are now documented and covered by regressions.
- Fold hoisted metadata and streamed scoped styles into a leading authored
<head>in fragment SSR output (#1045). A fragment preamble composed into host-owned<html>remains SSR-only; hydrate a body root withheadChannel: 'separate'instead.
6. Tooling and packages
- PostCSS packed-consumer pin removed (perf: index static app-core routes for O(1) dispatch #951; #1045): The type error was in PostCSS 8.5.27 and was fixed upstream in postcss/postcss#2154. The packed-consumer smoke now resolves
postcss: ^8.5.28without the 8.5.26 override, reports its resolved version, and passes thetsrx-tscconsumer check. - SEO diagnostic removed from production bundles (fix(seo): compile and run the published source outside Node #954; #1045): The old
typeof process !== 'undefined' && process.env.NODE_ENV === 'production'guard kept the development-only effect and counter in browser bundles. The diagnostic now runs in development only; a production bundle regression checks that its warning and counter are eliminated.
Core changes that rode binding PRs without a describing changeset
These are not known to be wrong; they are runtime/compiler semantics changes that were not reviewed as such because they landed inside large binding PRs. Each deserves a deliberate look and, where user-visible, a changeset.
- feat(base-ui): complete the Base UI 1.8.0 binding #973 (
184631809, "complete the Base UI 1.8.0 binding") changed ~600 lines ofpackages/octane/src/runtime.ts:- plain
flush()(flushWork) now drains layout-effect cascades synchronously via the newdrainLayoutUpdates, bounded only byLAYOUT_CASCADE_LIMIT = 50and the nested-update guard;flushSync's convergence brake ("a block re-scheduling itself is non-convergent, defer to the async scheduler") was removed and its comment rewritten. Bounded (theupdate-reconciliationconformance tests still pass), but it is a scheduling-semantics change. - ref-callback state writes are now collected during
drainCommitRefsand scheduled once after both detach and attach phases, skipped when the value round-trips (Object.is(state.value, previous)). act()was rewritten:isInActScope,actCallbackDepth/asyncActCallbackDepth, aMessageChanneltask checkpoint replacing the 5-microtask loop, andflush()now catches render errors inside an act scope and defers them to the act result.journalRootRangeundo now bails when a newer undo already removed the range's anchors.packages/zustand/tests/conformance/unstable-selectors.test.tswas rewritten to pinMaximum update depth exceededat mount for unstableuseSyncExternalStoreselectors (React parity, but user-visible).- The only
octanechangesets in that PR describe the peer floor /isInActScopeexport and the streamed@catchadoption fix.
- plain
- feat: update shadcn and React Aria bindings #978 changed
packages/octane/src/compiler/compile.js:20737-20742so Float<style href precedence>CSS shipssheet.sourceverbatim instead of the scoped serializer output (which pruned unused selectors and renamed keyframes). Correct fix with a regression intests/float-resources.test.ts, but user-visible compiler output changed under a bindings title. Related:packages/base-ui/src/utils/styles.tsrxwraps the style in a template component because a value-position<style href precedence children={css}/>still renders inline rather than hoisting;docs/differences-from-react.mdpromises React semantics there. - feat(base-ui): complete the Base UI 1.8.0 binding #973 added
retry: process.env.CI ? 1 : 0topackages/base-ui/tests/vitest.config.ts:18andpackages/base-ui-utils/tests/vitest.config.ts:15, which masks Octane-side flakes in CI.packages/testing-library/tests/octane-peer-minimum.test.tsfetchesregistry.npmjs.orginside the ordinarypnpm testproject with no offline skip. - fix: update TSRX dependencies and remove upstreamed core patch #979 deleted four volar regression cases plus fixture when dropping the upstreamed
@tsrx/corepatch; all four assertions still pass against@tsrx/[email protected](fix present), so only coverage was lost. Consider restoring them as plain regressions. -
74650f37dchangedpackages/base-ui/tests/differential/parity.test.ts:367fromd.steptod.observe, dropping the immediate post-click React/Octane HTML comparison (only the post-entrance-paint state is still compared).
CI signal
- Recurring parity red on
main:packages/base-ui/tests/upstream/src/dialog/popup/DialogPopup.test.tsxfinalFocus …fails intermittently (2 of 9 pushes this week) with "An update to DialogRoot was not wrapped in act(...)" fromuseAnimationFrame→useTransitionStatus. Root cause is the test's bareawait waitSingleFrame()betweenuser.clickanduser.keyboard('{Escape}')running outsideasyncWrapperwhile the act environment is armed; unmount does cancel frames, so this is a harness race, not a binding defect. Upstream fixed it in [dialog] Wrap the finalFocus frame wait in act mui/base-ui#5640 (merged 2026-09-09);packages/base-ui/audit/upstream.lock.jsonpins v1.8.0 and fix: update TSRX dependencies and remove upstreamed core patch #979 dropped the local patch "for upstream follow-up", somainstays intermittently red until the lock is bumped or the patch is reinstated. - Other reds this week, all timing:
packages/octane/tests/compiler/volar.test.ts"type-checks absent and optional host spread refs" at 5.4s against the 5s default (1.2s locally; consider a per-test timeout since it runs a real type-check);packages/input-otp/tests/browser/upstream/base.selections.spec.tsselection race (expected '5' to be '4'); jsdom "wrong timeout" inpackages/transition-group/upstream/test/Transition-test.js; "Failed to run the test" in the browser lane (SelectPortal, AvatarRoot, PopoverPortal, DrawerContent), each preceded by a NodeTimeoutNaNWarningwhose source was not located. Locally,packages/octane/tests/hydration/deferred-hydration.test.ts"adopts a split child whose component graph shares eager module state" (octane-prod) fails under concurrent load and passes in isolation. - The weekly
Benchworkflow has failed for ten consecutive runs (since at least 2026-07-06). Since test(bench): add synthetic workerd app workloads #900 it dies atBENCH_ROUNDS=1 node benchmarks/ssr-workerd/app-workloads/run.mjs 1withERR_MODULE_NOT_FOUND: Cannot find package 'octane':run.mjsimportsoctane/compiler/vitebutbenchmarks/ssr-workerd/package.jsondeclares only miniflare/vite/react (fails locally too). That step precedesnode benchmarks/bench.mjs --quick --ratios, so the ratio guards never ran and none of this week's ~40 perf commits was measured by CI. Add the workspace dependency (orcreateRequirefrom the repo root), then expect the older ripple/bundle-budget failures to resurface behind it.
Reviewed and clean
Runtime render/commit/reconciler: #982, #986, #976 (one low, pre-existing: retired inert rows restored to pending = true by a root rollback can be dropped by scheduleRender dedupe; reachability not constructed), #989, #990, #1006, #1013, #1014, #1015, #1030, #1025, #1023, #998. Events/transitions/hooks/context/warm plans/styles: #947, #949, #946, #994, #991, #995, #992, #1016, #1017 (PR #929 trusted-event fallback and PR #927 discrete flush confirmed intact), #1019, #1020, #1024, #1028, #996, #957, #960, #961, #956. SSR: #1032, #948, #1000, #999, #964, #974, #945, #968, #969, #1004. Universal core: #1026, #1011, #1010, #1009, #1008, #1005. Compiler: #1018, #1003, #972, #970, #939, #993 (AST immutability suite passes). Bindings/tooling: #971, #952, #953, #950 (no stale react-is references), #1021, #937, #983, 8b100edb2, e8be59141. Strong-mode legitimate patterns (~75 probes: refs/getters in effects and handlers, custom hooks, @for handlers, frozen consts, enums, shadows) all compile clean apart from item 2.
One agent claim that .ts modules skip the hook-in-plain-loop guard for hook methods did not reproduce (for…of over store.useValue throws in both .ts and .tsrx at HEAD) and is excluded.
Activity
leonidaz commentedon Sep 10, 2026
for #979, the regression tests were moved to tsrx-org/tsrx since that's where they belong with the fixes.
fix(aria): address issue #1037 item 3 (#1041)