Repository navigation
fix(codemod): use physical filenames for retained registry proofs - #3066
Merged
domgan-oai merged 4 commits intoNov 18, 2026
Merged
domgan-oai merged 4 commits into
domgan-oai merged 4 commits into
Conversation
(cherry picked from commit 64e2c3eb50a15c43c78802a1b98c44858890ce7a)
domgan-oai
marked this pull request as ready for review
November 18, 2026 22:29
This was referenced Nov 18, 2026
Contributor
Benchmark report🟢 No byte growth, no added work, and no timing changes beyond ±3%. Compares js-framework: 1k/10k row operationsAll 20 timed operations (20 without a verdict)
All 64 work counters are unchanged. Application bundle size (bytes)No changes across 111 measured values. Public-import reachability bundles (bytes)No changes across 141 measured values. |
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
After #3045 canonicalized the strict TypeScript proof program, #3052 still looked up the retained registry by its lexical filename. When a project is reached through a parent symlink, that lookup misses the physical source file and the codemod can silently rewrite a retained React
createElementimport to Octane. Apply the same proof-only filename policy to the registry and local-hook lookups, keepingpreserveSymlinks: truelexical.Follow-up to merged #3052; Refs #2776 and #2851.
Validation
pnpm format:checkpnpm typecheckpnpm test1931c903f6; the explicit parent-symlink registry regression failed on the merged integration and passes with this repair.git diff --check, andpnpm sync.concise-code: src +6 −2, runtime +0 −0; patch changeset only, no new export. Reuse the existing TypeScript proof-path helper rather than adding another realpath mechanism. Bytes: not applicable.perf-review: not applicable (codemod-only diff).Risk / follow-ups
Only lookups into the existing strict proof program change. Lexical module resolution, ownership checks, and write guards remain intact; the unrelated TypeScript program is untouched.
Local validation used the managed worktree’s previously installed TSRX packages (
@tsrx/core0.5.5,@tsrx/oxc0.23.0, esrap 2.3.2). The configured internal registry did not have the upgraded packages, and an alternate public-registry install was not approved. Current-head CI must validate the exact live-main lockfile versions (core 0.6.3, oxc 0.24.0, esrap 2.4.2).Provenance
agent-authored)Codex task · host
com-79386Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Note
Low Risk
Codemod-only change to proof-program source lookups; lexical resolution and write behavior stay the same when preserveSymlinks is enabled.
Overview
Aligns retained React registry and local-hook lookups with the existing strict TypeScript proof program: when
preserveSymlinksis not set,program.getSourceFilenow usesproofPath(physical path) instead of the lexical path, matching how proof files are registered after #3045.This fixes a regression where projects reached through a parent directory symlink failed to find registry/hook source files in the proof program, which could incorrectly migrate retained
createElementboundaries. Lexical paths are still used whenpreserveSymlinks: true.Adds a
through a parent symlinkretained-registry test case and a patch changeset for@octanejs/codemod.Reviewed by Cursor Bugbot for commit b113c33. Bugbot is set up for automated code reviews on this repo. Configure here.