fix: finalize recordings before automatic replay

This commit is contained in:
somew1nd committed 2026-08-23 13:06:19 -07:00
1 parent 474e56ef8e
commit a62ac4aef1
25 files changed
+820 -92

No files matched your search

+3
View File
@@ -191,16 +191,19 @@ def test_video_recording_persistence(tmp_path):
assert persisted.start_time == 100.0
assert persisted.end_time is None
assert persisted.local_video_path == "/tmp/recording.mp4"
assert persisted.status == "recording"
# Test update
record.end_time = 150.0
record.local_video_path = "/tmp/recording_final.mp4"
record.status = "ready"
storage.update_video_recording(record)
updated = storage.get_video_recording(video_id)
assert updated is not None
assert updated.end_time == 150.0
assert updated.local_video_path == "/tmp/recording_final.mp4"
assert updated.status == "ready"
def test_record_step_suppresses_identical_post_screenshot(tmp_path):