feat: show notification source (agent vs SAC) in alerts and reports

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-31 11:51:53 +10:00
parent a45b641b8c
commit 3d4d1f3c76
6 changed files with 246 additions and 37 deletions
+3 -1
View File
@@ -247,7 +247,9 @@ def test_daily_report_telegram_html_uses_report_html(db_session):
details={"report_html": "<b>📊 OK</b><br>line"},
payload={},
)
assert format_event_telegram_html(event) == "<b>📊 OK</b>\nline"
assert format_event_telegram_html(event) == (
"<b>📊 OK</b>\nline\n📡 Оповещение: агент (ssh-monitor)"
)
def test_sanitize_telegram_html_strips_div_and_br():