You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/extensions/telegram
Chinar Amrutkar 3f67581e50
fix: retry safe wrapped Telegram send failures (#51895) (thanks @chinar-amrutkar)
* fix(telegram): traverse error .cause chain in formatErrorMessage and match grammY HttpError

grammY wraps network failures in HttpError with message
'Network request for ... failed!' and the original error in .cause.
formatErrorMessage only checked err.message, so shouldRetry never
fired for the most common transient failure class.

Changes:
- formatErrorMessage now traverses .cause chain, appending nested
  error messages (with cycle protection)
- Added 'Network request' to TELEGRAM_RETRY_RE as belt-and-suspenders
- Added tests for .cause traversal, circular references, and grammY
  HttpError retry behavior

Fixes #51525

* style: fix oxfmt formatting in retry-policy.ts

* fix: add braces to satisfy oxlint requirement

* fix(telegram): keep send retries strict

* test(telegram): cover wrapped retry paths

* fix(telegram): retry rate-limited sends safely

* fix: retry safe wrapped Telegram send failures (#51895) (thanks @chinar-amrutkar)

* fix: preserve wrapped Telegram rate-limit retries (#51895) (thanks @chinar-amrutkar)

---------

Co-authored-by: chinar-amrutkar <chinar-amrutkar@users.noreply.github.com>
Co-authored-by: Ayaan Zaidi <hi@obviy.us>
8 months ago
..
src fix: retry safe wrapped Telegram send failures (#51895) (thanks @chinar-amrutkar) 8 months ago
allow-from.ts perf: split telegram audit runtime seams 8 months ago
api.ts refactor: route more test seams through public plugin APIs 8 months ago
channel-config-api.ts refactor: move channel config metadata into plugin-owned manifests 8 months ago
index.ts refactor: clean extension api boundaries 8 months ago
openclaw.plugin.json chore: Run `pnpm format:fix`. 10 months ago
package.json build: bump version to 2026.4.1 8 months ago
runtime-api.ts refactor: move provider seams behind plugin sdk surfaces 8 months ago
session-key-api.ts Fix: move bootstrap session grammar into plugin-owned session-key surfaces (#58400) 8 months ago
setup-entry.ts refactor: clean extension api boundaries 8 months ago
test-api.ts Extensions: stabilize telegram registry contracts 8 months ago
test-support.ts fix(test): satisfy telegram pairing seam 8 months ago
update-offset-runtime-api.ts refactor: remove remaining core extension reach-ins 8 months ago