Skip to content

fix: respect http_proxy env vars in CLI API client#695

Merged
jahooma merged 1 commit into
CodebuffAI:mainfrom
shabeer:fix/http-proxy-env-vars
May 18, 2026
Merged

fix: respect http_proxy env vars in CLI API client#695
jahooma merged 1 commit into
CodebuffAI:mainfrom
shabeer:fix/http-proxy-env-vars

Conversation

@shabeer
Copy link
Copy Markdown
Contributor

@shabeer shabeer commented May 16, 2026

Bun's native fetch does not automatically honour HTTPS_PROXY / http_proxy environment variables unlike Node's http/https modules. Read proxy settings from standard env vars and pass them via Bun's fetch option so corporate proxy users can route CLI traffic.

Bun's native fetch does not automatically honour HTTPS_PROXY /
http_proxy environment variables unlike Node's http/https modules.
Read proxy settings from standard env vars and pass them via Bun's
fetch  option so corporate proxy users can route CLI traffic.
@shabeer
Copy link
Copy Markdown
Contributor Author

shabeer commented May 16, 2026

This possibly fixes the issue in #694

@shabeer
Copy link
Copy Markdown
Contributor Author

shabeer commented May 17, 2026

@jahooma @brandonkachen @charleslien - Any updates on the code review?

@jahooma
Copy link
Copy Markdown
Contributor

jahooma commented May 18, 2026

This might work for some api requests, but a lot are made through the sdk/agent-runtime packages.

I'll merge this for now, but the whole proxy thing needs to be through through. We might just want to delete it if is tricky to make it actually work.

@jahooma jahooma merged commit c6b02eb into CodebuffAI:main May 18, 2026
4 of 7 checks passed
@shabeer
Copy link
Copy Markdown
Contributor Author

shabeer commented May 19, 2026

Thanks @jahooma for merging the PR

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.

2 participants