fix(decision_manager): action 不應 strip_placeholders 避免截斷 deployment name
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
_strip_placeholders 移除 <...> 導致 kubectl rollout restart deployment/<name> 變成 kubectl rollout restart deployment/,Telegram 顯示建議指令不完整 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -104,7 +104,9 @@ async def _push_decision_to_telegram(
|
||||
|
||||
target = incident.affected_services[0] if incident.affected_services else "unknown"
|
||||
risk_level = proposal_data.get("risk_level", "medium")
|
||||
action = _strip_placeholders(proposal_data.get("action", proposal_data.get("kubectl_command", "")))
|
||||
# 2026-04-09 Claude Code: action 不用 _strip_placeholders,避免截掉 deployment name
|
||||
# <placeholder> 應在 nemotron 補正後已填入真實值
|
||||
action = proposal_data.get("action", proposal_data.get("kubectl_command", ""))
|
||||
|
||||
# 2026-04-09 Claude Code: 修復舊 Incident proposal_data 存 enum string 導致建議空白
|
||||
# 舊 code 存 action="RESTART_DEPLOYMENT" 而非 kubectl command
|
||||
|
||||
Reference in New Issue
Block a user