fix(telegram): surface callback ingress freshness

This commit is contained in:
ogt
2026-07-16 23:48:06 +08:00
parent 84a3fa17a9
commit 59d03fe277
5 changed files with 128 additions and 8 deletions

View File

@@ -3282,9 +3282,14 @@ def _callback_reply_audit_summary_from_row(
inbound_callback_recent_24h_total = _safe_int(
row.get("inbound_callback_recent_24h_total")
)
if inbound_callback_total > 0:
if inbound_callback_recent_24h_total > 0:
inbound_callback_mirror_status = "capturing"
inbound_callback_next_action = "none"
elif inbound_callback_total > 0:
inbound_callback_mirror_status = "stale"
inbound_callback_next_action = (
"restore_callback_ingress_and_capture_fresh_receipt"
)
elif callback_total > 0:
inbound_callback_mirror_status = "reply_only_gap"
inbound_callback_next_action = "press_any_telegram_callback_after_rollout"