Repository navigation
Description
Windows electron/smoke.js dies on pass C (Claude adapter + fake stream-json binary). Pass A (simulate) and pass B (generic node -e agent) are green. macOS smoke is green on the same commits. This is the first real signal from the job added in #449 — it has never been green on windows-latest.
Symptom
{"step":"passB","ok":true}
{"step":"passC.threads.create","ok":true,"provider":"claude"}
{"step":"passC.runs.start","ok":true}
{"step":"smoke","ok":false,"error":"passC thread failed: [...,{\"role\":\"event\",\"text\":\"Run error (exit 0)\"}]"}
The thread goes failed ~450ms after runs.start. Transcript is only the user prompt plus that event. No assistant text, no tool card, no sessionId, no usage — the adapter never parsed a result line (gotResult stayed false). runner.js then takes the "exit without result" path and writes Run error (exit ${code}).
Pass D (codex fake) never runs; the script fail-fasts at C.
Evidence
Reproduced on every windows-latest smoke job since the job landed:
| run | branch | smoke macos | smoke windows |
|---|---|---|---|
| 32117186703 | Windows hardening | pass | pass C fail |
| 32121422998 | #473 drag-and-drop | pass | pass C fail |
| 32121797100 | main after #473 | pass | pass C fail |
Same error string and same shape both times I pulled logs. Windows doctor on the smoke project reports wslBoundary ok (repo is on D:\), so this is not the WSL wrap.
Why this is a real dispatch hole, not just a bad fake
Pass B already proves Electron can spawn node on that runner and capture stdout (SMOKE_AGENT_OK). Pass C is the first path that uses claude.js:
cross-spawnof a.cmdwrapper (writeFakeBininelectron/smoke.js)detached: truestdio: ['pipe','pipe','pipe'](interactive / keepAlive)- fake emits NDJSON then
process.exit(0)
macOS uses the same fake JS (shebang file, no .cmd) and passes. The Windows-only miss is "child exited 0, zero parsed events."
Likely causes (in order I would poke)
.cmd+cross-spawn+detached: true. Parent may be waiting oncmd.exe(exit 0, empty pipes) while the node fake is a grandchild whose stdout never arrives. Pass B spawnsnodedirectly and works.process.exit(0)dropping an unflushed pipe buffer on Windows. The fake writes several JSON lines then exits without waiting for drain. Less likely to be the whole story — pass B alsoprocess.exit(0)after onestdout.writeand is captured — but the lastresultline is exactly whatgotResultneeds.- Interactive
sendUser()into a fake that never reads stdin. Unlikely on its own: the fake ignores argv/stdin and still emits on macOS.
Fix bar
npm run test:smokegreen onwindows-latestthrough pass C and pass D (codex uses the same.cmdhelper and is currently untested).- A mutation: if the fake's
resultline is removed, pass C must still fail. If the.cmdwrapper is skipped andCODER_CLAUDE_BINpoints at a missing file, the error must not be a silentexit 0. - Do not "fix" this by skipping pass C on win32. Windows: prove the app boots — electron/smoke.js on windows-latest CI #449 exists specifically so a dead Windows dispatch path cannot go silent.
Follow-up to #442 / #449. Related leftover from #17 is the same event text on a reused CLI; this one is a first turn with a brand-new fake, so it is not the linger-then-exit race.
Activity
currentbits commentedon Aug 18, 2026
Same Windows dispatch hole is also hanging
npm test— see #481. Smoke at least fails in 50s; the unit job has no timeout and sits until Actions kills it.