Repository navigation
fix(patchy): the dev daemon on Node 24 runs with --no-wasm-code-gc - #704
Merged
Merged
Conversation
Node 24's V8 can free a Wasm import wrapper twice (nodejs/node#66366), and the `patchy dev` daemon runs PGlite for the whole session, so it can abort mid-session. The daemon now starts with --no-wasm-code-gc when the CLI runs on Node 24; every other Node version spawns it with exactly the arguments it got before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
allisonmahmood
force-pushed
the
fix/606-node24-wasm-code-gc
branch
from
October 15, 2026 22:12
d58ffb0 to
969ee00
Compare
allisonmahmood
added a commit
that referenced
this pull request
Oct 16, 2026
…u when they fail (#720) Release 13's What's new entry, written from `c9b8fc4`, ahead of deploying it. `patchy` and `CURRENT_RELEASE` move to `0.13.0`, so CLIs and patch repos installed before this deploy are told to upgrade. | Change | PRs | | --- | --- | | New: Home puts the patches you use first | #713, #716, #719 | | New: Every patch in one list | #715 | | Improved: Each patch's page leads with Open | #717 | | New: See when your tools are failing | #718 | | Fixed: Everyone has a name | #687 | | Improved: Your company's look is easier to get right | #697, #696, #703, #688 | | Improved: Forms follow your look's error states | #691, #692 | | Improved: Clearer answers when a publish goes wrong | #686, #685, #689 | | Fixed: Your agent's Patchy commands are steadier | #695, #704, #680, #681 | | Behind the scenes: stricter checks on static pages and tools' database requests; malformed requests are logged | #682, #693, #683 | | Behind the scenes: usage numbers count every publish, sharing change and restore | #698, #699, #700, #690 | | Test and tooling only, no line | #705, #702, #701, #694, #684, #607 | Made by Claude Opus 5.5 in Claude Code, running in T3 Code. Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
On Node 24, a
patchy devsession can abort mid-session on an upstream V8 bug that frees a Wasm import wrapper twice (nodejs/node#66366, the bug behind #499). The dev daemon runs PGlite for the whole session, so it is exposed for as long as the session lives. Thepatchypackage accepts Node 24, and agents often install it.The CLI now starts the daemon with
--no-wasm-code-gcwhen it runs on Node 24, decided by major version. Every other Node version spawns the daemon with exactly the arguments it got before. The flag goes on the daemon's own arguments because V8 flags are process-wide. A comment beside it names nodejs/node#66366 and nodejs/node#66376, and says the flag can go onceenginesno longer accepts a Node 24 without the backport. A focused test covers the argument choice for Node 22, 24 and 26 without spawning a daemon. The change stays inside the spawn, clear of the dev command's output.Closes #606
Tested by hand
On a
pnpm dev upenvironment with a tier 2 patch,patchy dev --jsonran through the environment's packed CLI (0.12.0 from this branch), then I read the daemon's/proc/<pid>/cmdline:node --no-wasm-code-gc …/patchy/dist/devChild.js <stateDir> <nonce>node …/patchy/dist/devChild.js <stateDir> <nonce>node --import …/tsx/dist/loader.mjs --conditions=development --no-wasm-code-gc …/src/devChild.ts <stateDir> <nonce>The source run shows the CLI's own
execArgvcarries through unchanged, with the flag appended.devLifecycle.test.tspasses on Node 24, including the real daemon lifecycle cases.pnpm verifypassed every stage on this commit: format, lint, typecheck, synth, test, postgres-concurrency, cli-smoke, tier2-smoke and browser.Surfaces walked: no wire, CLI command, flag, exit code or output changes, so
packages/patchy/README.md, ADR-0004 and the global skill stay accurate. No dev-runner, vocabulary, migration, company-resource, served-page or layout changes either.Not breaking: only the arguments of the local dev daemon on Node 24 change.
Made by Claude Opus 5.5 in Claude Code, running in T3 Code.