refactor: generate cold-start routes at build time for v6.5.0 (OK-57861)#12542
Open
huhuanming wants to merge 16 commits into
Open
refactor: generate cold-start routes at build time for v6.5.0 (OK-57861)#12542huhuanming wants to merge 16 commits into
huhuanming wants to merge 16 commits into
Conversation
huhuanming
marked this pull request as ready for review
July 17, 2026 10:50
huhuanming
requested review from
ezailWang,
originalix,
revan-zhang and
sidmorizon
as code owners
July 17, 2026 10:50
huhuanming
enabled auto-merge (squash)
July 17, 2026 10:50
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.
OK-57861
Summary
Backports the complete fix from #12496 to
release/v6.5.0.resolveScreensimplementationWhy
Runtime route discovery kept route modules in the cold-start dependency graph and made generated route coverage harder to audit. Some strongly typed onboarding routes could also mount with missing or malformed URL parameters.
This backport makes the route topology deterministic at build time, reduces production cold-start exposure, and fails closed for sensitive route inputs without changing established displayed URLs.
Impact
Port notes
The 16 commits from #12496 were replayed in order onto the latest
release/v6.5.0. The only conflict was inpackages/kit/src/routes/config/index.ts; the resolution preserves the release branch's Web DApp fallback and adds the backportedresolveScreensimport.Validation
yarn install --immutable --inline-buildsyarn routes:generateyarn routes:checktsgo --noEmitgit diff --checkyarn agent:check --profile commitstill hits the Windows child-process spawn issue documented in #12496; its underlying route generation, lint, tests, and TypeScript checks were run directly and passed.