fix(webui): serialize manifest reads with atomic replacement

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-03 15:46:53 +08:00
1 parent 432421bceb
commit 9d7cc0204c
2 files changed
+44 -8

No files matched your search

+1 -3
View File
@@ -597,9 +597,7 @@ def _read_segment_manifest_entries(
*,
stats: TranscriptReplayStats | None = None,
) -> list[dict[str, Any]]:
entries = _load_segment_manifest_entries(session_key)
if entries is not None:
return entries
# Windows requires readers to close the manifest before atomic replacement.
with _manifest_rebuild_lock(session_key):
entries = _load_segment_manifest_entries(session_key)
if entries is not None: