Repository navigation
fix(javascript): exclude erased imports from runtime bindings - #6994
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryExcludes erased imports when
Reviews (1) · Last reviewed commit: "fix(javascript): exclude erased imports ..." · Reviewed by Greptile |
This was referenced Oct 24, 2026
3 tasks done
3 tasks done
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.
Problem and outcome
CI for #6988 fails the Worker URL CLI identity fixture after the TypeScript-erasure change. The old fixture expects a declaration-wide type import to shadow the ambient Worker; that expectation is stale. Independent esbuild compilation and execution also expose a real remaining defect: an inline
import { type Worker }still creates a runtime semantic binding.Filter erased specifiers at import binding creation using the existing module-declaration predicates, and remove the obsolete type-import provenance fallback. CLI and MCP reuse this semantic owner. Source type links, mixed value imports, and the existing warning about compiler-dependent module side effects remain. Correct the two Worker fixture expectations, retain every identity/assignment/namespace negative case, and assert the exact runtime binding inventory in the existing type-link regression. Two independent compiler/runtime oracles use an inert Worker recorder; they launch no Worker.
Executed validation
Pinned base
9895f1870, Node 24.22.1 / npm 11.16.0, Linux x64, two CPUs:InlineandErasedremain in the value binding table (2.59 s / 2.89 s CPU / 486.4 MiB). Production edits were restored afterward.npm run checkandgit diff --checkpassed (25.65 s wall / 47.82 s CPU / 2658.2 MiB; 2/6 static tasks cached).npm run verify:test-discoverypassed: all 2369 files discovered exactly once (1.17 s / 1.11 s CPU / 284.7 MiB). These are real REA CLI/stdio MCP runs over controlled source fixtures, with an independent compiler/runtime oracle; no browser, native provider or external model was exercised. Validation costs include setup/build where required; no speedup is claimed. Agent tokens were not measured. RSS sums descendants at 100 ms intervals and can double-count shared pages or miss brief/reparented children. Compiled checks had a 3 GiB sampled guard; source checks 1.5 GiB; commands had elapsed guards. No OOM occurred. A prior 1.5 GiB CLI diagnostic stopped before assertions and is incomplete evidence.Scope: ordinary existing source-analysis correctness repair; no new execution authority, provider or public schema. Complete PR CI passed at exact head
f1f428979: Source 17689 passed / 13 skipped; all eight built shards, static/build/docs, JavaScript recovery, Windows native build, Linux package baseline and the final required gate passed. Merged report: 32017 passed / 0 failed / 233 conditionally skipped. Codex and Greptile reviews completed without findings; there are no inline review threads. Main advanced separately with verifier ownership changes (0402012a9); post-merge main verification remains required, and is not claimed by these PR results.Author readiness
Human owner: @gensokyo-dev
The owner explicitly delegated readiness declarations and agent-managed review. Inspection and execution were performed by Codex; no separate human inspection is claimed.