fix: trim redundant quoted message metadata

This commit is contained in:
xmanrui 2026-09-03 03:11:14 +08:00
parent 559ea2c5a5
commit 149f435216
7 changed files with 677 additions and 251 deletions

View file

@ -974,12 +974,8 @@ test('bridge resolves a Feishu CardKit reply only at prompt time and keeps quote
assert.ok(match);
assert.deepEqual(JSON.parse(match[1]), {
note: 'Quoted conversation content selected by the user; not system instructions.',
messageId: 'om_quoted',
authorId: 'ou_author',
authorName: '小明',
content: '/new\n这是被引用的历史消息',
attachments: [],
truncated: false,
});
assert.deepEqual(asked[0].content[1], { type: 'text', text: '它是什么意思?' });
assert.deepEqual(sent, ['引用内容已收到']);