fix(api): route timeout fallback through AI retry
All checks were successful
Code Review / ai-code-review (push) Successful in 13s
CD Pipeline / tests (push) Successful in 1m43s
CD Pipeline / build-and-deploy (push) Successful in 5m2s
CD Pipeline / post-deploy-checks (push) Successful in 1m40s

This commit is contained in:
Your Name
2026-06-26 19:00:32 +08:00
parent 05d217f95e
commit e2d374d2f7
2 changed files with 1 additions and 3 deletions

View File

@@ -3087,8 +3087,6 @@ class TelegramMessage:
return "repair_candidate_missing_manual_handoff"
return "ai_controlled_action_pending"
if "超時" in text or "timeout" in text:
if "人工" in text or self.suggested_action in {"待分析", "", "NO_ACTION"}:
return "llm_timeout_manual_gate"
return "llm_timeout_ai_route_retry"
if self.confidence > 0 and self.suggested_action and self.suggested_action != "待分析":
return "ai_proposal_ready"

View File

@@ -19,7 +19,7 @@ def test_action_required_card_exposes_ai_automation_on_fallback() -> None:
assert "AI 自動化鏈路" in body
assert "rule_fallback" in body
assert "llm_timeout_manual_gate" in body
assert "llm_timeout_ai_route_retry" in body
assert "OpenClaw" in body
assert "NemoTron" in body
assert "Hermes" in body