feat(delivery): preserve text format intent

This commit is contained in:
xmanrui 2026-08-24 02:33:19 +08:00
parent 73f262711b
commit dd66f5cbe1
5 changed files with 177 additions and 12 deletions

View file

@ -330,3 +330,17 @@ test('mixed artifacts preserve order and merge existing receipt semantics', asyn
await assertReleased(image);
await assertReleased(file);
});
test('a definitively failed base delivery is not treated as user-visible', async () => {
const delivery = await deliverOutboundArtifacts({
baseReceipt: createDeliveryReceipt({
deliveryId: 'failed-text',
presentation: 'telegram-rich-final',
deliveryOutcome: 'failed',
reason: 'telegram-provider-rejected',
}),
channelKey: 'telegram',
});
assert.equal(delivery.userVisible, false);
});