From c3fea2622216c23bffc55c81150f03c1c2cb4294 Mon Sep 17 00:00:00 2001 From: OG T Date: Sun, 12 Apr 2026 20:07:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(adr075):=20webhooks=20send=5Fapproval=5Fcar?= =?UTF-8?q?d=20=E8=A3=9C=E5=82=B3=20alert=5Fcategory+notification=5Ftype?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 斷點真正根因:_push_to_telegram_background 呼叫 send_approval_card() 時沒有傳入 alert_category 和 notification_type,導致動態按鈕永遠 fallback 到通用 [批准][拒絕][靜默]。 Co-Authored-By: Claude Sonnet 4.6 --- apps/api/src/api/v1/webhooks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/api/src/api/v1/webhooks.py b/apps/api/src/api/v1/webhooks.py index ea293fe1..06eb8e19 100644 --- a/apps/api/src/api/v1/webhooks.py +++ b/apps/api/src/api/v1/webhooks.py @@ -395,6 +395,9 @@ async def _push_to_telegram_background( ai_cost=ai_cost, ai_provider=ai_provider, incident_id=incident_id, + # ADR-075 斷點 B 修復: 傳入分類以啟用動態按鈕 + alert_category=alert_category, + notification_type=notification_type, ) logger.info(