调价后的新价格写入报价单;多段段前的货物带到各段,协同群不再把体积里的星号吃掉。海运字段齐了先核对再查价。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-03 22:39:54 +08:00
co-authored by Cursor
parent 0a14b4cc15
commit 7c77e45e03
32 changed files with 1384 additions and 75 deletions
+12 -1
View File
@@ -257,7 +257,10 @@ class LandDispatchTests(unittest.TestCase):
last = list(self.store._outbox.values())[-1].content
self.assertIn(SYS_EXC_TMS_FALLBACK, last)
def test_sea_still_creates_immediately(self) -> None:
def test_sea_holds_confirm_before_quote(self) -> None:
"""海运私聊字段齐了先出核对卡,回复确定后才查价。"""
from agent.policy import inquiry_copy as copy
msg = InboundMessage(sender_id="s-sea", message_id="m-sea-keep", content="海运询价")
phase = handle_text_inquiry(
msg,
@@ -265,6 +268,14 @@ class LandDispatchTests(unittest.TestCase):
injected_mode="SEA",
store=self.store,
)
self.assertEqual(phase, "wait_confirm")
held = "\n".join(item.content for item in self.store._outbox.values())
self.assertIn(copy.SEA_CONFIRM_TAIL, held)
self.assertNotIn("工单号", held)
phase = handle_text_inquiry(
InboundMessage(sender_id="s-sea", message_id="m-sea-ok", content="确定"),
store=self.store,
)
self.assertEqual(phase, "wait_collab")
def _land_to_quoted(self, sender_id: str) -> None: