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

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
@@ -24,6 +24,21 @@ test("group reply never uses stream", () => {
assert.equal(proactive.body.markdown.feedback, undefined);
});
test("dimension asterisks stay visible in group markdown", () => {
const frame = buildGroupMessageFrame({
chatId: "wr_1",
content: "体积(CBM)(必填):1.1*2.1*2.1",
callbackReqId: "",
});
assert.equal(frame.body.markdown.content, "体积(CBM)(必填):`1.1*2.1*2.1`");
const again = buildGroupMessageFrame({
chatId: "wr_1",
content: frame.body.markdown.content,
callbackReqId: "",
});
assert.equal(again.body.markdown.content, "体积(CBM)(必填):`1.1*2.1*2.1`");
});
test("reply req id falls back to last inbound when chat map misses", () => {
assert.equal(pickReplyReqId({ fromCaller: "cb_1", fromChat: "old", lastAny: "any" }), "cb_1");
assert.equal(pickReplyReqId({ fromCaller: "", fromChat: "chat_cb", lastAny: "any" }), "chat_cb");