test(cron): retain native Bot Chat delivery reproduction

This commit is contained in:
teknium1
2026-09-14 15:37:53 -07:00
committed by Teknium
parent 5d8390d1a4
commit 6af84ead60
4 changed files with 175 additions and 0 deletions
+2
View File
@@ -701,6 +701,8 @@ def _deliver_to_bot_chat(job: dict, content: str, profile: str, *, deferred: boo
if pending is None and find_canonical_live_owner(home) is None and find_canonical_owner(home):
pending = defer(key, dict(job), content, profile, home)
if pending is not None:
if pending["content"] != content or pending["home"] != str(home):
raise ValueError("delivery id already belongs to a different payload")
status = pending["status"]
target = f"bot-chat:{profile_label}"
job.setdefault("_bot_chat_delivery_receipts", {})[target] = {