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/src
Christian Klotz 99b4f2a24e
fix(telegram): handle Grammy HttpError network failures (#3815) (#7195)
* fix(telegram): handle Grammy HttpError network failures (#3815)

Grammy wraps fetch errors in an .error property (not .cause). Added .error
traversal to collectErrorCandidates in network-errors.ts.

Registered scoped unhandled rejection handler in monitorTelegramProvider
to catch network errors that escape the polling loop (e.g., from setMyCommands
during bot setup). Handler is unregistered when the provider stops.

* fix(telegram): address review feedback for Grammy HttpError handling

- Gate .error traversal on HttpError name to avoid widening search graph
- Use runtime logger instead of console.warn for consistency
- Add isGrammyHttpError check to scope unhandled rejection handler
- Consolidate isNetworkRelatedError into isRecoverableTelegramNetworkError
- Add 'timeout' to recoverable message snippets for full coverage
10 months ago
..
acp chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
agents fix: expand SSRF guard coverage 10 months ago
auto-reply chore: We have a sleep at home. The sleep at home: 10 months ago
browser chore: Enable `typescript/no-explicit-any` rule. 10 months ago
canvas-host chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
channels chore: We have a sleep at home. The sleep at home: 10 months ago
cli fix(update): harden global updates 10 months ago
commands chore: Enable `typescript/no-explicit-any` rule. 10 months ago
compat refactor: rename to openclaw 10 months ago
config chore: We have a sleep at home. The sleep at home: 10 months ago
cron chore: Enable `no-unnecessary-template-expression` lint rule. 10 months ago
daemon chore: Enable `no-unnecessary-template-expression` lint rule. 10 months ago
discord chore: We have a sleep at home. The sleep at home: 10 months ago
docs chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
gateway chore: We have a sleep at home. The sleep at home: 10 months ago
hooks fix: harden plugin and hook install paths 10 months ago
imessage chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
infra fix: expand SSRF guard coverage 10 months ago
line chore: Enable `typescript/no-explicit-any` rule. 10 months ago
link-understanding chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
logging chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
macos chore: Enable "curly" rule to avoid single-statement if confusion/errors. 10 months ago
markdown chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
media fix: expand SSRF guard coverage 10 months ago
media-understanding fix: expand SSRF guard coverage 10 months ago
memory fix: L2-normalize local embedding vectors to fix semantic search (#5332) 10 months ago
node-host chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
pairing chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
plugin-sdk chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
plugins fix: harden plugin and hook install paths 10 months ago
process fix: skip extension append if command already has one 10 months ago
providers chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
routing chore: fix lint, and format after lint to catch reformats triggered by autofixes. 10 months ago
scripts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
security chore: Enable `typescript/no-explicit-any` rule. 10 months ago
sessions chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
shared/text chore: Enable "curly" rule to avoid single-statement if confusion/errors. 10 months ago
signal chore: Enable `typescript/no-explicit-any` rule. 10 months ago
slack fix: expand SSRF guard coverage 10 months ago
telegram fix(telegram): handle Grammy HttpError network failures (#3815) (#7195) 10 months ago
terminal chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
test-helpers refactor: rename to openclaw 10 months ago
test-utils chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
tts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
tui chore: Enable `typescript/no-explicit-any` rule. 10 months ago
types fix: update pi packages to 0.51.0, remove bogus type augmentation 10 months ago
utils chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
web chore: We have a sleep at home. The sleep at home: 10 months ago
whatsapp chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
wizard chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
channel-web.barrel.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
channel-web.ts refactor!: rename chat providers to channels 10 months ago
docker-setup.test.ts refactor: rename to openclaw 10 months ago
entry.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
git-hooks.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
globals.test.ts chore: format to 2-space and bump changelog 1 year ago
globals.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 10 months ago
index.test.ts chore: migrate to oxlint and oxfmt 10 months ago
index.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
logger.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
logger.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 10 months ago
logging.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
polls.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
polls.ts chore: migrate to oxlint and oxfmt 10 months ago
postinstall-patcher.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 10 months ago
runtime.ts perf: speed up memory batch polling 10 months ago
utils.test.ts chore: Enable `typescript/no-explicit-any` rule. 10 months ago
utils.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 10 months ago
version.ts refactor: rename to openclaw 10 months ago