Stop littering source folders with generated .mlt files #12
Loading…
Reference in a new issue
No description provided.
Delete branch "b/temp-mlt-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Shuffle/generate output now goes to an app temp folder (media paths are absolutized first, so it no longer needs to live beside the source project) and is deleted once its render job completes, dead-letters, is cancelled or cleared, with a startup sweep for crash leftovers. Also guards Entry.Duration against entries missing in/out attributes.
🤖 Claude AI Code Review
Summary
Moves generated
.mltoutput to an app temp folder with lifecycle-based cleanup and a startup sweep, and guardsEntry.Durationagainst missing in/out attributes.Code Quality ⭐⭐⭐⭐☆
Clean refactor with well-scoped cleanup helper that safely restricts deletions to the app's own temp subfolder.
Issues
🟢 RenderQueueService.cs — the startup sweep uses a fixed 3-day cutoff. A dead-lettered job whose file is older than 3 days but still retryable (per the DeadLetter comment) could have its source swept away, making manual retry fail. Low likelihood but the two mechanisms aren't fully reconciled.
Solid change; the dead-letter/sweep interaction is a minor edge case, not a blocker.
📊 Tokens: 6890 input + 306 output | 💰 Cost: ~$0.0421
Generated by Claude Opus 4.8 via Gitea Actions