mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-10 05:20:45 +08:00
fix: trim redundant quoted message metadata
This commit is contained in:
parent
559ea2c5a5
commit
149f435216
7 changed files with 677 additions and 251 deletions
|
|
@ -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, ['引用内容已收到']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue