feat: 询价流程接入事件异常等待起停

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-21 18:28:35 +08:00
co-authored by Cursor
parent fc1b85113d
commit a878b046d2
11 changed files with 131 additions and 5 deletions
@@ -670,6 +670,10 @@ class SeaTextInquiryFlow(AirTextInquiryFlow):
sess.wait_version += 1
self._save(sess)
self._grey_clicked_card(reply, card_meta)
from agent.policy.event_exception import WAIT_PRODUCT_QUOTE, start_wait
# 系统建群成功:开始盯产品正式报价。
start_wait(self._ledger, work_order_no=no, wait_kind=WAIT_PRODUCT_QUOTE)
reply(
copy.sea_group_created(
work_order_no=no,
@@ -811,6 +815,9 @@ class SeaTextInquiryFlow(AirTextInquiryFlow):
product_ids=product_ids,
)
sess.status = HANDOFF_STATUS
from agent.policy.event_exception import clear_wait
clear_wait(self._ledger, work_order_no=real)
sess.collab_chat_id = chat_id
sess.handoff_committed = True
sess.handoff_offer = ""