fix(p2-backlog): 修復 suggested_action「待分析」— action 空時 fallback 到 description
Some checks failed
CD Pipeline / build-and-deploy (push) Failing after 1m26s
Some checks failed
CD Pipeline / build-and-deploy (push) Failing after 1m26s
根因:_push_decision_to_telegram() 的 suggested_action 只有兩條路: - action 有值 → 顯示 action[:120] - action 空 → 顯示「待分析」 但 _package_to_proposal_data() 已從 hypothesis 組出 description (含「根因:...(信心 X%);方案:...」),此時 action="" 卻還是顯示「待分析」 導致 SRE 在 Telegram 卡片看不到 AI 的診斷結論。 修復:action 空時,優先用 description[:120] 作為 suggested_action (description 已包含根因摘要,比「待分析」有意義) fallback chain: action → description → "待分析" 2026-04-17 ogt + Claude Sonnet 4.6 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -354,7 +354,7 @@ async def _push_decision_to_telegram(
|
||||
risk_level=risk_level,
|
||||
resource_name=target[:50],
|
||||
root_cause=reasoning[:300] if reasoning else description[:300],
|
||||
suggested_action=action[:120] if action else "待分析",
|
||||
suggested_action=action[:120] if action else (description[:120] if description else "待分析"),
|
||||
estimated_downtime="5-15 min",
|
||||
primary_responsibility="INFRA",
|
||||
confidence=confidence,
|
||||
|
||||
Reference in New Issue
Block a user