@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed Bun-compiled release binaries failing to start when Bun's built-in undici shim lacks npm undici's `install` export ([#4657](https://github.com/earendil-works/pi/issues/4657)).
|
||||||
|
|
||||||
## [0.75.1] - 2026-05-18
|
## [0.75.1] - 2026-05-18
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* Test with: npx tsx src/cli-new.ts [args...]
|
* Test with: npx tsx src/cli-new.ts [args...]
|
||||||
*/
|
*/
|
||||||
import { EnvHttpProxyAgent, install as installUndiciGlobals, setGlobalDispatcher } from "undici";
|
import * as undici from "undici";
|
||||||
import { APP_NAME } from "./config.js";
|
import { APP_NAME } from "./config.js";
|
||||||
import { main } from "./main.js";
|
import { main } from "./main.js";
|
||||||
|
|
||||||
@@ -17,11 +17,11 @@ process.emitWarning = (() => {}) as typeof process.emitWarning;
|
|||||||
// (e.g. vLLM buffering a large tool call) exceed that and abort the SSE stream
|
// (e.g. vLLM buffering a large tool call) exceed that and abort the SSE stream
|
||||||
// with UND_ERR_BODY_TIMEOUT. Disable both — provider SDKs enforce their own
|
// with UND_ERR_BODY_TIMEOUT. Disable both — provider SDKs enforce their own
|
||||||
// AbortController-based deadlines via retry.provider.timeoutMs.
|
// AbortController-based deadlines via retry.provider.timeoutMs.
|
||||||
setGlobalDispatcher(new EnvHttpProxyAgent({ bodyTimeout: 0, headersTimeout: 0 }));
|
undici.setGlobalDispatcher(new undici.EnvHttpProxyAgent({ bodyTimeout: 0, headersTimeout: 0 }));
|
||||||
|
|
||||||
// Keep fetch and the dispatcher on the same undici implementation. Node 26.0's
|
// Keep fetch and the dispatcher on the same undici implementation. Node 26.0's
|
||||||
// bundled fetch can otherwise consume compressed responses through npm undici's
|
// bundled fetch can otherwise consume compressed responses through npm undici's
|
||||||
// dispatcher without decompressing them, causing response.json() failures.
|
// dispatcher without decompressing them, causing response.json() failures.
|
||||||
installUndiciGlobals();
|
undici.install?.();
|
||||||
|
|
||||||
main(process.argv.slice(2));
|
main(process.argv.slice(2));
|
||||||
|
|||||||
Reference in New Issue
Block a user