SendOrQueue.kt is named for its one class, WriteOutcome.kt.
toggleTrackLike becomes an extension on LikesRepository, keeping the
class under the function cap. A long test line is split.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The A1 edit that moved the Most played cover onto TrackCoverThumb
matched the skeleton tile's cover box first and cut from there to the
real tile's body, dropping CompactTrackTile's header. The skeleton keeps
its plain placeholder box; the real tile uses TrackCoverThumb.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Six repositories decided for themselves which failed writes to queue:
playlists queued only on no answer, notifications split 4xx from 5xx,
and likes and hidden tracks queued everything, a refusal included, which
the replayer then sent again only to drop it.
They all go through cache/mutations/sendOrQueue now: no answer, a 5xx,
408 or 429 queue the write; any other 4xx is a refusal and is not
queued (playlists still throw it so the screen can say why; the others
log it). Cancellation passes through. isRetryableStatus is the one test
of a retryable status, and the replayer's isPermanent is its complement.
WriteOutcome moves to cache/mutations and gains Refused.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Users, Reports, Tag sources and the admin landing each declared their
own Loading/Empty/Success/Error sealed interface and the same
try / list / isEmpty / catch-into-ErrorCopy refresh. They use the shared
UiState<T> now (kept as typealiases for their state types), loading
through two new helpers in shared/UiState.kt: loadUiState, which turns a
failure into Error and lets cancellation through, and List.toListState,
which gives Empty for an empty list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Album detail, playlist detail and the player each flipped a track's like
with the same lines (desired = id !in likedTrackIds; toggleLike(TRACK…)).
They call toggleTrackLike(trackId, likedIds) now.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Home's artist tile and the Artist page's Play each fetched the artist's
tracks, shuffled and queued them, with their own copy of the error
handling and different words for an empty artist ("This artist has no
tracks to play." vs "No tracks to play for this artist."). Both call
library/data/LibraryPlayback.kt's shufflePlayArtist now, beside
playAlbumFromStart for Home's album tiles, the way PlaylistPlayback
serves the playlist tiles.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove the file / Remove from library, Delete user, Clear cache and Sign
out each drew their own AlertDialog, coloured four ways: a plain text
button, error-red text, an error-red button and an error-container
button. They now use the shared ConfirmDestructiveDialog, whose confirm
is the destructive action colour. It gains an optional confirmWord, a
word to type before confirming, which Delete user keeps.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Profile card showed its form once loading stopped, whether or not
the load had worked. After a failed load the name and email fields were
empty and Save was enabled, so saving wrote blanks over the real
profile. ListenBrainz had the same shape.
Both cards now go through SettingsLoad: a spinner while loading, one
settings row with Try again when the load failed, and the form only
once the data is in. The view models keep a load failure in loadError,
apart from the form's save message. The web's cards do the same
(SettingsLoadStatus).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three covers loaded art outside the shared ServerImage: the playlist
header and Most played tile used Coil's AsyncImage directly, and the
album header passed ServerImage no fallback. A failed load left a blank
box. They now go through CoverTile / TrackCoverThumb, which show the
placeholder glyph while loading and when the load fails.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The mini player and Now Playing each drew their own play/pause button
with its UPnP loading spinner, and their own Previous/Next. They share
TransportControls.kt now (PlayPauseButton, SkipButton). PlayerUiState
gains hasPrevious/hasNext from Media3's hasPrevious/NextMediaItem, and
both screens disable the skip buttons when there is nowhere to go, as
the web does.
The cover's shared-element hero modifier, also written twice, is one
nowPlayingCoverHero().
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Android played the visible search results as a queue; the web started
radio. Both now start radio seeded from the tapped track: the song plays
first, then songs like it. Android falls back to playing the track alone
when radio can't be had (offline, or an empty answer).
The web's two identical onTrackPlay handlers (search and search/tracks)
become one, radioFromRow. PlayerController gains playRadio, which
replaces the queue; the track menu's startRadio still keeps the current
song playing and queues radio after it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 8-character minimum was written into sign-up, reset, Settings › Account
and Admin › Users as minlength="8" and a message, and each page mapped
password_too_short, username_invalid and username_taken to its own copy of
the same sentence. lib/auth/password.ts now holds the minimum, the hint and
"Passwords do not match.", and the pages take an error code's wording from
the shared error copy (knownCopy), falling back to their own.
username_invalid's shared copy now states the rule (3–32 characters:
letters, numbers, underscores, hyphens), as the pages did, on web and
Android alike. Account's mismatch line reads "Passwords do not match." like
the other forms.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A toggle went live first and queued only on failure, and the replayer
collapses toggles only among queued rows. So a like queued offline, then an
unlike that reached the server live before the queue drained, ended with
the queued like replaying last: the user's last action lost. A refresh also
replaced the local set with the server's, dropping a queued toggle's state
until it replayed.
- When the queue holds a toggle for the same entity, the new one queues
behind it (as NormalizationRepository already does); the replayer then
sends the newest per entity. Quarantine flag and unflag do the same.
- refreshIds and the quarantine refresh keep what is still queued over the
server's answer (MutationQueue.pendingLikeStates /
pendingQuarantineStates).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
signOut cleared the session cookie before calling /api/auth/logout, so the
logout went without the cookie that names the session to drop, and the
server session lived on until it expired. The app still shows signed-out at
once; the logout now goes first with the cookie, bounded to 5 s and run in
the application scope so leaving Settings can't cancel it, and the cookie is
cleared after it, whether it worked or not.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The play reporter keyed a play on the current track id, which repeat-one
and the same song twice in a row never change, so any number of listens
became one play closed at the last loop's position. PlayerController now
counts media-item transitions (Media3 reports a repeat as one) as
PlayerUiState.listenSeq, and the reporter keys a play on (track, listen).
A play_started reply cleared the in-flight flag whichever play it was for.
After a quick skip, song A's late reply cleared the flag song B's start had
set, so skipping B before its reply recorded it offline as well as live.
Each start now carries a token, and only its own play's reply adopts the id
or clears the flag.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A reset ended every session but left the API key and Subsonic password
working, and anyone signed in to the account can make either. So whoever had
the account kept it through a Subsonic app after the owner reset the
password. The forgotten-password reset and an admin's reset now replace the
API key with one nobody holds and clear the Subsonic password.
A self-service change keeps Subsonic apps signed in by default, since it
would sign out the owner's own apps too. The web and Android password forms
gain "Sign out Subsonic apps too", sent as sign_out_subsonic.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The replay loop's per-row choice moves to replayRow, so the loop has no
continue. The playlist detail's top bar and the playlists list's body
move into their own composables. ReorderableRow.kt is named for its row,
not for ReorderHandles, its parameter type.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add to playlist opens with a New playlist row, which makes the list
and adds the song; the sheet lists only the listener's own lists.
- Playlists has a + to make an empty playlist and open it.
- On a playlist the listener owns: rename, make public or private and
delete from the top bar; swipe a song away and long-press its cover to
drag it to a new place. Mixes and other people's lists stay read-only.
- Each change shows at once and goes through the offline queue: a
create carries the phone's own id, a removal names the song expected,
a reorder sends the new order, and one playlist's queued changes go
out in the order they were made.
- The queue's drag-and-swipe row is now shared by the queue and
playlists (ReorderableRemovableRow).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sonos, UPnP and public-address tests used addresses from a real home
network. They now use 198.51.100.x (RFC 5737), keeping the last number.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Queued offline writes, Home, history, the quarantine list, notifications and
the resume queue carry no user id, and nothing cleared them when someone
signed out. The next person to sign in on a shared phone inherited them,
and the queued likes and plays were sent under their session.
The cached data now has an owner (Room v15, auth_session.cacheOwnerUserId).
When a different account signs in, AccountCache clears those tables in one
transaction and empties the player before adopting it. The replayer only
sends queued writes while their owner is signed in. The same person signing
back in, after a sign-out or an expired session, keeps everything. Signing
out from Settings sends what is still queued first, for up to five seconds.
An install updated from before this adopts whoever is signed in, keeping
their data.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Minstrel fetched artist pictures but showed them only to Subsonic apps.
GET /api/artists/{id}/image now serves the picture, or else the artist's
newest album cover, the same image Subsonic apps get. Artist listings
point at it when the artist has a picture and keep the album cover
otherwise; the artist page points at it whenever the artist has albums,
and the web artist page shows it beside the name.
Android shows the picture for cached artists that have one, and the
album cover for the rest.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test data and example comments named real artists, records and songs, and
carried real MusicBrainz ids. One mapping swaps them for invented ones
throughout (Fields of Ontario, Plastic Apes, Marlo Davies, ...), keeping
what each case tests: sort order, index letter, escaping, title keys,
artist-prefix stripping. A test username is no longer the operator's name.
The cover-art and Last.fm connection checks still query real releases;
they reach live services and need something that exists there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The genre mix builder already ranks genres by how much you listen to
them (taste profile, then plays and likes, then library size), but the
rank was lost when the mixes were stored and both apps sorted the shelf
by name. Each playlist now has a shelf_rank (migration 0107), which the
genre builder fills 1..n in that listening order, even where it picked a
narrower genre before a broader one. The list and detail endpoints carry
it, and the web and Android Home sort the genre shelf by it, unranked
playlists after by name. Android's playlist cache gains the column
(Room v14).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Recently added keeps the 144dp album cover. The You might like and
Rediscover album shelves use 120dp covers, and every artist shelf 104dp
circles, following web's 176 / 144 / 128px tile ranking. Album and
artist cards and their skeletons take the size as a parameter; other
screens keep the defaults.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Below 600dp the Playlists shelf's wide cards left one playlist in view.
There the shelf now uses tall cards: the cover on top, and under it the
cover-coloured panel with the name, what the mix is built from and the
play button, sized so two show whole with a glimpse of the third. Wider
screens keep the wide cards; placeholders follow the same switch.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Wi-Fi the app fetches a new build ahead, holding the download turn.
An Update tap during that waited behind it with a bar stuck at zero,
because the fetch reported its progress to nobody. The repository now
publishes the running download's progress, and the bar follows it
whoever started the download.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Playlists show as wide cards washed in their cover's colour, Songs like
as circles labelled with the artist, and genres as colour bands with a
fan of three covers across 80% of the band, leftmost on top. Each tile
on a shelf gets a cover no tile before it shows, and the size and
refresh time the mixes share sit once beside the shelf's title.
The cached playlist row keeps the cover albums and creation time the
playlists list now carries (Room v13, MIGRATION_12_13). Placeholders
take their shelf's shape.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A playback error can no longer be resolved as "requested": the server
refuses it, migration 106 takes it out of the CHECK (no row used it), and
the Reports history and types drop its label. The web and Android error
tables lose the copy for errors only the wanted list, follows, release-type
profiles, downloads and indexers sent, and comments stop naming Discover,
following and the requests page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Admin card is Reports ("Tracks listeners flagged"). Each report
offers Resolve, Remove the file (the file goes and the track waits for a
good copy, with its likes and plays) and Remove from library (track,
file and history). Both removals now ask first; Delete file used to
delete on the tap.
They stay online-only: each deletes a file for good against a live
queue, so a replay hours later could act on a decision another admin
has since made. Offline they fail with the reason and the row returns.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Request notifications (approved, declined, completed, pending) are removed
along with the request flow that produced them. A new_music kind takes the
"new music arrived" slot: when a scan or a watcher batch finishes, the
scanner claims every album not yet announced (albums.announced_at) and tells
every user about the ones that are new: an album with a track on disk and
no track older than itself. The first import into an empty library, and an
album formed only by retagging tracks already held, announce nothing. One
notice per scan, carrying up to 50 albums and the total; it is never
coalesced, so a notice already emailed can't quietly absorb later arrivals.
It feeds the daily summary email, grouped by artist. Defaults: inbox and
email on, phone off.
Migration 0103 deletes request-kind notification rows and prefs, swaps the
kind CHECKs to new_music, and adds albums.announced_at with every album
held marked announced, so the first scan after it announces nothing old.
Web and Android: labels, the Android "Requests" settings section becomes
"New music", the shade channel your_requests becomes new_music (the old one
is deleted at startup), and "/" opens Home in the app. TrackLabel moves to
the notifications package. docs/smart-music-{server,client}-spec.md are
deleted per the operator; an Android comment loses the word "exchanges".
Grimoire #7666, #7671.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The server no longer takes requests or suggests music, so the app's
screens for them go:
- My requests (Settings), Discover (the app bar menu) and Admin >
Requests, with their routes, view models, repositories, API
interfaces and models;
- the auto-approve toggle on Admin > Users;
- the Requests card and its count on the Admin landing.
The offline queue loses its request_create, request_cancel and
suggestion_snooze_toggle kinds. A phone that still holds rows of those
kinds drops them on the next drain, through the replayer's existing
unknown-kind path, so nothing is retried against the removed endpoints.
The toggle-collapse tests that used snoozes now use likes and settings.
Notification links to /requests and /admin/requests open nothing. The
request notification kinds and their settings section stay until the
server decides what replaces them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AuthController refreshes /api/me when the app starts, to pick up account
flags such as debug mode. That ran before the session cookie had loaded
from the Keystore, read the user as signed out, and skipped. It now waits
for the load (bounded by the hydration deadline). The diagnostics
uploader's drain waits the same way, so a launch-time trigger isn't
skipped. BootReceiver already waited.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On a real background dispatcher the store's row collector lands after
construction and reset the base URL to the default, so the request went to
localhost:8080 instead of the mock server. The row now holds the server URL.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
At launch the stored session cookie loads from the Keystore off the main
thread. A request sent before that finished went out without it, typically
the library sync that fires as soon as the server answers. The server then
answered 401, and the interceptor cleared the store on any 401, which also
stopped the load from restoring the cookie and wrote null over the stored
one. The user had to sign in on every launch. A session lost mid-use also
left them on Home with every request failing, because the app only routes
to sign-in when it starts.
- The interceptor waits for the stored cookie to load before attaching it,
bounded by the existing hydration deadline.
- A 401 signs out only when the request carried the current cookie
(compare-and-clear). A request sent without one, or with a cookie a newer
sign-in has replaced, leaves the login alone.
- When the server refuses the session mid-use, the app opens the sign-in
screen. A sign-out from Settings does not trigger this.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new system playlist kind, genre_mix: up to 10 "{Genre} mix" playlists per
user, rebuilt daily with the other system mixes.
Which genres: library genres with at least 25 playable tracks across 3
artists, ranked in tiers — taste-profile genres first (matched
case-insensitively, so ID3 "Post-Punk" and folksonomy "post-punk" are one),
then genres the user has played or liked, then the rest of the library, which
only tops a short shelf up to 4. A genre whose artist set is a near
duplicate of one already picked (Jaccard >= 0.5) is skipped, so "Lo-Fi" and
"Lo-Fi Hip Hop" don't both appear but "Alternative Rock" survives "Rock". A
genre that can't fill 15 tracks gives way to the next.
Each mix is 50 tracks: 3 in 5 the user already knows (played through or
liked), the rest unheard in that genre, interleaved, with the usual
per-album/per-artist caps. Tracks skipped twice and more often than played
are left out. The order changes daily and holds within a day. Picks are
stamped taste / taste_unheard, and genre_mix plays count toward rotation and
the recommendation metrics.
Migration 0102 adds genre_mix to the playlists variant constraints.
Web and Android each get a "Your genres" row in name order, hidden until a
mix exists. Kinds with several playlists per user now play by playlist id
wherever the client used to test seed_artist_id (web card, detail page
self-heal), keyed on the server's refreshable flag; on Android genre_mix
joins songs_like_artist as not refreshable. The web detail page's
"mix was rebuilt" reload now finds a Songs-like or genre mix by name instead
of calling the by-kind shuffle, which those kinds don't have.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings and Notification settings were hand-rolled ElevatedCards, each with
its own padding, title style and row layout, and several rows carried
two- and three-line explanations. They are now built from one vocabulary in
theme/Section.kt: Section (the plate), SettingRow (title, one short line, an
optional icon, the control at the end), SwitchRow and ChoiceRow (the whole
row toggles or opens the choices), RowValue, RowSpinner, RowChevron, Muted.
The plate is Minstrel's own raised surface with its radius tokens, so the
app keeps its look. Sign out, sync and clear cache are rows, not loose
buttons; the theme, leveling, loudness target and storage caps are choice
rows; the About card (also the update sheet on Home) shows the version as a
value and the update as a row with its one button.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ci/version.sh --apk names the APK from android/ alone, and the APK lane
calls it. The app offers an update when the server's APK name differs from
its own, so a name derived from the whole repo offered every phone a rebuild
of the app it already had on each server-only deploy. The image keeps the
union set: it bundles the APK under client/.
Casting (#6456):
- setMediaItems with the tracks already queued (play the queued album from
another track) cleared the cast and waited for a resync that the id-keyed
collector never ran. It is now a move within the queue: Seek TRACK_NR on a
Sonos, start that track on a one-track renderer; the play() goes through.
- A queue replaced through setMediaItems could take the Sonos incremental
diff, which cleared target without restoring active, so the app thought it
was back on the phone while the speaker played on, and the chosen start
track was ignored. The diff now runs only while the route is still active;
a replaced queue reloads in full at its start index.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mirrors Librarian (#6446, #6448), after Gallery's update tray (canon #6367).
- Home shows "Version X of the app is on your server." / "…is downloaded
and ready." with Update / Install; the button opens a bottom sheet
holding the same About card Settings shows, so there is one install
path. Each build is told at most once a day, kept on disk.
- The shell-wide update banner and its in-memory dismissals are gone.
- AppUpdates (singleton) holds the offer and the install, so Home and
Settings show the same state. Checks run when either screen opens, on
every return to the front, every 5 minutes while shown, and on Home's
pull to refresh.
- UpdateFetchWorker downloads the newer APK ahead on an unmetered network
(battery and storage not low, three tries); the download writes a .part
file and keeps it under the build's name only once its size and sha256
match, so Install is usually one tap.
- Back from allowing installs, the update the listener asked for carries
on (kept in SavedStateHandle) instead of asking them to tap again.
- An offer needs a higher code AND a different name: the same app built
again at a later minute is not offered.
- Server: /api/client/version reports the APK's sha256, worked out from
the served file and cached by size and mtime.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The library-duration fallback rides on the poll outcome instead of being its
own member, and the adopt path reads the target's fields by name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Discovery already listed every MediaRenderer on the LAN, but playback only
spoke the Sonos native queue (AddURIToQueue, x-rincon-queue, Seek TRACK_NR,
Next/Previous), which a generic renderer faults on, so picking one fell
straight back to the phone.
A renderer that isn't a Sonos is now fed one track at a time by
SingleTrackLoader: SetAVTransportURI + Play for the current track, and
SetNextAVTransportURI for the one after it so the renderer moves on by
itself without a gap. A renderer without SetNext is advanced by the app
when the poll sees it stop (or report NO_MEDIA_PRESENT) at the end of a
track; a stop partway is still the stall watchdog's.
ActiveUpnp carries the queue mode, picked from the route at select. Skip,
previous and queue taps point a one-track renderer at the cursor's track,
the poll takes the queue position from the loader instead of the
renderer's Track=1, queue changes keep the playing track and re-arm the
next, and adopting a running session matches by track id. Sonos keeps its
native queue unchanged.
DIDL-Lite drops the Rincon metadata for non-Sonos renderers and declares
DLNA.ORG_OP=01 so renderers that need it will seek.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two cap selectors, each with its usage, and a "Keep liked songs
offline" switch replace the single cache limit and its next-launch
caveat; caps apply at once.
Docs that said the liked bucket did not exist are restated, and the
audio-cache index's unused per-source eviction queries are deleted:
eviction follows the liked set, not the index's source column.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
LikedAudioPinner downloads liked tracks' whole audio when "Keep liked
songs offline" is on: most recently liked first, one at a time, only
on an unmetered network while the server is reachable, and only while
the Liked budget has room for another track at CD bitrate, so it never
pushes out liked audio already on the phone. Tracks liked before this
ships are covered by the same pass. Any change (a like, an unlike, the
switch, the network) restarts the pass and cancels a download in flight.
Supporting changes:
- ConnectivityObserver.unmetered: the default network's NOT_METERED bit.
- Liked track ids are read newest first, and refreshIds stamps the
server's newest-first order into likedAt.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SimpleCache ran one LRU evictor at the rolling cap, so liked audio was
dropped like anything else and the offline Liked pool shrank as other
music played. TwoBucketCacheEvictor replaces it:
- a span counts against Liked when its track is liked, else Recently
played; a liked track that is also played is charged to Liked only;
- each budget has its own cap (0 = unlimited) and drops its own
least-recently-used audio first;
- CacheBudgetSync feeds it the signed-in user's liked ids and the Storage
caps, so a like, an unlike or a cap change applies at once;
- nothing is evicted until the liked set is known, so startup never trims
liked audio as Recently played.
The decisions live in a Media3-free BucketLedger with unit tests.
CacheConfig and PlayerModule, which only snapshotted the caps at launch,
are gone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every flagged comment block in the Android app, its tests and its XML/TOML
config, rewritten with the cited issue in view: the constraint is kept, the
story behind it dropped, and issue, milestone, rule, phase and drift ids,
dates and operator quotes removed. "Mirrors the Flutter client's X"
pointers are gone; that client is no longer in the repo.
Comments that no longer matched the code, corrected:
- SyncController: a 410 resets the cursor and re-pulls; it never dropped
the three local caches.
- PlayerFactory, PlayerModule, AudioCacheIndexEntity, CacheConfig,
CacheSource: there is no eviction worker and no liked-track bucket;
SimpleCache evicts by plain LRU over the rolling cap, and the liked cap
is stored but unenforced.
- CacheSettings, StorageCard: the prefetcher exists (AudioPrefetcher);
pin-on-like still does not.
- LibraryApi, LibraryRepository, BrowseViewModel: the cache now carries
the missing-file mark; the browse indexes stay server-backed for one
source of grouping.
- OutputRoute: UPnP routes exist; only CAST and SONOS are reserved.
- PlayerFactory, RemotePlayerState, OutputPickerController: a failed
transport command does not drop the UPnP route.
- LibraryScreen: History, Liked and Hidden are real tabs, not placeholders.
- AVTransportClient: the extend loop lives in SonosQueueLoader.
- "the operator" meaning the listener now says "the user".
Verified with a Kotlin lexer comparing every file's non-comment tokens
against HEAD: 394 files, 0 differences.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Built as a property initializer it ran at class construction, before
MainDispatcherExtension's beforeEach, so viewModelScope.launch in init hit
the missing Main dispatcher. Its uncaught exceptions also failed the next
coroutine test in the JVM (RetryTransientIoTest).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The web panel and the Android Notifications screen now mark every unread
notice they show as read the moment they appear, so the badge clears on a
look instead of a dismissal. Rows that were unread keep looking new until
the inbox closes. The read goes through read-all with a cutoff of the newest
notice shown plus 1 ms, so one that arrived unseen stays unread. 'Mark all
read' is gone; opening the inbox does its job.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>