diff --git a/apps/api/src/services/telegram_gateway.py b/apps/api/src/services/telegram_gateway.py index 3de4454b..6ca73507 100644 --- a/apps/api/src/services/telegram_gateway.py +++ b/apps/api/src/services/telegram_gateway.py @@ -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" diff --git a/apps/api/tests/test_telegram_ai_automation_block.py b/apps/api/tests/test_telegram_ai_automation_block.py index 60e42026..76f1903c 100644 --- a/apps/api/tests/test_telegram_ai_automation_block.py +++ b/apps/api/tests/test_telegram_ai_automation_block.py @@ -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