feat: add network file caching for SMB/NFS mounts#27
Merged
Conversation
Add optional local caching for audio files on network mounts. When enabled in Settings > Audio, files are copied to a local cache directory before playback. Cache uses LRU eviction with configurable max size (0.5-20 GB, default 2 GB) and can optionally persist across restarts. - NetworkFileCache: disk-based LRU cache with SHA-256 path hashing, extension preservation for Rodio format detection, rebuild-from-disk on startup, and byte-based eviction - Mount detection: macOS (libc::statfs MNT_LOCAL), Linux (/proc/mounts fs type matching), Windows (UNC paths + GetDriveTypeW DRIVE_REMOTE) - Audio pipeline integration: resolve_cached_path intercepts audio_load and audio_load_and_play commands transparently - Exit cleanup: refactor .run() to .build() + .run() with RunEvent::Exit handler that purges non-persistent cache - Settings UI: Audio section with enable toggle, persistent toggle, size slider, cache status card, and purge button - 16 new Rust unit tests, 7 Playwright E2E tests Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Combine network file caching (PR #27) with audio device selection, lyrics support, and other features merged to main since branch diverged. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ttings - Add audio output device selector to settings-audio.html partial (merged from main's inline HTML into the PR's partial template) - Mock window.__TAURI__ in network-cache-settings tests so toggle handlers no longer exit early without Tauri context - Use exact text matching for "Used"/"Files" locators to avoid strict mode violations from ambiguous selectors Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add optional local caching for audio files on network mounts. When enabled in Settings > Audio, files are copied to a local cache directory before playback. Cache uses LRU eviction with configurable max size (0.5-20 GB, default 2 GB) and can optionally persist across restarts.