Repository navigation
fix(auggie): resolve spawn EINVAL when running the CLI shim on Windowsfix(auggie): resolve spawn EINVAL when running the CLI shim on Windows - #14215
Merged
diegosouzapw merged 1 commit intoSep 22, 2026
Conversation
Collaborator
|
Thanks @andreyzagid-tech — merging via the release merge-train. Validated in local merge-train (mt-train10c) on the devbox @ train tip 4d841aa1c740bbaa03868dc0a403c62099a99a42 with the 72 sibling PRs of this batch: typecheck:core, file-size, complexity, cognitive-complexity, changelog-integrity green; changed-area node:test 831/831 (0 failing) and vitest 480/482 — the two reds are |
diegosouzapw
merged commit Sep 22, 2026
10c8aaa
into
cheaper-inference:release/v3.8.51
3 checks passed
This was referenced Sep 22, 2026
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
On Windows,
auggierequests fail with[502]: spawn EINVAL. Since Node's CVE-2024-27980 fix (>=18.20.2 / 20.12.2 / 21.7.3),spawn()on a.cmd/.batshim withoutshell: truethrowsspawn EINVALsynchronously.#6304fixed the two request-time spawn sites (spawnAuggie/runStreaming) by routing them through the sharedbuildAuggieSpawnOptions()helper, which setsshell: trueon win32. But two other CLI spawn sites were left bypassing it:initAuggieModels()—auggie model listcheckAuggieCliVersion()—auggie --versionBoth still threw
spawn EINVALon win32, so provider discovery and version checks kept failing even after#6304.Fix
buildAuggieSpawnOptions<S extends readonly string[]>(stdio)so any stdio layout can be routed through it, and addwindowsHide: true.initAuggieModelsandcheckAuggieCliVersionthroughbuildAuggieSpawnOptions(shell enabled on win32).Test
New
tests/unit/auggie-win32-spawn-init-models-and-version.test.ts(Windows-only,skip: !isWin32) uses real.cmdbatch shims and spawns end-to-end:checkAuggieCliVersionruns a.cmdshim → fails withspawn EINVALbefore this fix, passes afterinitAuggieModelsdiscovers models from a.cmdshim → same before/afterVerified: new test 2/2 ✅, existing
auggie-win32-spawn-63043/3 ✅,tsc --pretty false -p tsconfig.typecheck-core.json✅, eslint ✅.