fix shuffle track start time shift - #531
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughNative shuffle reloads now store a target index and seek position. Reload creation, synchronization, full-context completion, fixtures, and tests use the structured state. ChangesNative shuffle reload tracking
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to This change makes newly selected shuffle tracks start at their intended position instead of inheriting the previous song's progress, with behavior limited to native Spotify playback. No outstanding correctness or build concerns were found, so it looks ready to merge. 🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Summary
Fix native Spotify shuffle carrying the previous song’s playback position into a newly selected song. Pending shuffle reloads now retain their intended seek position instead of reading potentially stale global playback progress.
Testing
cargo fmt --all -- --checkcargo clippy --locked --no-default-features --features telemetry,tui -- -D warningscargo test --locked --no-default-features --features telemetry,tuicargo clippy --locked -- -D warningscargo test --lockedcargo test --locked native_shuffletools/check_gates_ratchet.sh origin/mainAdditional notes
Only native Spotify playback with client-side shuffle is affected. External Spotify Connect devices and alternative-source players are unchanged.
Summary by CodeRabbit
Bug Fixes
Tests