Repository navigation
fix(resolver): avoid unrelated directory fd for tsconfig overrides - #16
Merged
vincentkoc merged 2 commits intoSep 27, 2026
Merged
Conversation
Read explicit tsconfig overrides by their absolute path instead of borrowing the directory descriptor from the resolver walk. Keep ordinary config discovery and override precedence unchanged. Adapt the narrow FD repair from oven-sh#34980 and require clean stderr for CLI run/build override resolution, including unused malformed disk configs. Co-authored-by: robobun <[email protected]>
Member
Author
|
Validation and check applicability for head
|
vincentkoc
marked this pull request as ready for review
September 27, 2026 15:12
vincentkoc
deleted the
claude/fix-tsconfig-override-directory-fd-20260927
branch
September 27, 2026 15:13
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.
What does this PR do?
Fix the directory-descriptor producer for explicit
--tsconfig-overridepaths.The resolver can pair an absolute override path with the filesystem-root directory descriptor. The file reader first opens the path's basename relative to that descriptor, then falls back to the absolute path and emits an internal directory-mismatch diagnostic. An explicit override must not borrow that unrelated descriptor.
FD::INVALIDfor explicit overrides so the reader opens the supplied path directly. Discovered configs retain their matching directory descriptor;extendsalready usesFD::INVALID.FdZeroalias.Bun.buildoption wiring is included.Production delta: +4/-8, net -4 lines. Tests: +38/-18, net +20 lines. One changelog entry.
How did you verify your code works?
Baseline: the complete 12-case CLI file on the maintained
a70be26b47560ede9b7646451e66e3f735195672Darwin arm64 release produced 2 pass / 10 fail. All ten failures were the strict stderr assertions after the expected output checks; the two overlong-path controls passed. The original warning was also observed on the maintained Linux runtime in OpenClaw's Bun-backed test path and a builtin-only explicit-override probe.Fixed native proof: built signed commit
a934daaf6f1b2b2a9330930e01ce22a26d29b65don Linux x64 with the native debug+ASAN build route in the pinned Debian 13 / LLVM 23 environment.CI=true bun bd -j2is build-only, so the proof then executed the produced binary directly:Bun.version === "1.4.3-debug", and runtime-reported ASAN status.dd507c8718910b5231eb10b1934c172bfa207e1c7d26f06a45d15626f70eb74d.extends, path-limit errors, run/build selection, and unused malformed disk configs.Final-head provenance:
8931d45cda02e91c423fdf93dc35c92ae815e73dis a signed, independently reviewed changelog-order follow-up to the testeda934daaf6f1b2b2a9330930e01ce22a26d29b65d. Every non-changelog blob is identical. It avoids the changelog-only collision with observedmainat97005730feadce4a5807557124b65533a04767c4without rebasing or importing new production changes. The final metadata-only head was not rebuilt, and the binary above is explicitly thea934daaf6f1b2b2a9330930e01ce22a26d29b65dbuild.Fixed native execution is currently Linux x64; normal exact-head hosted/platform gates remain required before landing.