feat(gateway): add Telegram notification mode to suppress intermediate push notifications

Add a configurable notifications mode for the Telegram platform adapter
that controls which messages trigger push notifications.

- display.platforms.telegram.notifications: "all" (default) | "important"
- HERMES_TELEGRAM_NOTIFICATIONS env var override
- In "important" mode, all sends use disable_notification=True except:
  - Approvals (send_exec_approval) and slash confirmations
  - Final response messages (metadata["notify"]=True)
- Zero overhead in default "all" mode
- Zero impact on non-Telegram platforms

Closes #22771
This commit is contained in:
Denis 2026-05-09 22:36:56 +03:00 committed by Teknium
parent ca13993217
commit 236f3b0521
4 changed files with 69 additions and 3 deletions

View file

@ -130,8 +130,8 @@ class TestBasePlatformTopicSessions:
{
"chat_id": "-1001",
"content": "ack",
"reply_to": "1",
"metadata": {"thread_id": "17585"},
"reply_to": None,
"metadata": {"thread_id": "17585", "notify": True},
}
]
assert typing_calls == [