Skip to content

bb-app env proxy tests time out on Node 26 #8525

Description

@lanjak

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, main at 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.ts uses its own undici agent, and apps/host-daemon/src/websocket-constructor.test.ts already 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

  1. added theissue type on Dec 2, 2026
  2. added
    host
    confirmed-repro
    on Dec 2, 2026
  3. bb-slop-cop commented on Dec 2, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Classification: Bug · Priority: Low · Effort: Low · Area: host

    Verdict: REPRODUCED (high confidence) · confirmed-repro · Reproduction and root-cause report

    The launcher test proxy answers CONNECT but 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.

  4. added a commit that references this issue on Dec 2, 2026
    5566163
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-reprohost

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions