Repository navigation
Description
Summary
Both "managed process networking ... uses the environment proxy and keeps loopback direct" tests in packages/bb-app/test/index.test.ts time out on Node 26. They pass on Node 22 and 24. The test's fake proxy handles only CONNECT, and Node 26 sends a plain http:// request to an environment proxy as a forwarded request. bb itself is not affected.
Versions and environment
- bb from source,
mainat 4d7a9af. - Linux. Node 26.13.1 fails. Node 22.23.5 and 24.23.0 pass (official nodejs.org builds, SHASUMS256 verified).
Steps to reproduce
cd packages/bb-app
node ../../node_modules/vitest/vitest.mjs run test/index.test.ts -t "environment proxy"Expected vs actual
Expected (Node 22.23.5 and 24.23.0):
Tests 2 passed | 71 skipped (73)
Actual (Node 26.13.1):
FAIL test/index.test.ts > managed process networking > server uses the environment proxy and keeps loopback direct
FAIL test/index.test.ts > managed process networking > daemon uses the environment proxy and keeps loopback direct
Error: Test timed out in 5000ms.
Tests 2 failed | 71 skipped (73)
Evidence
A child node --use-env-proxy with HTTP_PROXY pointing at a logging proxy runs fetch("http://bb-proxy-test.invalid/"). The proxy receives:
| Node | request at the proxy |
|---|---|
| 22.23.5 | CONNECT bb-proxy-test.invalid:80 |
| 24.23.0 | CONNECT bb-proxy-test.invalid:80 |
| 26.13.1 | GET http://bb-proxy-test.invalid/ |
The fake proxy in the test is createServer() with only a connect handler: index.test.ts#L2372-L2387. On Node 26 the forwarded request gets no answer, and the child's fetch and the test time out.
What you ruled out
- Not a bb defect. bb only adds
--use-env-proxy, and real proxies accept forwarded requests (RFC 9112 absolute-form). - Not the other fake proxies in the repo.
apps/cli/src/__tests__/plugin-cli-env-proxy.test.tsuses its own undici agent, andapps/host-daemon/src/websocket-constructor.test.tsalready answers forwarded requests. Both pass on Node 26.13.1. - CI does not show it, because CI tests only Node 22.
Suggested priority and effort
Low priority, small effort. It affects contributors who run the tests on Node 26, which engines (>=22.19.0) allows.
AGENT GENERATED
Activity
bb-slop-cop commentedon Dec 2, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotClassification: Bug · Priority: Low · Effort: Low · Area:
hostVerdict: REPRODUCED (high confidence) ·
confirmed-repro· Reproduction and root-cause reportThe launcher test proxy answers
CONNECTbut leaves Node 26’s forwarded HTTP request unanswered. Both focused networking tests timed out on Node 26 in two clean checkouts; they passed on Node 22 and 24. The report includes the standalone probe and exact test command.No duplicate fix PR was opened because #8526 already addresses the issue.
Let the env proxy test's fake proxy answer forwarded requests (get-bb…