Skip to content

fix(cli)!: undici 8 and Node 22.19, so downloads survive slow readers and dropped proxy tunnels - #9088

Merged
miguel-heygen merged 4 commits into
mainfrom
fix/engine-undici-8
Nov 29, 2026
Merged

miguel-heygen merged 4 commits into
mainfrom
fix/engine-undici-8

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

Breaking change

The minimum Node.js goes from 22 to 22.19. On an older Node, hyperframes and hyperframes-localize-fonts stop before loading anything else, print HyperFrames requires Node.js >= 22.19 (current: …). Switch Node versions and retry. and exit 1, with node_version_unsupported under --json. npm only warns on engines.

This re-lands #8311 unchanged, which #8391 held back so that a 0.9.x patch would not raise the Node floor. It is not for the merge queue until the release it ships in is chosen.

What changes for people

How

Tests

  • fails without the fix: urlDownloader.slowReader.test.ts "the undici downloads use saves, chunk by chunk, a body that ends when the server hangs up" (main's undici 7.30.1: the process asserts !this.paused and the file fails).
  • On a Linux machine, Node 22: bun install --frozen-lockfile accepts the lockfile unchanged and resolves undici 8.13.0 for the engine. On the engine's undici 7.30.1 (main), the slow-reader test fails with that assertion; here it passes 3 runs in a row.
  • urlDownloader.restrictedNetwork.test.ts 23 of 23 on undici 8.13.0, including the dropped-tunnel case (exactly 2 tunnels) and the HTTP/1.1 case.
  • CLI: runtimeVersion.test.ts 6 of 6, registry/envProxy.process.test.ts 1 of 1, registry/remote.test.ts and registry/transport.test.ts 51 of 51. tsc --noEmit is clean for the engine and the CLI. check-core-skills passes after the rehash.
  • Not run: the full suites (CI runs them), Node 22.19 itself, Windows and macOS.

Order

This branch sits on #9084, so until #9084 merges its diff here includes that one commit.

…tead of retrying nonstop

Re-lands the change that the Node floor hold took out, unchanged: undici 8.13.0 in the CLI and the engine, and Node.js 22.19 as the minimum.
@mintlify

mintlify Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
hyperframes 🟢 Ready View Preview Nov 29, 2026, 4:47 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Edit accuracy: accurate 275 (base branch 273), smooth 54 of those

The gate passes.
Smoothness is reported in the artifact, not gated. A case fails only if it fails 2 of 3 runs.

Newly passing (2)

  • seqscaletwice-scale-px-r0-root-z100
  • seqscaletwice-scale-px-r0-nested-z100

Not banked yet, reported and not gated (bank a full-grid run's baseline.json) (2)

  • seqscaletwice-scale-px-r0-root-z100
  • seqscaletwice-scale-px-r0-nested-z100

Quarantined, measured but not gated (0)

@jrusso1020 jrusso1020 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at dc3a36a. No code blocker. Approval held only for the merge condition this PR states itself.

Why held: the body says this is not for the merge queue until the release it ships in is chosen, and an approval here is what merges it. The v0.9.107 release PR (#9081) is still open, so merging now would put the Node 22.19 floor into a 0.9.x patch, which is what #8391 avoided. Name the release and I approve this head as it stands.

Read: runtimeVersion.ts, envProxyFetch.ts, envProxy.fixture.ts and the new urlDownloader.slowReader.test.ts whole; README.md, bun.lock, the package manifests, check-no-main-deletions.mjs and skills-manifest.json as hunks; the remaining files by byte comparison (below).

Checked against source:

  • "Re-lands #8311 unchanged": for 29 of the 32 files, the changed lines here are byte-identical to reversing #8391 (66156bf). The three that differ are the ones the body names or adds: README.md (badge and requirement line), skills-manifest.json (rehash), and the new slow-reader test. urlDownloader.restrictedNetwork.test.ts is untouched, so main's stricter dropped-tunnel case stays.
  • Node floor is consistent: engines is >=22.19.0 in cli, engine, producer, aws-lambda and gcp-cloud-run, and runtimeVersionError compares major then minor (22.18 refused, 22.19 and 23+ accepted, unparsable refused).
  • bun.lock: undici 8.13.0 for cli and engine; jsdom keeps its own 7.30.1.
  • CI workflows use node-version: 22 or 24 and the pinned images are 22.23.5, all above the floor.

Ran: nothing locally (no node_modules on this box). All checks are green at this head. Not verified by me: the undici 7 failure of the slow-reader test (author-measured), Node 22.19 exactly, Windows and macOS.

fails without the fix: line is present and names the test.

Need: yes · Size: fits (149 added, mostly a re-land) · Reuse: n/a · Simpler: no · Structure: fine
Risk: people on Node 22.0 to 22.18 get a clear stop message after upgrading; that is the stated breaking change and why the release choice matters.

— Rames

@miguel-heygen

Copy link
Copy Markdown
Collaborator Author

Release chosen: this ships in 0.9.108, and that release's notes call out the Node 22.19 floor raise as breaking.

The 0.9.107 release (#9081) merged at 18:28Z, so merging this now cannot put the floor raise into 0.9.107. The head stays dc3a36a, the commit Rames reviewed.

@jrusso1020 jrusso1020 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at dc3a36a, the same head as my earlier comment review; no code change since, so the read there stands (files read whole, nothing run locally).

The one thing I was holding for is now settled: the release this ships in is named in the review thread as 0.9.108, with 0.9.107 already merged. Approving.

Need: yes · Size: fine · Reuse: re-lands the earlier change as it was · Simpler: no · Structure: fine
Risk: raises the Node floor, which is why it waits for 0.9.108 and not a 0.9.107 patch.

— Rames

@miguel-heygen
miguel-heygen added this pull request to the merge queue Nov 29, 2026
Merged via the queue into main with commit 4986ec4 Nov 29, 2026
118 checks passed
@miguel-heygen
miguel-heygen deleted the fix/engine-undici-8 branch November 29, 2026 22:57
This was referenced Nov 30, 2026

This branch was successfully deployed

1 active deployment
staging - docs — dc3a36a2 Deployed Nov 29, 2026 by mintlify[bot]
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.

2 participants