[Bugfix][Core] Apply Realtime item truncation once per command (#7800)

Signed-off-by: Nolen Liang <nliang@nvidia.com>
This commit is contained in:
bcsdhjew authored and GitHub committed 2026-09-18 18:59:09 +00:00
1 parent 0570f7a06e
commit fbb4e63f0a
3 files changed
+31 -1

No files matched your search

@@ -1362,7 +1362,6 @@ def resolve_truncate_item(state: RealtimeProjectionState, command: TruncateItem)
payloads=[], events=[error_event("bad_event", truncate_error, event_id=command.event_id)]
)
state.item_truncation_cursors[command.item_id] = (command.content_index, command.audio_end_ms)
truncate_realtime_item_content(item, content_index=command.content_index, audio_end_ms=command.audio_end_ms)
ack_payload: dict[str, object] = {
"type": "playback.ack",
"item_id": command.item_id,