openclaw/src
Ignacio c762bf71f6 fix(telegram): enable autoSelectFamily by default for Node.js 22+
Fixes issue where Telegram fails to send messages when IPv6 is configured
but not functional on the network.

Problem:
- Many networks (especially in Latin America) have IPv6 configured but
  not properly routed by ISP/router
- Node.js tries IPv6 first, gets 'Network is unreachable' error
- With autoSelectFamily=false, Node doesn't fallback to IPv4
- Result: All Telegram API calls fail

Solution:
- Change default from false to true for Node.js 22+
- This enables automatic IPv4 fallback when IPv6 fails
- Config option channels.telegram.network.autoSelectFamily still available
  for users who need to override

Symptoms fixed:
- Health check: Telegram | WARN | failed (unknown) - fetch failed
- Logs: Network request for 'sendMessage' failed
- Bot receives messages but cannot send replies

Tested on:
- macOS 26.2 (Sequoia)
- Node.js v22.15.0
- OpenClaw 2026.2.12
- Network with IPv6 configured but not routed
2026-02-16 23:53:44 +01:00
..
acp perf(test): fold acp event mapper tests into client suite 2026-02-16 02:45:00 +00:00
agents fix(security): set 0o600 on remaining session file write paths 2026-02-16 23:53:28 +01:00
auto-reply fix(security): set 0o600 on remaining session file write paths 2026-02-16 23:53:28 +01:00
browser test: add tests for extraArgs filtering logic 2026-02-16 23:52:42 +01:00
canvas-host chore: remove accidental a2ui bundle artifacts 2026-02-16 02:45:00 +00:00
channels channels: add createAccountListHelpers factory 2026-02-16 23:53:19 +01:00
cli fix: respect OPENCLAW_HOME for isolated gateway instances 2026-02-16 23:52:16 +01:00
commands fix(doctor,configure): skip gateway auth for loopback-only setups 2026-02-16 23:53:11 +01:00
compat
config gateway: wire channel health monitor into startup with configurable interval 2026-02-16 23:53:35 +01:00
cron refactor(test): dedupe cron service test harness setup 2026-02-16 22:30:39 +00:00
daemon fix(daemon): prefer current node and add macOS version manager paths to service PATH 2026-02-16 23:53:41 +01:00
discord channels: migrate core channel account listing to factory 2026-02-16 23:53:19 +01:00
docs
gateway gateway: wire channel health monitor into startup with configurable interval 2026-02-16 23:53:35 +01:00
hooks fix(session-memory): fallback to rotated transcript after /new 2026-02-16 23:49:41 +01:00
imessage channels: migrate core channel account listing to factory 2026-02-16 23:53:19 +01:00
infra fix: support OAuth for Gemini media understanding 2026-02-16 23:53:21 +01:00
line refactor(channels): dedupe transport and gateway test scaffolds 2026-02-16 14:59:31 +00:00
link-understanding
linq feat(linq): add read receipts, typing indicators, and User-Agent header 2026-02-16 23:52:56 +01:00
logging feat: add stuck loop detection and exponential backoff infrastructure for agent polling (#17118) 2026-02-16 15:16:35 -05:00
macos test: tighten relay smoke + slack token validation 2026-02-16 02:45:00 +00:00
markdown test: remove duplicate hr spacing assertion 2026-02-16 06:16:33 +00:00
media fix(media): clean expired files in subdirectories 2026-02-16 23:50:56 +01:00
media-understanding fix: support OAuth for Gemini media understanding 2026-02-16 23:53:21 +01:00
memory feat: LLM-based query expansion for FTS mode 2026-02-16 23:53:21 +01:00
node-host perf(test): fold node-host runner tests into sanitize env suite 2026-02-16 02:45:00 +00:00
pairing refactor(core): dedupe tool policy and IPv4 matcher logic 2026-02-16 16:14:54 +00:00
plugin-sdk channels: add createAccountListHelpers factory 2026-02-16 23:53:19 +01:00
plugins feat: add Linq channel — real iMessage via API, no Mac required 2026-02-16 23:52:56 +01:00
process fix: add windowsHide: true to spawn in runCommandWithTimeout 2026-02-16 23:49:47 +01:00
providers refactor(agent): dedupe harness and command workflows 2026-02-16 14:59:30 +00:00
routing refactor(core): dedupe shared config and runtime helpers 2026-02-16 14:59:30 +00:00
scripts
security refactor(core): dedupe tool policy and IPv4 matcher logic 2026-02-16 16:14:54 +00:00
sessions perf(test): fold session key utils into routing session key suite 2026-02-16 02:45:00 +00:00
shared refactor(core): dedupe shared config and runtime helpers 2026-02-16 14:59:30 +00:00
signal channels: migrate core channel account listing to factory 2026-02-16 23:53:19 +01:00
slack channels: migrate core channel account listing to factory 2026-02-16 23:53:19 +01:00
telegram fix(telegram): enable autoSelectFamily by default for Node.js 22+ 2026-02-16 23:53:44 +01:00
terminal test: strengthen ports, tool policy, and note wrapping 2026-02-16 02:45:00 +00:00
test-helpers refactor(test): simplify state dir env helpers 2026-02-16 00:08:00 +00:00
test-utils refactor(core): dedupe shared config and runtime helpers 2026-02-16 14:59:30 +00:00
tts refactor(channels): dedupe transport and gateway test scaffolds 2026-02-16 14:59:31 +00:00
tui refactor(tests): share harnesses for cli and monitor fixtures 2026-02-16 17:06:40 +00:00
types
utils refactor(utils): share chunkItems helper 2026-02-16 01:52:30 +00:00
web channels: migrate core channel account listing to factory 2026-02-16 23:53:19 +01:00
whatsapp
wizard Onboarding: fix webchat URL loopback and canonical session 2026-02-16 23:52:00 +01:00
channel-web.ts
docker-setup.test.ts
entry.ts
extensionAPI.ts
globals.ts
index.ts
logger.test.ts perf(test): fold console prefix tests into logger suite 2026-02-16 02:45:00 +00:00
logger.ts
logging.ts
polls.test.ts
polls.ts
runtime.ts refactor(core): extract shared runtime and wizard schemas 2026-02-16 17:06:40 +00:00
utils.test.ts perf(test): drop redundant index entrypoint tests 2026-02-16 02:45:00 +00:00
utils.ts
version.test.ts
version.ts