fix(gateway): carry _db_persisted stamp in _build_replay_entry to prevent duplicate transcript flushes (#123462)

(cherry picked from commit 7366ba26e91907641527d698a72f0f57de530eba)
This commit is contained in:
webtecnica
2026-09-26 01:25:34 -03:00
committed by kshitij
parent 11c50f05d0
commit 9e62232b07
3 changed files with 43 additions and 1 deletions

View File

@@ -1148,6 +1148,8 @@ def _build_replay_entry(
entry[_rkey] = _rval
if preserve_timestamp and msg.get("timestamp"):
entry["timestamp"] = msg["timestamp"]
if msg.get("_db_persisted"):
entry["_db_persisted"] = True
return entry