Commit Graph

3 Commits

Author SHA1 Message Date
abhay
9b3828cd50 fix: Telegram reconnect, rebrand compat, and update restore step
- Add "timed out" to NETWORK_ERROR_SNIPPETS in monitor.ts so grammY's
  getUpdates timeout message triggers reconnection instead of exiting
- Add "timed out" to RECOVERABLE_MESSAGE_SNIPPETS in network-errors.ts
  for defense in depth
- Fix LEGACY_CLI_NAME from "moltbot" to "clawdbot" and fix duplicated
  regex alternations in cli-name.ts and command-format.ts so the legacy
  binary name is recognized in PATH
- Remove restore control-ui step from update-runner.ts since
  dist/control-ui/ is no longer git-tracked (commit 615ccf641)
- Remove :!dist/control-ui/ pathspec exclusion from update-check.ts
  dirty check since those files are now gitignored
- Add test for grammY timeout message format

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 12:12:36 +08:00
ryan
558b64f5fa fix: handle Telegram network errors gracefully to prevent gateway crashes
- Expand recoverable error codes (ECONNABORTED, ERR_NETWORK)
- Add message patterns for 'typeerror: fetch failed' and 'undici' errors
- Add isNetworkRelatedError() helper for broad network failure detection
- Retry on all network-related errors instead of crashing gateway
- Remove unnecessary 'void' from fire-and-forget patterns
- Add tests for new error patterns

Fixes #3005
2026-01-27 19:56:24 -06:00
Gustavo Madeira Santana
b861a0bd73 Telegram: harden network retries and config
Co-authored-by: techboss <techboss@users.noreply.github.com>
2026-01-26 19:36:43 -05:00