openclaw - ✅(Solved) Fix [Bug]: Telegram channel in v2026.4.26 ignores HTTP_PROXY env vars [1 pull requests, 2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#74014Fetched 2026-04-30 06:29:53
View on GitHub
Comments
2
Participants
3
Timeline
14
Reactions
0
Timeline (top)
mentioned ×4subscribed ×4commented ×2cross-referenced ×2

Title: [Bug] Telegram channel in v2026.4.26 ignores HTTP_PROXY/HTTPS_PROXY env vars

Description: After upgrading from v2026.4.22 to v2026.4.26, Telegram channel fails to connect in environments requiring HTTP proxy (e.g., mainland China).

Root cause: v2026.4.26 appears to use undici for Telegram API calls, which does not respect HTTP_PROXY/HTTPS_PROXY/ALL_PROXY environment variables by default.

Environment: Node 22,

Root Cause

Root cause: v2026.4.26 appears to use undici for Telegram API calls, which does not respect HTTP_PROXY/HTTPS_PROXY/ALL_PROXY environment variables by default.

Fix Action

Fix / Workaround

Repro:

  1. Set HTTP_PROXY=http://127.0.0.1:7897 in gateway environment
  2. Upgrade to v2026.4.26
  3. Telegram channel shows ETIMEDOUT, EHOSTUNREACH, UND_ERR_CONNECT_TIMEOUT
  4. Downgrade to v2026.4.22 → works fine

PR fix notes

PR #74151: fix(telegram): honor ALL_PROXY and OPENCLAW_PROXY_URL in transport

Description (problem / solution / changelog)

Root Cause

Telegram's undici-based transport (introduced ~v2026.4.24) creates its own EnvHttpProxyAgent dispatcher, but the env-proxy gate hasEnvHttpProxyConfigured('https') only checks HTTP_PROXY/HTTPS_PROXY — it ignores ALL_PROXY/all_proxy. Additionally, in installed-service environments (e.g. macOS launchd), the service env policy strips ambient proxy vars and only persists OPENCLAW_PROXY_URL, which Telegram's transport never consulted.

This caused proxy-dependent environments (e.g. mainland China) to get ETIMEDOUT/EHOSTUNREACH/UND_ERR_CONNECT_TIMEOUT errors after upgrading from v2026.4.22 to v2026.4.26.

Changes

extensions/telegram/src/fetch.ts

  • Switch env-proxy detection from hasEnvHttpProxyConfigured('https')hasEnvHttpProxyAgentConfigured() which also considers ALL_PROXY/all_proxy
  • Pass resolveEnvHttpProxyAgentOptions() to EnvHttpProxyAgent constructor so undici receives explicit httpProxy/httpsProxy values derived from ALL_PROXY (undici's EnvHttpProxyAgent does not natively read ALL_PROXY)
  • Fall back to OPENCLAW_PROXY_URL env var as an explicit proxy when no standard proxy env vars are available — covers installed-service environments

src/plugin-sdk/fetch-runtime.ts

  • Export hasEnvHttpProxyAgentConfigured and resolveEnvHttpProxyAgentOptions from the plugin SDK so extensions can use the ALL_PROXY-aware helpers

Related

  • Fixes #74014
  • #74086 (Windows variant of same root cause) may also benefit from this fix

Changed files

  • extensions/telegram/src/fetch.ts (modified, +15/-4)
  • src/agents/tool-allowlist-guard.test.ts (modified, +2/-3)
  • src/agents/tool-allowlist-guard.ts (modified, +6/-6)
  • src/plugin-sdk/fetch-runtime.ts (modified, +2/-0)
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Title: [Bug] Telegram channel in v2026.4.26 ignores HTTP_PROXY/HTTPS_PROXY env vars

Description: After upgrading from v2026.4.22 to v2026.4.26, Telegram channel fails to connect in environments requiring HTTP proxy (e.g., mainland China).

Root cause: v2026.4.26 appears to use undici for Telegram API calls, which does not respect HTTP_PROXY/HTTPS_PROXY/ALL_PROXY environment variables by default.

Environment: Node 22,

Steps to reproduce

Repro:

  1. Set HTTP_PROXY=http://127.0.0.1:7897 in gateway environment
  2. Upgrade to v2026.4.26
  3. Telegram channel shows ETIMEDOUT, EHOSTUNREACH, UND_ERR_CONNECT_TIMEOUT
  4. Downgrade to v2026.4.22 → works fine

Expected behavior

Expected: Telegram channel should respect proxy env vars or provide explicit proxy config

Actual behavior

Actual: Connection fails, health-monitor keeps restarting

OpenClaw version

OpenClaw 2026.4.26

Operating system

macOS 15.4

Install method

No response

Model

deepseek V4 pro

Provider / routing chain

openclaw -> deepseek V4 pro

Additional provider/model setup details

No response

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

extent analysis

TL;DR

The Telegram channel in v2026.4.26 can be fixed by configuring undici to respect HTTP_PROXY/HTTPS_PROXY environment variables.

Guidance

  • Verify that the HTTP_PROXY and HTTPS_PROXY environment variables are set correctly in the gateway environment.
  • Check the undici documentation for options to enable proxy support, such as using the proxy option when creating the client.
  • Consider downgrading to v2026.4.22 as a temporary workaround until a fix is available.
  • Investigate if there are any other environment variables or configuration options that need to be set to enable proxy support for undici.

Example

No code example is provided as the issue does not contain enough information about the specific undici configuration.

Notes

The fix may require changes to the undici configuration or the environment variables set in the gateway environment. The issue may not be specific to the Telegram channel, but rather a general issue with undici and proxy support.

Recommendation

Apply workaround: Downgrade to v2026.4.22 until a fix is available, as it is a known working version.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Expected: Telegram channel should respect proxy env vars or provide explicit proxy config

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - ✅(Solved) Fix [Bug]: Telegram channel in v2026.4.26 ignores HTTP_PROXY env vars [1 pull requests, 2 comments, 3 participants]