Repository navigation
Fix permanent-static and streamed deferred hydration - #229
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
trueadm
marked this pull request as ready for review
July 22, 2026 00:48
mrdiyorbek-juraev
added a commit
to mrdiyorbek-juraev/octane
that referenced
this pull request
Jul 22, 2026
Brings in 12 upstream commits, including the shared TSRX semantic analysis across client/server/universal/Volar compilation (octanejs#230), the deferred hydration fix (octanejs#229), Lynx Milestone 7 worklets (octanejs#227), template-free production hydration (octanejs#218), and the dependency/TSRX toolchain refresh (octanejs#223) with the release that followed it. Two conflicts, both in generated files, resolved by taking upstream and regenerating from the merged tree: - docs/packages.md — 47 publishable packages upstream, 48 here. Verified as a strict superset: every package upstream lists is still present, and the only additions are `@octanejs/cmdk` and `packages/cmdk`. - packages/octane-evals/.../manifest.jsonl — all 19 task ids match upstream, and a field-level comparison shows only environment.overlayLockfileHash and grader.graderDigest differ. No prompt, policy, reference or grader command changed, so task semantics are untouched; both fields derive from the lockfile, which necessarily moved. pnpm install also rewrote pnpm-workspace.yaml as a side effect — it flattened upstream's `*esrap_common` YAML anchor and appended [email protected] to minimumReleaseAgeExclude. Both are reverted, so the file differs from upstream by exactly one line: the `cmdk: 1.1.1` catalog pin this package needs. packages/cmdk is unchanged apart from one comparator re-wrapped by the refreshed prettier; the whitespace-only diff is the entire delta. Verified: 43/43 cmdk and cmdk-ssr against the new compiler, 48/48 evals (including the corpus freshness gate), tsrx-tsc, tsgo, prettier, and all five generated-artifact gates current.
Closed
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
<Hydrate split={false} when={never()}>form into a wrapper-free server-owned range, reserve IDs without client evaluation, and prune only private module-scope descendants proven exclusive to itAddresses #228.
Scope note
Existing externally patched descendants remain preserved across hydration and surrounding updates while Octane's private ownership markers remain intact. This PR does not invent a public behavior-adoption, conflict, or disposal API; that remains separate API design work.
Validation
pnpm test— 1,280 files / 12,348 tests passedpnpm typecheckpnpm format:checkPerformance and conservatism
The common activation path uses a native selector rejection before ownership-aware scanning, and stream tokens are emitted only for Hydrate ranges containing pending renderer work. Static declaration pruning deliberately retains exported, shared, coupled, unsupported runtime-TypeScript, and direct-eval shapes.
Note
High Risk
Touches hydration compiler graph pruning, SSR streaming error paths, and client activation/replay—areas where subtle ordering bugs affect DOM adoption and interactivity.
Overview
Adds the permanent-static contract for the exact
<Hydrate split={false} when={never()}>form: the client compiler erases that subtree, prunes private module-scope declarations/imports used only there, and rewrites the tag toHydrate.__octanePermanentStaticwithchildren={null}while retaining owning scoped<style>for hash parity. SSR renders wrapper-free content bounded by<!--octane-static-hydrate:…-->markers (with optional stream tokens); the client reservesuseIdslots without evaluating or reconciling those nodes, and client-only mounts render no static children.Streaming SSR marks boundaries under permanent-static depth as
serverOwnedStatic(no per-boundary client seeds, sync errors reach authored catches). Pending stream failures use$OCTRX(id,1)to drop the sentinel and keep the flushed fallback instead of client recovery.Deferred activation no longer races renderer-owned Suspense: dormant boundaries with a stream token wait via
MutationObserveruntil ownedtemplate[data-oct-b]reveals complete or degrade; nested dormantHydrateand permanent-static ranges do not block ancestors. Event paths and interaction replay skip stream sentinels and prefer the original event target when it still lives in the tree.Introduces dependency-free
stream-protocol.tsfor shared stream/Hydrate token helpers (including pre-root capture), documents the new behavior, and expands compiler, hydration, streaming, bundle, and collision tests.Reviewed by Cursor Bugbot for commit ba0fa99. Bugbot is set up for automated code reviews on this repo. Configure here.