Skip to content

feat(askui-nodejs): connect to AgentOS directly by default, add agentOsUseProxy opt-in#882

Open
programminx-askui wants to merge 1 commit into
mainfrom
fix-agentos-grpc-proxy
Open

feat(askui-nodejs): connect to AgentOS directly by default, add agentOsUseProxy opt-in#882
programminx-askui wants to merge 1 commit into
mainfrom
fix-agentos-grpc-proxy

Conversation

@programminx-askui

Copy link
Copy Markdown
Contributor

Summary

Connecting to an AgentOS (local or remote) failed behind corporate proxies with Failed to connect to ... through proxy ... with status 302 because grpc-js honors grpc_proxy/https_proxy/http_proxy and tries to CONNECT through them — and HTTP proxies that answer CONNECT with redirects or auth pages cannot tunnel gRPC.

  • The AgentOS gRPC channel now sets grpc.enable_http_proxy: 0 by default, so the connection is always established directly, regardless of proxy environment variables
  • New client arg agentOsUseProxy (default false): set to true to restore proxy routing for setups where the AgentOS is only reachable through a proxy
  • proxyAgents/HTTP inference traffic is unaffected — this only changes the gRPC device connection

Test plan

  • npm run build, npm run lint, npm run test all pass (52 passed, 7 skipped)

🤖 Generated with Claude Code

…OsUseProxy opt-in

grpc-js honors grpc_proxy/https_proxy/http_proxy and tries to CONNECT
through them, which fails behind corporate proxies that answer with
redirects (e.g. 302) or auth pages. The AgentOS gRPC channel now ignores
proxy environment variables by default; set the new client arg
agentOsUseProxy to true to route the connection through the proxy.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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