fix(api): route timeout fallback through AI retry
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user