Skip to content

feat(npm): installer honors HTTPS_PROXY via CONNECT tunnel (v1.11.1) - #30

Merged
DeliciousBuding merged 1 commit into
mainfrom
feat/installer-proxy-support
Aug 19, 2026
Merged

DeliciousBuding merged 1 commit into
mainfrom
feat/installer-proxy-support

Conversation

@DeliciousBuding

Copy link
Copy Markdown
Owner

Summary

  • Fixes npm i -g @delicious233/codex-browser-bridge postinstall failures on machines that reach GitHub only through an HTTP proxy (observed: connect ETIMEDOUT 20.205.243.166:443 on a Clash-based setup).
  • install.js now resolves HTTPS_PROXY/https_proxy/ALL_PROXY with NO_PROXY exclusions and tunnels https downloads through the proxy with an HTTP CONNECT handshake before TLS. Direct connections are unchanged when no proxy is configured.
  • Version bump 1.11.1 (Cargo/npm/lockfile per release contract); no Rust behavior changes.

Verification

  • npm --prefix npm test — pass, incl. new proxy unit tests + a local fake-proxy CONNECT-rejection test
  • cargo test --locked — 99 pass; scripts/check-{agent-surface,actions-pinned,release-contract}.js — ok

Test plan

  • CI green
  • Merge → tag v1.11.1 → release workflow
  • npm i -g @delicious233/codex-browser-bridge@latest succeeds on the proxy-only machine (the original repro)

npm postinstall downloads release binaries from GitHub with raw node
https, which ignores proxy environment variables. On machines that can
only reach GitHub through an HTTP proxy (corporate egress, Clash mixed
port), `npm i -g` failed with ETIMEDOUT during postinstall.

- requestBuffer now resolves HTTPS_PROXY/https_proxy/ALL_PROXY with
  NO_PROXY exclusions and tunnels https downloads through the proxy
  with an HTTP CONNECT handshake before starting TLS.
- Pure helpers (proxyForUrl, buildConnectRequest) plus a local fake
  proxy rejecting CONNECT are covered by install.test.js.
- Version bump 1.11.1 (Cargo.toml, npm/package.json, Cargo.lock);
  no Rust behavior changes.

Co-authored-by: Cursor <cursor@vectorcontrol.tech>
@DeliciousBuding
DeliciousBuding merged commit c692fb0 into main Aug 19, 2026
4 checks passed
@DeliciousBuding
DeliciousBuding deleted the feat/installer-proxy-support branch August 19, 2026 09:28
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