fix(ai): OAuth login/refresh now respects HTTP proxy env vars

Extracted HTTP proxy setup to shared module and imported it from both
stream.ts and oauth/index.ts. This ensures fetch() calls during OAuth
flows (token exchange, refresh, project discovery) go through the proxy.

fixes #1132
This commit is contained in:
Mario Zechner 2026-02-01 19:08:13 +01:00
parent 73839f876e
commit 469fb5d27c
4 changed files with 18 additions and 9 deletions

View file

@ -5,6 +5,7 @@
### Fixed
- Fixed `cacheRetention` option not being passed through in `buildBaseOptions` ([#1154](https://github.com/badlogic/pi-mono/issues/1154))
- Fixed OAuth login/refresh not using HTTP proxy settings (`HTTP_PROXY`, `HTTPS_PROXY` env vars) ([#1132](https://github.com/badlogic/pi-mono/issues/1132))
## [0.50.9] - 2026-02-01