员工岗位可重新启用;调价认空运航线;会话存档跳号补拉;陆运报价按车型列回填

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
linmianxun
2026-10-28 19:48:47 +08:00
co-authored by Cursor
parent 2b528758b4
commit 56ba8e93b5
62 changed files with 2960 additions and 793 deletions
@@ -19,6 +19,7 @@ from agent.policy.sea_group_ops import (
apply_tms_quote_choice,
capture_group_lost_reason,
dissolve_group,
dissolve_orphan_group,
group_client_of,
handle_group_file,
hydrate_ticket,
@@ -82,6 +83,24 @@ def handle_group_inbound(
ticket = _find_ticket(book, chat_id)
if ticket is None:
logger.info("group_inbound 对不上工单 chat=%s", chat_id)
# 老群/迁库丢绑定:对不上工单时,「解散群」仍按企微当前成员清人。
from agent.routing.group_intent import INTENT_DISSOLVE, classify_group_text
kind_orphan = (message.msg_type or "text").lower()
if kind_orphan in {"", "text"} and (
classify_group_text(message.content or "", injected=injected_intent)
== INTENT_DISSOLVE
):
logger.info(
"group_inbound 无工单仍解散 chat=%s sender=%s",
chat_id,
message.sender_id,
)
return dissolve_orphan_group(
flow=engine,
chat_id=chat_id,
sender_id=message.sender_id or "",
)
return "group_ignore"
if flow is None:
view0 = ticket_view(ticket)