Commit Graph
100 Commits
Author SHA1 Message Date
bvandeusenandClaude Opus 5.5 b6454270b5 Revert the deliberate break (#8298, #8330)
release / web (push) Successful in 1m36s
release / go (push) Successful in 1m59s
release / Build signed APK (push) Successful in 5m4s
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 2m47s
release / android (push) Successful in 4m42s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 22s
release / Verify release artifacts (tag releases only) (push) Skipped
Run 11291 failed all three named tests. The api package ran its whole suite
past the weakened cost and the lane went on to coverart, which also failed
TestEnrichArtist_APictureFoundIsInTheSyncLog on the fanart-path break.

This reverts commit 359101c451.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 14:29:14 -05:00
bvandeusenandClaude Opus 5.5 359101c451 test: DELIBERATE BREAK, expected red, reverted next (#8298, #8330)
release / go (push) Failing after 2m4s
release / integration (push) Failing after 3m2s
release / web (push) Successful in 1m49s
release / govulncheck (push) Successful in 22s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 53s
release / android (push) Canceled after 1m43s
The three tests run 11288 could not reach:
- artist enricher: "none" under older providers is not asked again
  -> TestEnrichArtist_WhichArtistsAreAsked
- artist enricher: a fanart path recorded with no fanart
  -> TestEnrichArtist_OnePictureOfTwo
- api: passwordCost default below bcrypt.DefaultCost
  -> TestPasswordCost_StoredPasswordsUseAtLeastBcryptsDefault

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 14:24:28 -05:00
bvandeusenandClaude Opus 5.5 201ad741ea Revert the deliberate break; the password-cost check is an ordinary test (#8298, #8330)
release / web (push) Successful in 1m33s
release / go (push) Successful in 1m57s
release / govulncheck (push) Successful in 21s
release / integration (push) Successful in 2m53s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / android (push) Canceled after 3m32s
release / Build signed APK (push) Canceled after 3m3s
Run 11288 failed every named test it reached. The api TestMain's cost
check exited the test binary, and the integration lane runs each package's
binary once with no tests to warm the build, so it stopped the lane there
before coverart's database tests ran. The check is now a test of its own:
a weakened cost fails one test and the rest of the lane still runs.

This reverts commit e717e4370d.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 14:19:14 -05:00
bvandeusenandClaude Opus 5.5 e717e4370d test: DELIBERATE BREAK, expected red, reverted next (#8298, #8330, #8331)
release / integration (push) Failing after 58s
release / govulncheck (push) Successful in 19s
release / go (push) Failing after 2m0s
release / web (push) Successful in 1m35s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 3m28s
release / android (push) Canceled after 4m28s
- lastfm: no key answers transient, not not-found
  -> TestLastfm_AnswersNotFoundWithoutAsking
- deezer: off by default -> TestProviders_IdentityAndDefaults
- artist enricher: "none" under older providers is not asked again
  -> TestEnrichArtist_WhichArtistsAreAsked
- artist enricher: a fanart path recorded with no fanart
  -> TestEnrichArtist_OnePictureOfTwo
- getUser: an admin asking about another gets themself
  -> TestHandleGetUser
- decodePassword: enc: not decoded -> TestDecodePassword
- router: unknown /rest/ paths get the web app
  -> TestRouter_TheWebAppAndTheAPIsKeepTheirOwnPaths
- genretag: commas no longer split -> TestSplit
- api: passwordCost default below bcrypt.DefaultCost -> api's TestMain

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 14:14:00 -05:00
bvandeusenandClaude Opus 5.5 6ef96be290 api tests hash passwords at bcrypt's lowest cost; one genre splitter (#8330, #8331)
release / web (push) Successful in 1m30s
release / go (push) Successful in 1m55s
release / android (push) Successful in 4m31s
release / Build signed APK (push) Successful in 5m0s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 2m43s
release / Build + push container image (push) Successful in 13s
release / Verify release artifacts (tag releases only) (push) Skipped
#8330: every password the api handlers store goes through hashPassword at
bcrypt.DefaultCost, most of a second per hash under -race, so the password
tests took about 1.4s each, roughly 15s of the package. The cost is now a
package variable the tests' TestMain lowers to MinCost, after refusing a
production default below bcrypt.DefaultCost.

#8331: recommendation and taste each had a splitGenres and subsonic's
hasGenre split inline, the same rule three times. internal/genretag.Split
is the one copy, a stdlib-only leaf, and the two TestSplitGenres tables
are one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 14:05:33 -05:00
bvandeusenandClaude Opus 5.5 10b10b8179 test(coverart, subsonic, server): merge repeated cases into tables (#8298)
release / web (push) Successful in 1m35s
release / go (push) Successful in 1m58s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 3m0s
release / android (push) Successful in 4m26s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 5m8s
- coverart: the four providers' identity and default tests, Last.fm's five
  not-found-without-asking tests, the four "which artists are asked again"
  database tests (now one reset over four artists), and the thumbnail-only
  and fanart-only tests.
- subsonic: getUser's six tests and decodePassword's three, one table each.
  Dropped TestTokenMD5Derivation: it checked crypto/md5 against a constant
  and called no Minstrel code.
- server: the four web-app-versus-API path tests start one server, not four.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 13:58:07 -05:00
bvandeusenandClaude Opus 5.5 bd95cdb105 Revert the deliberate break (#8297)
release / go (push) Successful in 1m53s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 2m47s
release / android (push) Successful in 4m21s
release / web (push) Successful in 1m23s
release / Build signed APK (push) Successful in 5m2s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 15s
release / Verify release artifacts (tag releases only) (push) Skipped
All eight broken behaviours failed their named tests in run 11283. Also
failing, as expected: the other tests pinning the same rules from other
sides (Discover's own album cap, a genre mix's artist cap, recsettings'
similarity weight, and Subsonic's playlist visibility and write checks).

This reverts commit 60b0edac7a.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 13:47:51 -05:00
bvandeusenandClaude Opus 5.5 60b0edac7a test: DELIBERATE BREAK, expected red, reverted next (#8297)
release / web (push) Successful in 1m19s
release / go (push) Failing after 1m46s
release / govulncheck (push) Successful in 20s
release / integration (push) Failing after 2m38s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / android (push) Canceled after 3m8s
release / Build signed APK (push) Canceled after 2m23s
- service.go Get: another user sees a private playlist
  -> TestService_WhoMaySeeAndChangeAPlaylist
- service.go Reorder: duplicate positions accepted
  -> TestService_RefusesBadInput
- system.go: a build never draws covers
  -> TestBuildSystemPlaylists_SufficientActivity
- discover.go: three tracks per album
  -> TestCapCandidatesByAlbumAndArtist
- similarity.go Similarity: one seed side still matches
  -> TestSimilarity
- similarity.go ContextualMatchScore: seed likes count
  -> TestContextualMatchScore
- score.go: SimilarityWeight ignored
  -> TestScore
- sessionvector.go: two tracks are enough
  -> TestBuildSessionVector_SeedUntilThreeTracks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 13:43:27 -05:00
bvandeusenandClaude Opus 5.5 a2dae7ec8c test(playlists, recommendation): system-mix builds stop drawing covers no test reads; merge repeated cases (#8297)
release / web (push) Successful in 1m16s
release / go (push) Successful in 1m44s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 2m45s
release / android (push) Successful in 4m29s
release / Build signed APK (push) Successful in 4m40s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 14s
release / Verify release artifacts (tag releases only) (push) Skipped
Timings from one run of the integration lane with -v (39c5b1ed, reverted
here) put the system-mix builds at 1.4-3.8s each, most of the playlists
package's 35s. A build draws a JPEG collage per mix; under -race that is
most of its time, and no build test looked at a cover. The build tests now
pass no data folder, which skips drawing, except SufficientActivity, which
keeps drawing and now checks every mix got a cover: nothing tested that the
build wires covers before.

Merged:
- playlists service: 22 tests become 5 scenario tests (access, bad input,
  partial update, track-list edits, cover-file cleanup), one database
  reset each.
- ARebuildKeepsEachMixsID into DailyNonceDeterminism (both built twice in
  one day); the two You might like builds into one.
- capCandidatesByAlbumAndArtist, Score, Similarity, ContextualMatchScore
  and the session-vector seed rule: one table each.
- LoadCandidates' six contextual-like database tests: the max and seed
  rules are ContextualMatchScore's unit table; the database test keeps what
  only it can see, a like reaching its track and a withdrawn like ignored.

Dropped: Score determinism with a fixed RNG (a pure function), Score's
cold-start case (the same input as the base case), and recencyDecay(nil)
and skipRatio's two cases, which Score's table covers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 13:35:36 -05:00
bvandeusenandClaude Opus 5.5 39c5b1ed66 ci: TEMPORARY, print each database test's duration for one run (#8297)
release / go (push) Successful in 1m49s
release / web (push) Successful in 1m15s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 3m14s
release / android (push) Successful in 4m19s
release / Build signed APK (push) Successful in 4m43s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 3s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 13:28:18 -05:00
bvandeusenandClaude Opus 5.5 8ed66cf132 Revert the deliberate break (#8296)
release / web (push) Successful in 1m33s
release / go (push) Successful in 1m57s
release / govulncheck (push) Successful in 17s
release / integration (push) Successful in 3m23s
release / android (push) Successful in 4m26s
release / Build signed APK (push) Successful in 4m56s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 13s
release / Verify release artifacts (tag releases only) (push) Skipped
All seven broken behaviours failed their named tests: five in the go lane
of run 11273 (after 25c7db71 fixed the reconcile case) and the resolver
note and stale-run reap in the integration lane of run 11272.

This reverts commit c03b3e0aa7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 12:51:32 -05:00
bvandeusenandClaude Opus 5.5 25c7db71b1 test(library): the volume-absent refusals are tested apart from the mark cap (#8296)
release / web (push) Successful in 1m40s
release / go (push) Failing after 2m7s
release / govulncheck (push) Successful in 21s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / android (push) Canceled after 1m2s
release / Build signed APK (push) Canceled after 23s
release / integration (push) Canceled after 2m48s
Every case marked every track, so the 25% cap refused before the root
checks were reached: run 11272 broke the empty-root check and the test
still passed. The walk now marks one track of ten and clears a returned
one, which reconcile would do, so only the root and empty-walk checks can
refuse it; and the test asserts nothing was cleared either, since those
checks run before restores.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 12:48:47 -05:00
bvandeusenandClaude Opus 5.5 c03b3e0aa7 test: DELIBERATE BREAK, expected red, reverted next (#8296)
release / web (push) Successful in 1m59s
release / go (push) Failing after 2m20s
release / govulncheck (push) Successful in 22s
release / integration (push) Failing after 3m59s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 2m54s
release / android (push) Canceled after 3m37s
Seven behaviours broken, each aimed at one rewritten library test that
must fail:
- moved.go: an ambiguous match adopts the first candidate
  -> TestAdoptMovedTrack
- reconcile.go: an empty root passes the mount check
  -> TestReconcileMissing_RefusesWhenAVolumeLooksAbsent
- id3v2genre.go: whole-tag unsynchronisation is not undone
  -> TestReadID3v2GenreValues
- mbids.go: no Vorbis MUSICBRAINZ_TRACKID fallback for the recording
  -> TestReadTagMBIDs
- duplicate_resolve.go: rip and clean notes swapped
  -> TestResolveDuplicates_LinksCopiesAcrossReleasesAndRemovesNothing_Integration
- stage_publisher.go: Flush keeps the tick count
  -> TestStagePublisher_FlushesEveryNTicksAndOnFlush
- trigger.go: a stale run is never reaped
  -> TestTryStartScan_StartsUnlessAFreshScanIsRunning

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 12:43:13 -05:00
bvandeusenandClaude Opus 5.5 ac8792323c test(library): merge repeated cases into tables, drop tests of other code (#8296)
release / web (push) Successful in 1m30s
release / go (push) Successful in 1m57s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 3m26s
release / android (push) Successful in 4m40s
release / Build signed APK (push) Successful in 5m12s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 28s
release / Verify release artifacts (tag releases only) (push) Skipped
- Moved-file adoption: 14 tests become one table. uniqueMatch, the row
  converters and pgtype's zero UUID are dropped: the adoption table covers
  the first two, and the third tests pgx.
- Reconcile: marking and its change rows, and restoring and its change rows,
  are one test each; the five "a volume looks absent" refusals are one table.
  Dropped: an error-propagation test.
- Genres: the ID3 reader cases, the normalisers and extractGenres across
  ID3, FLAC, Ogg and MP4 are one table each.
- MusicBrainz tag ids: eleven per-format tests become one table.
- Scan trigger: start / skip / reap is one table. Dropped: a closed-pool test.
- Stage publisher: six tests become three.
- Duplicate resolver: the cross-release cases (rip, renamed, kept as fine,
  two titles) asserted the same outcome once the resolver stopped removing
  files. They become one table that also checks the group's note, which is
  where rip and clean still differ. The auto-resolve-off song-link check
  moves into the existing auto-resolve-off test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 12:32:36 -05:00
bvandeusenandClaude Opus 5.5 4811ec2ec9 Revert the deliberate break (#8295)
release / go (push) Successful in 1m51s
release / web (push) Successful in 1m16s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 3m19s
release / Build signed APK (push) Successful in 5m7s
release / android (push) Successful in 4m26s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 22s
release / Verify release artifacts (tag releases only) (push) Skipped
Run 11264 failed every named test:
- TestMountedRoutes_RequireASessionAndAdminRoutesAnAdmin
- TestRegister_AfterTheFirstAccountAnInviteIsTheOnlyWayIn
- TestAdminUsers_DemotingStopsAtTheLastAdmin
- TestHandleLogin_AWrongPasswordAndAnUnknownUserLookAlike
- TestUpdateProfile_ChangesOnlyTheFieldsSent
- TestEnumerate_LeavesHiddenFilesAndFoldersOut

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 11:05:35 -05:00
bvandeusenandClaude Opus 5.5 8e44666131 test(api): the invite-only test starts from exactly one account (#8295)
release / web (push) Successful in 1m17s
release / integration (push) Failing after 3m23s
release / govulncheck (push) Successful in 18s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / go (push) Failing after 1m53s
release / Build signed APK (push) Canceled after 1m3s
release / android (push) Canceled after 1m26s
The deliberate break letting the second account in without an invite did
not fail it: accounts earlier tests made through sign-up have no test
prefix, survive dbtest's reset, and kept the count above one. The test now
clears users first. The deliberate break stays for one more run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 10:56:44 -05:00
bvandeusenandClaude Opus 5.5 22f801d8f1 test(api): the route walk reports a handler it reached instead of crashing (#8295)
release / go (push) Failing after 2m3s
release / web (push) Successful in 1m40s
release / govulncheck (push) Successful in 21s
release / integration (push) Failing after 3m32s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 2m48s
release / android (push) Canceled after 3m28s
With the admin check removed, the walk reached a handler that panicked on
its bare wiring, and the panic ended the whole api test binary, hiding
every other failure. The walk now recovers and names the route that ran
its handler. The deliberate break above stays in place for one more run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 10:51:39 -05:00
bvandeusenandClaude Opus 5.5 6f89c3c212 test: DELIBERATE BREAK, expected red, reverted next (#8295)
release / go (push) Failing after 2m31s
release / web (push) Successful in 1m36s
release / govulncheck (push) Successful in 21s
release / integration (push) Failing after 2m51s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / android (push) Canceled after 2m13s
release / Build signed APK (push) Canceled after 1m42s
Proves the reviewed tests can fail. Each break, and the test that must fail:
- admin routes lose RequireAdmin -> TestMountedRoutes_RequireASessionAndAdminRoutesAnAdmin
- the second account signs up without an invite -> TestRegister_AfterTheFirstAccountAnInviteIsTheOnlyWayIn
- the last admin can be demoted -> TestAdminUsers_DemotingStopsAtTheLastAdmin
- an unknown user gets a different refusal -> TestHandleLogin_AWrongPasswordAndAnUnknownUserLookAlike
- email is stored as typed -> TestUpdateProfile_ChangesOnlyTheFieldsSent
- the scan walks hidden folders -> TestEnumerate_LeavesHiddenFilesAndFoldersOut

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 10:46:59 -05:00
bvandeusenandClaude Opus 5.5 3fd3c1f7c6 test(api): merge repeated cases into tables, drop skips dbtest already makes (#8295)
release / web (push) Successful in 1m34s
release / go (push) Successful in 2m0s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 3m24s
release / android (push) Successful in 4m46s
release / Build signed APK (push) Successful in 5m12s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 29s
release / Verify release artifacts (tag releases only) (push) Skipped
- The like/unlike story runs as one sequence that checks the rows after each step.
- The invite-only sign-up cases are one test, which now also checks that a
  refused sign-up creates no account.
- Demoting an admin, and stopping at the last one, is one test.
- A wrong password and an unknown user are one test, which now also checks
  that the two refusals are identical.
- The cover-path resolver tests repeated the cover handler's tests branch
  for branch; the handler tests stay.
- The Range-from-start stream test only re-checked http.ServeContent.
- The APK's nil-user 401 is covered by the mounted-route walk.
- 68 copies of the MINSTREL_TEST_DATABASE_URL skip go: every one of those
  tests reaches dbtest.Pool, which already skips.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 10:35:48 -05:00
bvandeusenandClaude Opus 5.5 81cc29595b test(api): one walk over the mounted router checks access and id errors (#8295)
release / go (push) Successful in 2m3s
release / web (push) Successful in 1m29s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 3m29s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / android (push) Canceled after 3m28s
release / Build signed APK (push) Canceled after 3m3s
The access tests checked hand-built routers that applied RequireAdmin
themselves, so none could catch a production route mounted outside its
group. One test now walks every route Mount registers: each non-public
route answers 401 without a session, and each admin route 403 to a
listener. The per-endpoint malformed-id (400) and unknown-id (404) tests
become one table over the real routes. Profile updates, playlist kind
filters and empty searches each fold into one table; writeErr's envelope
tests move to apierror.Write, which they were testing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 10:29:59 -05:00
bvandeusenandClaude Opus 5.5 877e1d2631 fix(library): hidden files and folders are not part of the library (#8305)
A full scan, the watcher's directory watches and the files it queues all
skip any name below a library root that starts with a dot. A download
manager can park replaced copies in a hidden folder, and macOS leaves
"._" files beside the music; neither is a track. A track already indexed
from a hidden path is marked missing at the next full scan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 10:29:59 -05:00
bvandeusenandClaude Opus 5.5 0e24fd388f fix(web): ws 8.23.1, past the pong-flood advisory
npm audit flags ws 8.0.0-8.22.2 (GHSA-37g9-w4hg-h9qr). Only jsdom, the
test DOM, pulls it in; the lockfile moves to the patched release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 10:29:59 -05:00
bvandeusenandClaude Opus 5.5 7fe0c68899 ci: the integration lane runs only packages with database tests, built in parallel first
release / web (push) Failing after 5s
release / go (push) Successful in 1m52s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 3m15s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 4m8s
release / android (push) Canceled after 4m33s
The integration job ran `go test -p 1 -race ./...`: every package, one at
a time, including 18 with no database test whose unit tests the go lane
had already run. -p 1 also serialized compiling, about 50s before the
first test ran.

ci/db-test-packages.sh lists the packages whose tests reach Postgres
(through internal/dbtest or MINSTREL_TEST_DATABASE_URL); a package that
mentions neither cannot run a database test. The job builds those test
binaries with full parallelism (-run '^$'), then runs them serially as
before. make test-integration uses the same list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 10:19:56 -05:00
bvandeusenandClaude Opus 5.5 56285881aa fix(coverart): album art goes to Minstrel's data folder, never beside the music (#8286)
release / go (push) Successful in 1m58s
release / web (push) Successful in 1m25s
release / govulncheck (push) Successful in 22s
release / integration (push) Successful in 4m24s
release / android (push) Successful in 4m33s
release / Build signed APK (push) Successful in 5m4s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 14s
release / Verify release artifacts (tag releases only) (push) Skipped
Another program files the library now. The cover enricher wrote a
cover.jpg into each album folder it found art for, from the files' tags or
from a provider, and an admin's cover retry deleted that file again, even
if the other program had since put its own cover at that path.

The enricher now keeps every cover it writes under
<data>/album-art/<album>/cover.jpg, and a retry removes a cover only from
there. A cover.jpg an older build left beside the music stays, and is read
as the library's own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 23:24:55 -05:00
bvandeusenandClaude Opus 5.5 c073e41613 fix(library): duplicate auto-resolve is off by default (#8252)
release / go (push) Successful in 2m18s
release / web (push) Successful in 1m34s
release / govulncheck (push) Successful in 22s
release / integration (push) Successful in 4m47s
release / android (push) Successful in 4m46s
release / Build signed APK (push) Successful in 5m35s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 17s
release / Verify release artifacts (tag releases only) (push) Skipped
Other programs file music into the library, so Minstrel acts on
duplicates only once an admin turns this on. Migration 0114 sets the
column default to false and turns the setting off on installs that hold
the old default; the Go default follows, so an unreadable database
behaves like a fresh one. The pass removes no file either way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:29:04 -05:00
bvandeusenandClaude Opus 5.5 677a421675 fix(library): the duplicate resolver never removes a file on its own (#8252)
release / go (push) Successful in 2m28s
release / web (push) Successful in 1m42s
release / govulncheck (push) Successful in 23s
release / integration (push) Successful in 5m9s
release / android (push) Successful in 5m28s
release / Build signed APK (push) Successful in 5m54s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 34s
release / Verify release artifacts (tag releases only) (push) Skipped
Other programs file music into the library now, and a startup pass
deleted a whole album a download manager had just filed, keeping older
loose copies of the same songs. The resolver assumed Minstrel was the
only program writing the library; it is not.

An automatic pass now changes only Minstrel's database:
- copies of one song, on one album or across releases, are linked as one
  song, so likes, plays and mixes count it once, and any group an admin
  may want to thin stays pending for review (and is announced);
- distinct versions are still dismissed, and rips still held back;
- a one-album wrong slot gets a note naming the song MusicBrainz or
  AcoustID says the recording is, for the admin who settles it.

Removing a copy is an admin's merge or wrong-slot settle, as before. When
an admin merges, a copy in a folder named for its album ("Album (Year)",
or its "CD nn" folder) now outranks a loose copy of the same audio.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 21:09:11 -05:00
bvandeusenandClaude Opus 5.5 63af193b13 fix(web): sign-up and password-reset headings use the display face too
release / web (push) Successful in 1m17s
release / go (push) Successful in 1m50s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 4m1s
release / android (push) Successful in 4m26s
release / Build signed APK (push) Successful in 4m47s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 22s
release / Verify release artifacts (tag releases only) (push) Skipped
The previous commit meant to carry these and didn't.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 09:33:53 -05:00
bvandeusenandClaude Opus 5.5 c6e4948d26 fix(web): the header name and sign-in headings use the display face
release / web (push) Canceled after 0s
release / android (push) Canceled after 0s
release / govulncheck (push) Canceled after 0s
release / Build signed APK (push) Canceled after 0s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / go (push) Canceled after 8s
release / integration (push) Canceled after 7s
The app name in the header was Inter at weight 600, a weight the house
style doesn't use, and read as a plain label beside Fraunces section
titles. It is the wordmark, so it now takes Fraunces at 500, as page
titles do, from 18px up. The sign-in, sign-up, reset and invite
headings follow the same rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 09:33:47 -05:00
bvandeusenandClaude Opus 5.5 1aea3e9a1b chore: take workbench pointers and real library data out of the public tree
release / go (push) Successful in 2m1s
release / govulncheck (push) Successful in 20s
release / web (push) Successful in 1m18s
release / integration (push) Successful in 4m11s
release / android (push) Successful in 4m4s
release / Build signed APK (push) Successful in 4m33s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 29s
release / Verify release artifacts (tag releases only) (push) Skipped
A sweep of the export (git archive) against the release leak standard:

- Internal ids in comments: a split "(rule 157)", two "RULE 131" headers
  and a "Preference 172" the id search missed because it was
  case-sensitive.
- Comments that quoted or credited the operator (shuffle caps, mix
  rotation, player bar layout, ID3v1 table).
- Real artists still in the suspect-source fixtures (and the Beck example
  in its comment): replaced with invented ones in the same file shapes.
- "26,171 tracks", a count from a real library, in the plural examples:
  now 12,345.
- Comments pointing at CI files the export leaves out (release.yml, the
  ci-go image, the Gitea keystore secret, an M8 milestone, .dockerignore
  history); client/README describes the release image, not the lanes.
- renovate.json is export-ignore: it targets the workbench's dev branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 06:56:35 -05:00
bvandeusenandClaude Opus 5.5 fb5fb9d4e0 test(recommendation): spread fixtures use hex track ids (#8216)
candBy scans the id into a UUID, so a title starting with 'o' failed to
parse before the test ran.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 06:56:35 -05:00
bvandeusenandClaude Opus 5.5 27e3725e54 fix(recommendation): radio and shuffle keep one artist's songs apart (#8216)
release / web (push) Successful in 1m17s
release / go (push) Failing after 1m42s
release / govulncheck (push) Successful in 17s
release / integration (push) Failing after 3m57s
release / android (push) Successful in 4m23s
release / Build signed APK (push) Successful in 4m50s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
Radio returned its picks in score order, and a seed's own artist matches
it best, so a DROELOE radio opened with four DROELOE songs in a row. The
artist cap bounded how many songs an artist got, not where they played.

SpreadArtists reorders picks so an artist doesn't play again within
three songs where another choice exists. Each slot takes the best
remaining pick outside that gap; when none is, the artist heard longest
ago goes next, so two artists alternate. Which songs are picked doesn't
change. Radio counts the seed's artist as just played; the library
shuffle spreads from a blank start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 06:48:04 -05:00
bvandeusenandClaude Opus 5.5 352720f13f chore(android): stop tracking Android Studio's project state
android/.idea/ has been in .gitignore since the Kotlin rewrite, but the
files committed before that line kept being tracked: the run target, the
JDK, the device list. They are one workstation's IDE state, and the
public export would have carried them. Local copies are kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 06:46:25 -05:00
bvandeusenandClaude Opus 5.5 11b01df446 ci(release): say where GHCR_USER is read from (#8207)
release / web (push) Successful in 1m45s
release / go (push) Successful in 2m13s
release / govulncheck (push) Successful in 23s
release / integration (push) Successful in 4m42s
release / android (push) Successful in 5m4s
release / Build signed APK (push) Successful in 5m9s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 14s
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:04:31 -05:00
bvandeusenandClaude Opus 5.5 c6915dfe8f ci(release): GHCR login reads GHCR_USER as a variable or a secret (#8207)
release / android (push) Canceled after 0s
release / govulncheck (push) Canceled after 0s
release / Build signed APK (push) Canceled after 0s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Publish the release image to GHCR (dispatch only) (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / go (push) Canceled after 10s
release / integration (push) Canceled after 11s
release / web (push) Canceled after 11s
The dry-run dispatch (run 11160) built the release image but showed
vars.GHCR_USER empty while secrets.GHCR_TOKEN was set; a real release
would have stopped at login.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:04:23 -05:00
bvandeusenandClaude Opus 5.5 143bb8561c ci(release): a dispatch builds the public release image for GHCR from the export (#8207)
release / web (push) Successful in 1m29s
release / go (push) Successful in 1m58s
release / govulncheck (push) Successful in 18s
release / integration (push) Successful in 4m17s
release / android (push) Successful in 4m49s
release / Build signed APK (push) Successful in 5m39s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 14s
release / Verify release artifacts (tag releases only) (push) Skipped
A new publishing job, ghcr-release, runs only on a workflow_dispatch with
ghcr_release ticked, behind every verifying lane:

- names the release with ci/version.sh (tag v<name>);
- exports `git archive HEAD`, refuses it if it carries .gitea or ci,
  and matches its tree (staged with add -A -f) to the public repo's
  v<name> tag; a dry run tolerates a missing tag as revision=unreleased;
- stages the freshly built APK and sidecar into the export;
- builds with --provenance=false, labelled source=the GitHub repo,
  revision=the public commit, version=<name>;
- unless ghcr_dry_run (the default), logs in with vars.GHCR_USER and
  secrets.GHCR_TOKEN and pushes :<name> once and :latest. A real run
  must be on main.

image-release stands aside on a GHCR dispatch, so a release moves no
private channel. The concurrency group now includes the event, so a
dispatch and a push on one ref don't cancel each other. The gate test
counts ghcr-release as a publisher and pins its trigger, its export
build, its provenance flag and its source label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:41:08 -05:00
bvandeusenandClaude Opus 5.5 e1f270362d chore(release): everything that ships points at GitHub and GHCR (#7897)
release / go (push) Successful in 2m7s
release / web (push) Successful in 1m25s
release / govulncheck (push) Successful in 21s
release / integration (push) Successful in 4m30s
release / android (push) Successful in 4m39s
release / Build signed APK (push) Successful in 5m10s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 29s
release / Verify release artifacts (tag releases only) (push) Skipped
- Module path: github.com/Fabled-Sword/minstrel, in go.mod, every
  import and the Dockerfile's version ldflags.
- buildinfo.ProjectURL, the contact outside services see in Minstrel's
  User-Agent: https://github.com/Fabled-Sword/minstrel.
- README's compose example pulls ghcr.io/fabled-sword/minstrel:latest.
- docs/security.md sends problem reports to the GitHub issues.
- The demo-library stack builds Minstrel from the checkout, since :dev
  is not published to GHCR.
- hygiene.go's same-site example uses example.com names.

The workbench CI (.gitea/, ci/, export-ignored) still builds and
publishes :dev to the private registry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:28:16 -05:00
bvandeusenandClaude Opus 5.5 18efd01eaa feat(brand): the product calls itself Fabled Minstrel (#8168)
release / go (push) Successful in 1m55s
release / web (push) Successful in 1m27s
release / govulncheck (push) Successful in 21s
release / integration (push) Successful in 4m31s
release / android (push) Successful in 4m43s
release / Build signed APK (push) Successful in 5m23s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 25s
release / Verify release artifacts (tag releases only) (push) Skipped
Where Minstrel names itself to a person it now gives its full name:
- the README heading, logo text and first line;
- the default app name, which feeds the browser tab, link previews and
  the header;
- the login heading, which now follows the app-name setting too;
- the emails' brand line and sign-off;
- the default From name for email.

On a phone the header shows the mark alone, as the nav shows its icons
alone; the left lane is too narrow for the full name, and the link's
label still names it. Running text, email subjects, code identifiers and
the Android launcher label keep "Minstrel".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 19:15:20 -05:00
bvandeusenandClaude Opus 5.5 05e087268a fix(library): a scan and a duplicate-resolver pass never touch the files at once (#8197)
release / go (push) Successful in 2m17s
release / web (push) Successful in 1m29s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m28s
release / android (push) Successful in 4m25s
release / Build signed APK (push) Successful in 5m8s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 15s
release / Verify release artifacts (tag releases only) (push) Skipped
The resolver checked for a running scan once, at the start of a pass. At
boot that check could run before the startup scan recorded its run, and a
scan that began mid-pass was never seen, so the pass removed copies the
scan had listed (23 "no such file" errors on dev, 2026-11-28).

A gate now keeps the two apart for their whole length: a full scan and
each watcher batch hold it, a scan that meets a pass waits for it (up to
30 minutes, then gives up with a named error), and a pass that meets a
scan is put off and tried again a minute later.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 17:28:52 -05:00
bvandeusenandClaude Opus 5.5 7c6c47cdb2 feat(mailer): emails follow a light system theme, and stay dark otherwise
release / go (push) Successful in 2m0s
release / integration (push) Successful in 4m16s
release / web (push) Successful in 1m26s
release / govulncheck (push) Successful in 20s
release / android (push) Successful in 4m23s
release / Build signed APK (push) Successful in 4m52s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 17s
release / Verify release artifacts (tag releases only) (push) Skipped
Every email is still drawn dark inline, so a client that can't tell the
reader's theme shows the app's own look. A stylesheet gives each coloured
element the design system's light colours when the reader's system is
light. A test checks that every element drawn dark carries the class that
lightens it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 16:15:48 -05:00
bvandeusenandClaude Opus 5.5 c662bc1f90 fix(subsonic): getLyrics by title alone answers nothing when two artists share the title (#8128)
release / go (push) Successful in 1m46s
release / web (push) Successful in 1m15s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m13s
release / android (push) Successful in 4m45s
release / Build signed APK (push) Successful in 5m16s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 16s
release / Verify release artifacts (tag releases only) (push) Skipped
An app that asks for lyrics by title without an artist got the first
matching song with lyrics, which could be another artist's song of the
same name. It now answers empty, so the app can look elsewhere.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:51:25 -05:00
bvandeusenandClaude Opus 5.5 6ed9db4f0c test(likes): seed the second copy at its own path (#8126)
release / web (push) Successful in 1m39s
release / go (push) Successful in 2m3s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m22s
release / android (push) Successful in 4m43s
release / Build signed APK (push) Successful in 5m41s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 40s
release / Verify release artifacts (tag releases only) (push) Skipped
seedTrack derives the file path from the title, so two copies titled
alike upserted into one row and the test compared a track with itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:23:03 -05:00
bvandeusenandClaude Opus 5.5 3557c31416 test(likes): track like and unlike answer 200 with the copies they changed (#8126)
release / web (push) Successful in 1m41s
release / go (push) Successful in 2m5s
release / govulncheck (push) Successful in 20s
release / integration (push) Failing after 4m31s
release / android (push) Successful in 5m2s
release / Build signed APK (push) Successful in 5m34s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
Three more assertions in likes_test.go still expected 204 from the track
like and unlike routes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:09:11 -05:00
bvandeusenandClaude Opus 5.5 4587b0a038 fix(release): outside services see the build's real version in Minstrel's User-Agent (#8129)
release / web (push) Successful in 1m37s
release / go (push) Successful in 2m1s
release / govulncheck (push) Successful in 19s
release / integration (push) Failing after 4m20s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 3m47s
release / android (push) Canceled after 4m27s
MusicBrainz, the Cover Art Archive and AcoustID ask a client to name
itself with a version and a contact. Minstrel sent three different
strings: Minstrel/1.0 to MusicBrainz, Minstrel/dev to the Cover Art
Archive and no version at all to AcoustID, whatever the build. All three
now come from buildinfo.UserAgent, which carries buildinfo.Version and
the operator's contact address when one is configured, else the project
URL. ProjectURL is that one place to repoint when the project moves
(#7897).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 12:00:41 -05:00
bvandeusenandClaude Opus 5.5 e2172e925e fix(taste): a play still open, or closed unheard, no longer grades as a skip (#8127)
The taste build graded every play in its window, and a play with no
completion ratio and no played duration came out as completion 0: a song
playing during the rebuild, or a row the sweeper closed without hearing
how it ended, counted as abandoned and pushed its artist and tags
negative. Only plays whose completion is known are graded now; an open
play is graded once it ends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 11:59:34 -05:00
bvandeusenandClaude Opus 5.5 698ff23105 fix(likes): the web marks every copy of a liked song, not only the one tapped (#8126)
A like is on the song: the server likes every copy sharing its song_key,
but the web's optimistic update marked only the tapped track, so the
same song on another album or a compilation showed an empty heart until
the liked ids were fetched again. A track like or unlike now answers 200
with the ids of every copy it changed, the asked one first, and the web
marks them all. Clients that ignore the body (Android) are unaffected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 11:58:13 -05:00
bvandeusenandClaude Opus 5.5 1c4307e6ef fix(subsonic): a scrobble of an unknown song answers not found (70) (#8125)
release / web (push) Successful in 1m20s
release / go (push) Successful in 1m49s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m3s
release / android (push) Successful in 4m26s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 4m43s
A scrobble whose id named no track reached the play writer and came back
as a generic failure (0). The handler now looks the song up first, as
stream does, and answers 70 with nothing recorded; a lookup that fails
for another reason is still a generic error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 11:56:12 -05:00
bvandeusenandClaude Opus 5.5 4ca6c6be38 fix(home): a section that panics fails the Home call instead of the server (#8124)
HomeData loads its seven sections in bare goroutines joined by a
WaitGroup. A panic in one of them was off the request's goroutine, out
of the HTTP recoverer's reach, and would stop the whole server. The
sections now run through one helper that recovers a panic into that
section's error, with the stack, so the call fails as a query error
fails it. They stay request-scoped: each uses the request's context and
the call waits for all of them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 11:54:54 -05:00
bvandeusenandClaude Opus 5.5 c9d54b0e7e fix(subsonic): updatePlaylist checks the songs to add before changing anything (#8123)
The name, comment, removals and additions are separate writes, and the
songs to add were only found missing when the last of them ran, so an
unknown songIdToAdd answered error 70 over a playlist already renamed
and trimmed. Every song to add is now looked up first, alongside the
index check, and an unknown one answers 70 with nothing changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 11:53:32 -05:00
bvandeusenandClaude Opus 5.5 ad17849205 fix(playlists): a replayed append whose reply was lost adds nothing more (#8122)
An append that reached the server but whose reply never reached the
phone stayed in the offline queue and was sent again, and since an
append is an action, the song landed twice. Android now names each
append with a request id, carried by the live send and its queued row
alike; POST /api/playlists/{id}/tracks takes it as request_id, and the
server records it per playlist in the append's own transaction
(playlist_append_requests, pruned after 30 days). A send whose id is
already recorded changes nothing; a failed append rolls its id back
with it. Without an id an append behaves as before, so queued rows
from older builds and Subsonic clients are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 11:52:12 -05:00
bvandeusenandClaude Opus 5.5 6996561cb1 refactor: one cover fallback icon on Android, one paged-query type on the web
release / web (push) Successful in 1m19s
release / go (push) Successful in 1m45s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 3m56s
release / android (push) Successful in 4m34s
release / Build signed APK (push) Successful in 5m3s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 25s
release / Verify release artifacts (tag releases only) (push) Skipped
Ten Android covers wrote out the same muted icon for missing artwork;
they now call CoverFallbackIcon beside CoverTile, and ShelfPlaylistCards'
NoArtIcon wrapper is gone. AlbumDrillDown and AlphaLibrary each declared
the infinite-query shape they read; both now take PagedQuery<T> from
api/types. Folds the two small copies the M664 DRY close-out found (#8006).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 11:48:17 -05:00
bvandeusenandClaude Opus 5.5 db05d16800 fix(android): ktlint's multiline-expression wrap on copySharedCopy
release / go (push) Successful in 1m58s
release / web (push) Successful in 1m28s
release / govulncheck (push) Successful in 21s
release / integration (push) Successful in 4m24s
release / android (push) Successful in 4m51s
release / Build signed APK (push) Successful in 5m12s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 31s
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 14:17:01 -05:00
bvandeusenandClaude Opus 5.5 5d85739038 refactor(android): error messages come from the web's copy, one source for both apps (DRY B6)
release / web (push) Successful in 1m27s
release / go (push) Successful in 1m54s
release / govulncheck (push) Successful in 18s
release / android (push) Failing after 1m10s
release / integration (push) Successful in 4m9s
release / Build signed APK (push) Successful in 4m43s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
Android's ErrorCopy was a hand-kept copy of web/src/lib/styles/
error-copy.json that had drifted: 14 of the web's codes were missing
(a server shutting down, a bad setting value, the backup and duplicates
codes), so those read "Something went wrong." on the phone, and only 2
of the web's 7 codes appended the server's specifics.

Now app/build.gradle.kts copies error-copy.json and a new
error-detail-codes.json (the list web/src/lib/api/errors.ts kept
inline) into the app's Java resources, and ErrorCopy reads them. The
three codes only Android had (auth_required, not_found,
cleartext_public) move into the shared file. PasswordRules' too-short
line is the shared password_too_short copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 14:11:34 -05:00
bvandeusenandClaude Opus 5.5 25cee5ed69 fix(android): new passwords follow the web's rules and wording (DRY B5)
Settings › Password said "New passwords do not match." where the web
says "Passwords do not match.", and neither it nor an admin resetting
someone's password checked the 8-character minimum before sending: the
reset button lit up after one character. auth/PasswordRules mirrors
web/src/lib/auth/password.ts: the minimum, the "At least 8
characters." hint under the field, the too-short and mismatch wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 14:09:48 -05:00
bvandeusenandClaude Opus 5.5 c45be1720a fix(android): Previous starts the song over after 3 seconds, as on the web (DRY B4)
Previous always went back a song. It now does what the web player
does: past the first 3 seconds it starts the current song over, and
before that it goes back one. It greys out only in the opening seconds
of the queue's first song. PlayerController decides it, so a cast to a
Sonos speaker behaves the same: the restart is a seek to 0 there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 14:08:58 -05:00
bvandeusenandClaude Opus 5.5 cb7028c745 refactor(web): one ConfirmModal asks before what can't be undone; no native dialogs (DRY B2, B3)
Deleting a playlist asked in the browser's own confirm() box and
reported errors with alert(). Four other deletes each built Modal +
Cancel + a destructive button by hand, two of them in bronze rather
than the destructive oxblood. Suspect sources removed a file on a
second click while Reports asks in a dialog for the same act.

ConfirmModal is the web's twin of Android's ConfirmDestructiveDialog:
title, a body saying what goes, Cancel, and a confirm button in the
destructive action colour that can show a busy label. Reports (x2),
Needs a file, Admin > Users, the playlist page and Suspect sources use
it. The playlist page's errors go to toasts. A source guard keeps
confirm() and alert() out of the app; it flags the old playlist page.

The two web source guards share lib/testing/sourceGuard.ts.

ListenBrainz status (Settings > Connections) and the recommendation
metrics now offer Try again when they fail to load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 14:07:43 -05:00
bvandeusenandClaude Opus 5.5 a5d94754bf refactor(android): one plural() says every count, so none reads "1 tracks" (DRY B1)
The playlist card, the playlist header and the playlist a mix was
started from said "${n} tracks" whatever n was. Seven count labels
were each written by hand; they now go through shared/plural(), which
also formats the number for the listener's locale, as the web's counts
do. PluralTest names any hand-written copy (checked against the tree
before this change: it flags all seven).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 14:04:22 -05:00
bvandeusenandClaude Opus 5.5 b46725e387 fix(android): the playlist writes test imports WriteOutcome from its new home
release / go (push) Successful in 1m53s
release / web (push) Successful in 1m22s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m11s
release / android (push) Successful in 4m37s
release / Build signed APK (push) Successful in 5m33s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 28s
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 10:39:36 -05:00
bvandeusenandClaude Opus 5.5 6a216a9e84 fix(android): detekt's file-name, function-count and line-length findings on the DRY batch
release / web (push) Successful in 1m41s
release / go (push) Successful in 2m2s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m22s
release / android (push) Failing after 3m45s
release / Build signed APK (push) Successful in 5m2s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
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>
2026-11-27 10:27:37 -05:00
bvandeusenandClaude Opus 5.5 bae3421057 feat(email): every email Minstrel sends uses one layout (#8150)
The password reset, the new-music and activity summaries and the SMTP
test message each drew their own page; the test message had no layout
at all. They now share internal/mailer's layout: the Minstrel name at
the top, the email's heading and message on a card in the design
system's dark theme, and a footer saying which server sent it and why,
signed "— Minstrel", with the notification-settings link on the
summaries. A plain-text body in the same frame goes alongside.

An email supplies only its content templates and a Frame (heading,
server, reason). Links, buttons and quiet text take named styles from
the layout ({{style "link"}}), so colours change in one place; an
unknown style name fails the render. The SMTP test message is a
template now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 10:27:16 -05:00
bvandeusenandClaude Opus 5.5 a18d5aaa11 fix(android): restore Home's Most played tile and its skeleton (DRY A1 follow-up)
release / govulncheck (push) Successful in 19s
release / web (push) Successful in 1m29s
release / go (push) Successful in 1m54s
release / android (push) Failing after 1m25s
release / integration (push) Successful in 4m11s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 3m54s
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>
2026-11-27 10:24:15 -05:00
bvandeusenandClaude Opus 5.5 9bf831e20e refactor(android): one rule for which failed writes wait in the offline queue (DRY D1)
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>
2026-11-27 10:23:41 -05:00
bvandeusenandClaude Opus 5.5 af5384e672 refactor(android): the admin screens use the shared UiState and one load helper (DRY A4)
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>
2026-11-27 10:21:31 -05:00
bvandeusenandClaude Opus 5.5 5853c52640 refactor(android): the track-list heart buttons share LikesRepository.toggleTrackLike (DRY A8)
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>
2026-11-27 10:19:54 -05:00
bvandeusenandClaude Opus 5.5 d2918aeeb0 refactor(android): Home and the Artist page shuffle-play an artist through one function (DRY A5)
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>
2026-11-27 10:19:26 -05:00
bvandeusenandClaude Opus 5.5 e049c27bdf refactor(android): every ask-before-destroying dialog is ConfirmDestructiveDialog (DRY A6)
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>
2026-11-27 10:18:42 -05:00
bvandeusenandClaude Opus 5.5 548e31ea57 fix(android): a settings card that fails to load offers Try again instead of a blank form (DRY A7)
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>
2026-11-27 10:17:57 -05:00
bvandeusenandClaude Opus 5.5 a48219d807 fix(android): the album and playlist headers and Home's Most played covers fall back when the art fails (DRY A1)
release / web (push) Successful in 1m48s
release / go (push) Successful in 2m30s
release / govulncheck (push) Successful in 21s
release / integration (push) Successful in 4m34s
release / android (push) Failing after 3m8s
release / Build signed APK (push) Failing after 3m7s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
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>
2026-11-27 10:16:40 -05:00
bvandeusenandClaude Opus 5.5 abdb689e08 refactor(android): one transport button pair, and Previous/Next grey out at the ends of the queue (DRY A2)
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>
2026-11-27 10:16:40 -05:00
bvandeusenandClaude Opus 5.5 d5d9952cd7 feat: tapping a search result starts radio from that track, on web and Android (DRY A3)
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>
2026-11-27 10:16:40 -05:00
bvandeusenandClaude Opus 5.5 ebb8e331a2 refactor(web): Admin's Overview and the Collection draw a waiting queue with one row (DRY W9)
release / web (push) Successful in 1m42s
release / go (push) Successful in 2m13s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m38s
release / android (push) Successful in 5m11s
release / Build signed APK (push) Successful in 5m29s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 27s
release / Verify release artifacts (tag releases only) (push) Skipped
The "what is waiting, how long, Open" row was written out four times: the
failed scan, each queue and each status problem on the Overview, and each
queue on the Collection. NeedsYouRow draws it once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 03:24:47 -05:00
bvandeusenandClaude Opus 5.5 6152dacac3 fix(web): the liked page test imports page() at the top level (DRY W10)
The import had landed inside a multi-line import from likes.js.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 03:24:20 -05:00
bvandeusenandClaude Opus 5.5 47423fb529 refactor(web): Library › Albums and › Artists are one A–Z page (DRY W8)
The two pages matched line for line apart from the noun, the filter field
and the sort key: the count, the quick filter, the lettered grid paged as
you scroll, the admin and listener empty states, and the "search the full
library" link when the filter matches nothing loaded. AlphaLibrary now
draws them once and each page supplies its query, noun, match, key and
card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 03:23:54 -05:00
bvandeusenandClaude Opus 5.5 abf30b1295 refactor(web): Admin, Settings and Collection share one rail layout (DRY W7)
The three areas each repeated the same title, left rail and content grid.
SectionLayout now draws it once, with the rail and any lines under the
title as snippets.

Admin pages now get the content cap Settings has (max-w-[100rem]): both lay
their groups out in SettingsColumns, and without it Admin's two columns
stretched across a very wide screen. The Collection keeps its uncapped
lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 03:23:10 -05:00
bvandeusenandClaude Opus 5.5 f298c44ecd fix(web): the Fingerprinting card's Try again reloads it, and the settings cards type-check (DRY W3)
release / web (push) Failing after 16s
release / go (push) Successful in 1m54s
release / Build signed APK (push) Canceled after 0s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / govulncheck (push) Canceled after 18s
release / android (push) Canceled after 1m48s
release / integration (push) Canceled after 2m14s
The Fingerprinting card's load-failure line pointed Try again at a load()
that no longer exists, and canSave closing over a value derived from the
form left TypeScript unable to type the form itself. Try again calls
f.load, and canSave states that it returns a boolean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 03:22:39 -05:00
bvandeusenandClaude Opus 5.5 5f88fe941d test(web): the search and liked page tests take page() from the shared fixture (DRY W10)
Four test files defined the same Page<T> envelope helper; they now import
it from test-utils/fixtures/page.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 03:22:07 -05:00
bvandeusenandClaude Opus 5.5 c290667b8a refactor(web): genre and year albums page like every other list (DRY W6)
The genre and year drill-downs hand-rolled their own pager (a request token
to drop late answers, loading, failed and later-page-failed flags), on the
note that the codebase had no way to make a query from a changing URL. The
search pages have since done exactly that:
$derived(q ? createXInfiniteQuery(q) : null).

browse.ts gains createAlbumsByGenreInfiniteQuery and
createAlbumsByYearInfiniteQuery, keyed per selection so a late page for the
previous one never lands in the current list. Both pages draw their albums
through one AlbumDrillDown view (back link, count, grid, ListContinuation),
and the out-of-date note is gone. Tests drive the pages through
mockInfiniteQuery, as the search pages' do, with the page() fixture now in
test-utils.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 03:21:55 -05:00
bvandeusenandClaude Opus 5.5 7314101f91 refactor(web): every ⋮ menu shares one trigger and popover; album and artist menus are one (DRY W5)
release / web (push) Failing after 11s
release / go (push) Failing after 2m45s
release / govulncheck (push) Successful in 18s
release / integration (push) Failing after 4m51s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 2m12s
release / android (push) Canceled after 5m8s
The ⋮ trigger, its popover and the close-on-outside-click and Escape
handling were hand-rolled in AlbumMenu, ArtistMenu, TrackMenu, PlaylistCard
and RowActionsMenu. KebabMenu now draws them once; each menu supplies its
items and any popover it opens (Add to playlist, Report a problem).

AlbumMenu and ArtistMenu were the same menu apart from their entity and
"Go to artist"; both are now CollectionMenu with the entity filled in. Its
track cache is kept per entity id, so a menu reused for another row
fetches that row's tracks. Escape now also closes the playlist card's menu
and the mobile row menu with focus inside it. IconProp is exported once,
from TrackMenuItem (W10).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 03:17:17 -05:00
bvandeusenandClaude Opus 5.5 d99498be0b refactor(web): one password rule and one wording for account-form errors (DRY W4)
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>
2026-11-27 03:14:50 -05:00
bvandeusenandClaude Opus 5.5 87c650aca1 refactor(web): the admin settings cards share one load-and-save cycle (DRY W3)
Five settings cards (Fingerprinting, Loudness, Public address, Proxies,
Notification email) each hand-rolled the same cycle: load into a stored copy
and an editable one, say when they differ, save, adopt what the server
stored, toast. lib/settings/settingsForm.svelte.ts now runs it once
(createSettingsForm), and SettingsLoadStatus draws the "Loading…" / "Couldn't
load … Try again" line for those five and for Library folders and AcoustID.

The Proxies card dropped the server's reason when a save was refused and
toasted a fixed "Couldn't save proxy depth."; it now says why, as the other
cards do. Two cards' "Loading <thing>…" lines now read "Loading…" like the
rest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 03:13:32 -05:00
bvandeusenandClaude Opus 5.5 dae46ea980 refactor(web): every cover thumbnail goes through Cover, so a failed load falls back (DRY W2)
Seven places drew their own cover image. The Missing, Suspect sources,
Hidden and Reports rows showed a Music2 icon only when the track had no
album; a cover that failed to load (not fetched yet, or gone) showed a
broken image. The queue row, play bar and Now Playing each set the
placeholder in their own onerror, and the playlist card's images had no
fallback at all.

Cover gains fallback="track" (the Music2 icon a track row uses), and all
seven go through it, so each one handles a missing src and a failed load
the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 03:09:15 -05:00
bvandeusenandClaude Opus 5.5 cceeaeb5c8 fix(web): Next is off at the end of the queue with repeat one, since it only stops there (DRY W1)
release / web (push) Successful in 1m38s
release / go (push) Successful in 1m57s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m19s
release / android (push) Successful in 4m53s
release / Build signed APK (push) Successful in 5m18s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 25s
release / Verify release artifacts (tag releases only) (push) Skipped
With repeat one on the last track, the play bar and Now Playing enabled
Next, but store.skipNext treats an explicit Next at the end the same for
repeat one as for repeat off: it pauses. The button now follows the store:
on when there is a track after this one or the queue wraps (repeat all).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 03:06:58 -05:00
bvandeusenandClaude Opus 5.5 14afd86b8e refactor(web): the play bar and Now Playing share one set of transport rules (DRY W1)
PlayerBar and the Now Playing page each carried their own copy of when
Previous and Next are enabled, the repeat label, the volume icon and the
range-input handlers, and the 3-second "restart rather than go back"
threshold was written in both and again in store.skipPrev.
lib/player/controls.ts now holds them once (canSkipPrev, canSkipNext,
repeatLabel, volumeIcon, inputNumber, RESTART_THRESHOLD_SEC), and the store
reads its threshold from there. Behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 03:06:36 -05:00
bvandeusenandClaude Opus 5.5 02cecc4eb7 docs(api): the session cookie comment says sessions expire server-side, because they do (#8108)
release / web (push) Successful in 1m26s
release / go (push) Successful in 1m56s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 4m29s
release / android (push) Successful in 4m29s
release / Build signed APK (push) Successful in 5m10s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 15s
release / Verify release artifacts (tag releases only) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 00:30:38 -05:00
bvandeusenandClaude Opus 5.5 40c53c8b98 test(playlists): name a mix by its seed artist too in the rebuild-keeps-ids test (#8081)
release / govulncheck (push) Successful in 20s
release / go (push) Successful in 1m48s
release / web (push) Successful in 1m17s
release / integration (push) Successful in 4m17s
release / android (push) Successful in 4m24s
release / Build signed APK (push) Successful in 4m52s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 24s
release / Verify release artifacts (tag releases only) (push) Skipped
The fixtures make one artist row per track, all named alike, so two Songs
like mixes with different seed artists share a display name, and the test
read them as one mix held twice. It now names a mix by name and seed
artist, as snapshotSystemTracks does (lesson: a snapshot keyed by display
name merges same-named rows).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 00:14:41 -05:00
bvandeusenandClaude Opus 5.5 1dff4b7ddb fix(android): a like, unlike, flag or unflag made while an older one is still queued can't be undone by it (#8079)
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>
2026-11-27 00:13:48 -05:00
bvandeusenandClaude Opus 5.5 e05673a9f1 fix(android): signing out ends the server session, not only the local one (#8108)
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>
2026-11-27 00:11:42 -05:00
bvandeusenandClaude Opus 5.5 e34c3d7bf3 fix(android): a song on repeat is a play per listen, and a late start reply can't make a quick skip record twice (#8071, #8073)
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>
2026-11-27 00:10:09 -05:00
bvandeusenandClaude Opus 5.5 5939248bef fix(metrics): web and Android tag plays with one source vocabulary, so a surface reads the same on either (#8075)
The recommendation metrics judge each surface against a baseline of manual
plays. The web tagged only system mixes, so its radio, album, artist and
history plays all sat in the baseline; Android tagged nearly everything, and
its search, Liked-list, library-shuffle and artist-top plays fell to Other.
The surface deltas depended on which client someone listened on.

- The web sends the vocabulary Android uses: radio:<seed>, album:<id>,
  artist:<id>, artist-top:<id>, home:most_played and history, kept in
  web/src/lib/player/playSource.ts.
- The baseline is now named in one place (isManualSource): no source, a
  search pick, or a Liked-list pick.
- library_shuffle gets its own row, the random baseline the mixes exist to
  beat; artist-top counts as an artist play.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 00:08:37 -05:00
bvandeusenandClaude Opus 5.5 0c9faeca9f fix(web): a song on repeat is a play per listen, and a stall before play_started answers doesn't record it twice (#8071, #8072)
The events dispatcher keyed a play on the track id, so repeat-one, a
one-track queue on repeat-all, or the same song twice in a row stayed one
play, closed at the last loop's position and usually graded a skip. The
player store now counts listens (player.listen moves whenever playback
starts an item from its beginning) and the dispatcher keys a play on
(track, listen).

play_started's reply was adopted only while still 'playing', and nothing
marked a start in flight, so a stall or pause just after starting threw the
id away and the next 'playing' posted a second start, which closed the
first as a skip. The dispatcher now holds the pending listen and adopts the
reply whenever that listen is still current.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 00:06:08 -05:00
bvandeusenandClaude Opus 5.5 2898e9d746 fix(playevents): a late offline replay no longer closes the play that is live now (#8074)
RecordOfflinePlay auto-closed whatever play was open at the replayed play's
original, often hours-old, time. When Android drained its offline queue
while the next song was already playing, each replay ended the live row
before it began, as a zero-length skip. That stuck when the live play's own
close was lost, and for a Subsonic app's now-playing row it became a skip
plus a second play.

autoClosePriorOpen now leaves open any row that started after the time it
was asked to close at, for every caller; #8019's guard for the Subsonic
path moves into it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 00:04:06 -05:00
bvandeusenandClaude Opus 5.5 b6749fcf16 fix(sync): an artist picture found after the artist first synced reaches the Android app (#8080)
The library sync sends each artist's picture paths, and an app learns that a
row changed only from the change log. The artist enricher wrote the paths
without logging, so an artist synced before its picture arrived kept showing
the album-cover fallback on Android until something else touched it. A
picture found is now logged in the same transaction as the write; settling
"none" changes nothing an app shows and isn't logged.

The MBID backfill's heals of albums.mbid and artists.mbid, also part of the
sync payload, are now logged too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 00:03:21 -05:00
bvandeusenandClaude Opus 5.5 8ba1d109c3 fix(events): a like made in a Subsonic app reaches the other apps, and an open web tab follows likes and playlist changes (#8077)
The native like endpoints announce a like on the event bus; Subsonic star
and unstar announced nothing, so the web and Android apps showed a stale
heart until they refetched. Subsonic now publishes the same events, through
one shape both surfaces build (eventbus.LikeChanged, eventbus.LedBy).

The web listened only for the nightly rebuild and notifications, so an open
tab ignored likes and playlist changes made in another tab, on Android or
in a Subsonic app. It now refreshes its liked views on any like event and
its playlists (and the open one) on playlist.created/updated/deleted/
tracks_changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 00:02:12 -05:00
bvandeusenandClaude Opus 5.5 528ea9df0c fix(likes): unliking any copy of a song retires the listening context captured on another (#8078)
release / go (push) Successful in 1m49s
release / web (push) Successful in 1m16s
release / govulncheck (push) Successful in 25s
release / integration (push) Failing after 4m12s
release / android (push) Successful in 4m47s
release / Build signed APK (push) Successful in 5m24s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped
A like is on the song: LikeTrack and UnlikeTrack change every copy sharing
its song_key. The contextual like (the session captured while it played) is
written on the copy that was playing, but an unlike soft-deleted only the
copy it named. Unliking from the Liked list, which shows one copy per song,
or from another album holding the song, left the context active, and the
engine kept boosting candidates matching it.

The soft-delete now covers every copy of the song, and the engine's reader
counts only contexts whose song is still liked, as a backstop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:59:09 -05:00
bvandeusenandClaude Opus 5.5 d1f76167c8 fix(playlists): each daily mix keeps its id across rebuilds (#8081)
The nightly rebuild deleted every system playlist and inserted new rows, so
each mix got a new id every day. A Subsonic app caches, pins, downloads and
syncs a playlist by id, and saw its mixes deleted and recreated daily: a
stored mix answered "not found" and an offline download was orphaned.

The rebuild now refills yesterday's row for the same mix in place (keyed by
kind, plus the seed artist for "Songs like" and the name for a genre mix),
inserts only mixes that are new, and deletes the ones today's build didn't
make, along with their collage files. The rollups move updated_at, which is
the "changed" time Subsonic apps use to see a mix was refreshed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:57:41 -05:00
bvandeusenandClaude Opus 5.5 dbf39f90f8 fix(playlists): a restored playlist draws its collage again instead of showing a broken image (#8105)
A collage is a file in the data directory, which the backup doesn't carry,
but playlists.cover_path travelled, so a restored playlist pointed at a file
that wasn't there and its tile showed a broken image until someone edited it.

- The backup leaves cover_path out, so a restored playlist starts with none.
- The nightly rebuild (and the catch-up at startup) draws each person's own
  playlist collages again from their albums' current covers, so one drawn
  before the art arrived fills in later.
- The cover endpoint draws a collage whose file has gone missing, rather
  than answering 404.
- SetPlaylistCover only bumps updated_at when the path changes, so a redraw
  isn't a change to the playlist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:55:30 -05:00
bvandeusenandClaude Opus 5.5 436a970f7b fix(backup): a restore says Subsonic apps are signed out, and restores ListenBrainz switched off (#8104)
The backup leaves out each person's Subsonic password and ListenBrainz
token, which are sealed under the stream secret, but no restore message
said so. The CLI and docs sent people to Admin for keys that live in each
person's own Settings, and the web said nothing. All three now say that
Subsonic apps are signed out and where to make a new Subsonic password and
save the ListenBrainz token.

listenbrainz_enabled travelled without the token, so a restored account
read as on but unable to send. It is now left out too and restores off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:53:37 -05:00
bvandeusenandClaude Opus 5.5 4c0bd9df04 fix(subsonic): a scrobble's time is bounded as a native play's is (#8076)
The native events endpoint clamps a client's play time to between the
account's creation and a few minutes past now. A Subsonic scrobble took
its time as sent, so an app with a wrong clock dated plays years out,
onto the wrong day in History and into Rediscover's ordering. The clamp
moves to playevents.ClampClientTime and both surfaces use it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:52:37 -05:00
bvandeusenandClaude Opus 5.5 408c4f9c24 fix(subsonic): starred songs list only songs the listener can play (#8109)
getStarred and getStarred2 shared the web's liked-songs query, which keeps a
liked song whose file is missing and ignores the listener's quarantine.
Subsonic can't show a song as unplayable, so an app's Favorites offered
songs that failed to stream, or played the copy the listener hid. Subsonic
now reads ListPlayableLikedTrackRows, which filters both before the cap,
as #8020 did for albums, search and genres. The web's list is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:51:42 -05:00
bvandeusenandClaude Opus 5.5 f3997b657c fix(providers): saving a key for an enabled source tries the gaps again (#8102)
A source that needs a key, such as Last.fm, answers "not found" without
one, and the enricher settles each row it tried that way at the current
version. Switching Last.fm on before entering its key settled every gap
without it, and saving the key didn't move the version, so Last.fm never
came back to them. The sources signature now marks each enabled source
that has a key, so a key arriving or leaving moves the version. Replacing
one key with another still doesn't.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:50:29 -05:00
bvandeusenandClaude Opus 5.5 3a7081be19 fix(scrobble): plays that can't be sent no longer block ListenBrainz for everyone (#8103)
The worker skipped a queued play whose account had since switched
ListenBrainz off, or whose token couldn't be read, and left it pending. The
batch is the oldest fifty pending rows, so skipped rows came back first on
every tick, and fifty of them stopped scrobbling for every account. They are
now marked failed with the reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:48:55 -05:00