Repository navigation
fix: harden household sync, playback, guide, and editor reliability - #51
Merged
Merged
Conversation
Co-authored-by: Cursor <cursoragent@cursor.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.
What this changes
Addresses concurrency, security, correctness, and UX findings from a full repository review:
CyclicLineupStrategylayout cache access across ViewModels and background refreshers; added in-memory caching toSecretStoreunder its mutex.HouseholdReducer.updateChanneland addedvalidateStatefor full remote/Drive state bounds validation; madeCoordinatortoken map and PIN attempt counters thread-safe and movedpairCompleteinsidemutex.withLock; replacedContent-Length-only body checks inCoordinatorRouteswith bounded streaming reads; added a 10-second TLS handshake timeout inTlsFrontDoor.TuneController.runAiringinto a loop and addedlatestChannelcutover checks at program boundaries; disabled HTTP redirects on Media3's OkHttp client to prevent server token leaks and fixed fallback audio track ID matching; honoredmediaIdinplaybackOptionsfor Plex and Jellyfin and preserved inline item ordering inPlexProvider.playablesFrom.TimeSyncSNTP loop when Automatic Time is disabled viacollectLatest; preventedHouseholdService.memberLoopwatcher leaks withtry/finally, validated remote states inapplyRemote, and clearedcoordinatorFingerprinton promotion; validated Drive states and avoided redundant uploads inDriveSync.pullAndMerge; wrappedChannelRepository.reorderRegularsin a database transaction and rejected empty refreshed lineups.HouseholdWriteExceptioninGuideViewModel.toggleFavorite, unified guide rebuilds with a 1-minute holiday ticker, and pruned stale lineup cache entries; updated empty-favorites copy inGuideScreen; scopedStreamOptionsControllervideo/audio choices to the current airing and wiredlatestChannel+ holiday ticker inPlayerViewModel; fixed D-pad focus intoLetterIndex, selected counter, and double library fetches in the Custom channel editor; fixed the release-channel update URL inSettingsViewModel; refresheddocs/architecture.mdandSECURITY.md.How you tested it
./gradlew detektand all 10 pure-JVM test suites locally (:core:common:test,:core:model:test,:core:scheduling:test,:household:protocol:test,:household:coordinator:test,:household:client:test,:playback:core:test,:provider:plex:test,:provider:jellyfin:test,:provider:testing:test), including new unit tests for scheduler concurrency, remote state validation, chunked 413 body limits, and pending cutover boundaries.:app:lintDebug, and:app:assembleDebug.Checklist
main../gradlew detektand pure-JVM tests pass locally; full Android suite running in CI.CHANGELOG.mdupdated if needed.Made with Cursor