Repository navigation
Conversation
domgan-oai
marked this pull request as ready for review
September 21, 2026 19:23
…tream-query-owner
…tream-query-owner
…tream-query-owner
…tream-query-owner
…tream-query-owner
3 of 6 tasks
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
Pending
@tryprimaries now retain their native query owners when a parent rerenders with the same body and captured inputs. Previously those renders restarted an uncommitted primary, aborting its pending producer or starting a duplicate browser producer for an adopted server stream. Changed inputs still replace the primary, and the pending fallback continues to receive current inputs.The input comparison stays on pending or retained-owner paths, preserving the comparison-free resolved/catch fast path. Adds a patch changeset for
octane.Fixes #1219.
Validation
vitest run packages/octane/tests/signals-pending-stream.test.ts --project=octane-signals --project=octane-signals-prod --project=octane-signals-strong— 15 passed. Covers repeated unchanged inputs, changed selection, obsolete values, rejection, removal and streamed hydration; all five development cases failed before the fix.octaneandoctane-prod— 36 files / 1,042 tests passed.7231bbe. Latest head2355c3badds only main’s three Base UI type annotations; Octane source, tests, compiler, tooling and executed artifacts are unchanged. Scoped checks andpnpm syncpass again on this head.pnpm sync.2 → 0for unchanged inputs and2 → 1for changed selection, with correct final text and zero browser/SSR/compiler diagnostics. SSR output is byte-identical. After incorporating main’s separate root namespace fix (fix: preserve streamed root signal namespaces during hydration #1222), fast browser starts are also zero in both flows.157,362 → 157,428, gzip-951,044 → 51,078, Brotli-1144,627 → 44,707bytes. No timing or heap claim.Repository-wide
pnpm format:check,pnpm typecheckandpnpm testwere not run locally; the targeted commands above were run. The PR is ready for review; all 26 jobs in current-head CI passed on signed head2355c3b. Cursor Bugbot completed successfully with no findings. The branch contains live main and is conflict-free; branch protection requires one approving review before merge. Finalpnpm syncleaves the worktree clean.Risk / follow-ups
Retention uses the existing shared try/pending/catch capture tuple. Changing those inputs still takes the replacement path; teardown, reset and error ownership rules remain in force.
Provenance
agent-authored)Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Medium Risk
Touches core
@try/@pendingreveal and signal-retry teardown in the runtime; behavior change is scoped to pending primaries but affects Suspense hydration and native query streams.Overview
Fixes pending
@tryboundaries so parent rerenders with the same captured body/env no longer tear down an uncommitted primary or its nativequery$stream owners. The runtime now trackssupersedesInputsand only clears retry signal owners when inputs actually change; for a hidden pending primary it callsattemptHiddenRevealwith'update'instead of always using'parent', so preserved producers are not aborted and hydration does not spawn duplicate browser loaders.Changed inputs still take the replacement path (
'parent'), and the pending fallback continues to refresh from the latest helpers/env. Adds a patch changeset and regression coverage (client + streamed SSR/hydration) for pending stream ownership across same-input updates, selection changes, errors, and removal.Reviewed by Cursor Bugbot for commit 2355c3b. Bugbot is set up for automated code reviews on this repo. Configure here.