checkpoint: 提交当前工作区代码(同义词配置初版 + 既有流程改动)
- 新增 inq_synonym 表、62组同义词种子与智能体只读接口 - Python 同义词加载/归一化与 1板/2箱 机读 - 同步当前分支既有协作、报价识别、陆运等改动
This commit is contained in:
@@ -306,7 +306,7 @@ def _allow_archive_retry_if_untrusted(
|
||||
return
|
||||
from agent.redis_coord.group_bot import allow_archive_retry
|
||||
|
||||
allow_archive_retry(chat_id, raw_text)
|
||||
allow_archive_retry(chat_id, raw_text, message.sender_id)
|
||||
logger.info(
|
||||
"dispatch 身份不可信被拒,放行存档补办 chat=%s phase=%s", chat_id, phase
|
||||
)
|
||||
@@ -610,7 +610,7 @@ def dispatch_inbound(message: InboundMessage, decision: RouteDecision) -> str:
|
||||
if raw_text:
|
||||
# 记下这条已由 AIBOT 办过:会话存档会旁听到同一句(空运必现),
|
||||
# 不记就会把同一份摘要/模板发两遍。
|
||||
mark_bot_text_handled(chat_id, raw_text)
|
||||
mark_bot_text_handled(chat_id, raw_text, message.sender_id)
|
||||
# 群里 @BOT 带图片:企微只推 mixed(文字+图片),图片是加密临时 URL,本链路不下载。
|
||||
# 只有图没有字时,handler 会把空正文当文字去要工单号,等于对着图片回话;
|
||||
# 产品口径(2026-11-19):这类整条静默,不入库也不提示。
|
||||
@@ -745,7 +745,7 @@ def dispatch_inbound(message: InboundMessage, decision: RouteDecision) -> str:
|
||||
chat_id,
|
||||
)
|
||||
return "air_group_collab"
|
||||
if not bot_text_handled(chat_id, raw_text):
|
||||
if not bot_text_handled(chat_id, raw_text, message.sender_id):
|
||||
# 普通文字(非 @BOT)=这次指令结束:之后的附件必须重新 @BOT。
|
||||
# 存档回声(AIBOT 刚办过的同一句)不算,否则 @ 完立刻被自己清掉。
|
||||
clear_at_burst(chat_id)
|
||||
@@ -843,7 +843,7 @@ def dispatch_inbound(message: InboundMessage, decision: RouteDecision) -> str:
|
||||
)
|
||||
if missed_at:
|
||||
# AIBOT 已经办过同一句:存档这条是旁听重复,不能再办一遍。
|
||||
if bot_text_handled(chat_id, raw_text):
|
||||
if bot_text_handled(chat_id, raw_text, message.sender_id):
|
||||
logger.info(
|
||||
"dispatch air_group archive_dup_ignore chat=%s wo=%s",
|
||||
chat_id,
|
||||
|
||||
Reference in New Issue
Block a user