fix(coding-agent): expose https-proxy-agent named export (#8723)

- closes #8610
This commit is contained in:
Ramiz Wachtler 2026-08-27 15:51:29 +02:00 • committed by GitHub
parent ccfe79ed23
commit 1defa151e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 1 deletions

View file

@ -16,6 +16,7 @@
- Fixed resumed sessions corrupting the next appended entry when their JSONL file lacks a trailing newline ([#8345](https://github.com/earendil-works/pi/issues/8345)).
- Fixed extension messages sent with `triggerTurn: false` while the agent is running being inserted between a tool call and its result, which made providers that validate message order reject the replayed history. They are now appended once the turn's tool results are in ([#8537](https://github.com/earendil-works/pi/issues/8537)).
- Fixed compaction and branch summaries forcing `toolChoice: "none"` ([#8649](https://github.com/earendil-works/pi/issues/8649), [#8638](https://github.com/earendil-works/pi/issues/8638)).
- Fixed Google Vertex requests failing with `HttpsProxyAgent is not a constructor` when the bundled Node.js runtime uses an HTTP(S) proxy ([#8610](https://github.com/earendil-works/pi/issues/8610)).
## [0.84.3] - 2026-08-24

View file

@ -49,6 +49,30 @@ export function createJiti(...args) {
},
};
const httpsProxyAgentNamedExportPlugin = {
name: "https-proxy-agent-named-export",
setup(build) {
build.onResolve({ filter: /^https-proxy-agent$/ }, (args) => {
if (args.kind !== "dynamic-import") return undefined;
return {
namespace: "https-proxy-agent-named-export",
path: args.path,
};
});
build.onLoad(
{
filter: /^https-proxy-agent$/,
namespace: "https-proxy-agent-named-export",
},
() => ({
contents: 'export { HttpsProxyAgent } from "https-proxy-agent";',
loader: "js",
resolveDir: repoRoot,
}),
);
},
};
function commonBuildOptions() {
return {
absWorkingDir: repoRoot,
@ -67,7 +91,7 @@ function commonBuildOptions() {
// package replaces it with a synchronous lazy require so jiti loads only
// when importing an extension; Babel remains deferred until a cache miss
// needs transformation.
plugins: [lazyJitiPlugin],
plugins: [lazyJitiPlugin, httpsProxyAgentNamedExportPlugin],
sourcemap: false,
target: "node22.19",
// Do not apply the monorepo's source-oriented path aliases while bundling