summaryrefslogtreecommitdiff
path: root/internal/processor/processor.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-07-22 16:03:13 +0300
committerPaul Buetow <paul@buetow.org>2025-07-22 16:03:13 +0300
commit18a475657cbc7b2ff8ee537b082eeef25e9bf619 (patch)
tree9295ccbd3e6e0f45f2ab361acc5800197de6265f /internal/processor/processor.go
parentdf496b9888ec29bc86d2b5a8ebee1782e94e49f9 (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