Skip to content

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

Open
miguel-heygen wants to merge 3 commits into
mainfrom
fix/engine-undici-8
Open

miguel-heygen wants to merge 3 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, 11:19 AM

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

@github-actions

Copy link
Copy Markdown
Contributor

Edit accuracy: accurate 275 (base branch 273), smooth 75 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)

This branch was successfully deployed

1 active deployment
staging - docs — 39ac66a1 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.

1 participant