Repository navigation
fix: address high-priority server, SSR, and adapter defects - #968
Merged
domgan-oai merged 3 commits intoSep 5, 2026
Merged
Conversation
domgan-oai
marked this pull request as ready for review
September 5, 2026 22:25
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit 93cab37. Configure here.
leonidaz
added a commit
that referenced
this pull request
Sep 5, 2026
Brings in #968 (server, SSR, and adapter defects); no conflicts. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Closed
15 of 24 tasks
1 task done
10 tasks done
14 of 21 tasks
2 of 5 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
descriptorChildrenmarkers through Rspack's source graph, including explicit re-exports, so Rspack and Rsbuild builds deliver inspectable children.Why
Addresses the five highest-priority findings in #967 on one branch. The broader audit tracker remains open for the other correctness and performance findings.
Changes
@octanejs/app-core,octane, and@octanejs/rspack-plugin.Validation
pnpm format:checkpnpm typecheckpnpm testpnpm syncpnpm changeset:checkmaincommit1f19beb0(run)The unsharded local
pnpm testrun on Node 26.4.0 reached Vitest's 4 GB heap limit and exited with V8 OOM after unrelated package failures. On the repository's supported Node 24 line, isolated Jotai and resizable-panels cases that failed under Node 26 passed (10/10 and 6/6). An isolated email preview watcher case remained failing on both Node versions with untouched source. The PR run was cancelled by the merge after all four Node 24 test shards passed. The merged-main CI run passed every lane, including Chromium integration and CI provenance.Risk / follow-ups
export *barrels remain an existing limitation shared with Vite's proof.EMFILEeven with the original fixture and the descriptor preflight disabled. Production routed client/server integration passed.Provenance
agent-authored)Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
High Risk
Changes touch security-sensitive static path serving and production API error responses, plus substantial streaming SSR settlement logic on the hot request path.
Overview
Hardens production defaults and fixes several high-priority server, SSR, and bundler edge cases called out in the audit.
Production HTTP and API: Thrown API route failures now always return a generic
{ error: 'Internal Server Error' }JSON body while the full exception stays in server logs. The built-in Node static server pins the asset root at startup withrealpath, rejects resolved paths outside that tree (including symlink escapes and retargeted roots), and serves from an opened read-only file descriptor so a path swap after verification cannot change the bytes streamed.Streaming SSR: Injected HTML handling gains recovery/backpressure semantics (
onUnaccepted,'recovery'writes) so notified fragments, document tails, and terminal salvage still land in order when readers start late, consumers abort, or Node accepts bytes under pressure. User hooks (onShellReady,onError, etc.) that throw now deterministically reject shell/allReadypromises instead of leaving streams pending, and injection sources are finalized on early shell failures.Rspack / compiler:
findDescriptorChildrenImportsfollows default re-exports through barrels. A new Rspack pre-transform loader resolves and provesdescriptorChildrenmarkers (including chained re-exports) and passes that into the Octane compiler so client and server bundles treat imported slot components correctly; Rsbuild integration coverage exercises the same path.Reviewed by Cursor Bugbot for commit 714c92d. Bugbot is set up for automated code reviews on this repo. Configure here.