feat: add structured message failure reporting

This commit is contained in:
xmanrui 2026-08-25 13:42:43 +08:00
parent b42fc411c2
commit ad3c08ace3
59 changed files with 2405 additions and 607 deletions

View file

@ -792,6 +792,11 @@ test('AI Card creation closes a delivered card with an independent signal after
assert.equal(bodies.some((body) => body.isError === true), true);
assert.equal(bodies.some((body) => body.cardData?.cardParamMap?.flowStatus === '5'), true);
assert.equal(bodies.some((body) => (
body.isError === true
&& body.content === '卡片已结束,请查看后续消息。'
)), true);
assert.equal(JSON.stringify(bodies).includes('消息处理失败,请稍后重试。'), false);
});
test('text splitting prefers line boundaries and never produces oversized chunks', () => {