diff options
| author | Paul Buetow <paul@buetow.org> | 2025-07-22 16:03:13 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-07-22 16:03:13 +0300 |
| commit | 18a475657cbc7b2ff8ee537b082eeef25e9bf619 (patch) | |
| tree | 9295ccbd3e6e0f45f2ab361acc5800197de6265f /internal/processor/processor.go | |
| parent | df496b9888ec29bc86d2b5a8ebee1782e94e49f9 (diff) | |
Fix race conditions in background processing and prevent deletion of active cards
- Fix race condition where images, audio, and phonetic info could be saved to wrong flashcard when navigating quickly between cards
- Add pre-determined card directory that's passed to all background operations
- Track active operations per word to prevent deletion during generation
- Block deletion of cards that are queued or being processed
- Show appropriate error messages when deletion is blocked
This ensures files are always saved to the correct card directory and prevents data loss from deleting cards with active operations.
🤖 Generated with [opencode](https://opencode.ai)
Co-Authored-By: opencode <noreply@opencode.ai>
Diffstat (limited to 'internal/processor/processor.go')
0 files changed, 0 insertions, 0 deletions
