fix(telegram): 首席架構師 R1 修正 — I-1/I-2/M-1/M-2
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled

I-1: webhooks/sentry_webhook/signoz_webhook 三個呼叫者補 TODO 說明
     無 incident_id 是已知限制(Approval 路徑未建 Incident 關聯)
I-2: TestPushRequest 新增 incident_id 欄位,使 QA 可驗證按鈕渲染
M-1: 移除 _build_inline_keyboard 呼叫中多餘的 `or message.incident_id`
M-2: 補充 900/1000 截斷長度差異說明

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-04-05 13:07:42 +08:00
parent aa9e2c9dd3
commit 665f93e83f
5 changed files with 9 additions and 2 deletions

View File

@@ -443,6 +443,7 @@ async def send_sentry_telegram_alert(
level = error_context.get("level", "error")
# 發送 Sentry 告警卡片 (含 Y/n 按鈕)
# TODO(2026-04-05): Sentry 路徑無 incident_id待 Sentry→Incident 關聯後補傳
await telegram.send_approval_card(
approval_id=approval_id,
risk_level="high" if level in ["fatal", "error"] else "medium",