feat: hide assistant card names in extraction transcript, split sectioned recentMessages into 2 system messages

This commit is contained in:
Youzini-afk
2026-04-12 13:33:39 +08:00
parent 433e62e084
commit f40b03c306
8 changed files with 232 additions and 46 deletions

View File

@@ -141,8 +141,9 @@ try {
(message) => message.sourceKey === "recentMessages",
);
assert.ok(recentBlock);
assert.match(String(recentBlock?.content || ""), /#10 \[assistant\|艾琳\]: 继续说明/);
assert.match(String(recentBlock?.content || ""), /#10 \[assistant\]: 继续说明/);
assert.match(String(recentBlock?.content || ""), /#11 \[user\|玩家\]: 用户输入/);
assert.doesNotMatch(String(recentBlock?.content || ""), /#10 \[assistant\|艾琳\]:/);
assert.doesNotMatch(String(recentBlock?.content || ""), /隐式思维|<think>/);
} finally {
restore();