Skip to content

fix(tsc): preserve informational output (adopt upstream #3754) - #164

Merged
kylehgc merged 1 commit into
developfrom
fix/tsc-informational-output
Sep 8, 2026
Merged

kylehgc merged 1 commit into
developfrom
fix/tsc-informational-output

Conversation

@kylehgc

@kylehgc kylehgc commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Closes #136. Adoption of upstream rtk-ai#3754 by @amandeavor (upstream issue rtk-ai#3750).

Bug: every rtk tsc invocation went through BlockStreamFilter, and format_summary replaced the output of informational flags (--version, --showConfig, --listFiles, --init, --help) with TypeScript: No errors found. Silent corruption on the js path.

commit author content
bb0a9c8 amandeavor (cherry-pick of 81d315f) INFORMATIONAL_FLAGS, is_informational_invocation, passthrough branch in run(), two tests

Fidelity: every added/removed line is byte-identical to upstream's commit. The only conflict was context — the fork's run() takes a runner: Option<&str> parameter that the PR predates; resolved by keeping the fork's signature and inserting the PR's code unchanged.

Repro, real binaries (TypeScript 7.0.2 in a scratch project; before = installed build of develop at cf55499, after = debug build of bb0a9c8):

Command Before After
rtk tsc --version / -v TypeScript: No errors found (exit 0) Version 7.0.2
rtk tsc --showConfig TypeScript: No errors found the JSON config
rtk tsc --init TypeScript: No errors found Created a new tsconfig.json
rtk tsc --listFiles diagnostics only, file list dropped diagnostics plus the file list (exit 2)
rtk tsc -- --help TypeScript: No errors found tsc's own help
rtk tsc --noEmit bad.ts filtered summary, exit 1 unchanged, still filtered

Quality gate (x64 host toolchain): cargo fmt --check clean, cargo clippy --all-targets 0 warnings, cargo test --all exit 0, 0 failures, including the PR's informational_flags_bypass_diagnostic_filtering and typecheck_invocations_stay_filtered.

Deliberately not fixed:

🤖 Generated with Claude Code

@kylehgc
kylehgc merged commit 33e47e7 into develop Sep 8, 2026
4 checks passed
@kylehgc
kylehgc deleted the fix/tsc-informational-output branch September 8, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

adopt tsc: preserve informational output (upstream #3754)

2 participants