b1a8186fcdf3d2f939d3b3f52b3f0785818f5a2d
This commit introduces a recovery mechanism to regenerate `oneliner.txt` files for cases where transcription was successful but the oneliner generation failed due to a crash between writing the transcript and the oneliner. The `transcribe::recovery::regenerate_missing_oneliners` function is added and called at startup after `scan_and_enqueue`. This function identifies cases with non-empty transcripts but missing oneliners and triggers their regeneration. The `transcribe::worker::update_oneliner` function is refactored to always regenerate the oneliner from all available transcripts in a case, ensuring that later recordings can correct earlier ones. This replaces the previous `ensure_oneliner` logic which only generated the oneliner if it didn't exist. New helper functions `cases_needing_oneliner` and `all_transcripts_joined` are introduced to support these changes. Comprehensive unit tests are included for the new recovery and file processing logic.
Description
No description provided
Languages
Rust
74%
Kotlin
12.7%
HTML
4.9%
Python
4.1%
Shell
3.8%
Other
0.5%