Repository navigation
Description
What happened
On Android, an audiobook streamed on the phone can resume at the phone's old position after the book was restarted, rewound, or finished on another device. Opening the book online resumes at whichever of the two is larger: the phone's last streamed position, or the server's resume point.
Steps to reproduce
- On an Android phone, stream an audiobook to about 20:00 and close the player.
- On another device with the same profile, restart the book from the beginning and listen to 2:00, or mark it finished.
- Open the book again on the phone while online.
Expected behavior
The phone resumes from the server's position (2:00, or the start for a finished book), as it already does for positions it sent from a download after the server has them.
Actual behavior
The phone resumes at 20:00. Its next progress then moves the server's position back there for every device.
Silo version / commit
silo-android main at 40d34e6. Not fixed by #961, which only stops the comparison for positions this device already sent from a download.
Clients affected
Android phone and tablet, and Android TV when it streams an audiobook (shared player).
Technical notes
AudiobookPlayerViewModel.loadResumePositionSnapshotresumes atmax(localPositionForContent, server). The unscopedrecordPositionthat streaming playback uses writes a local snapshot that nothing ever clears or marks, so it stays in that comparison.- fix(audiobooks): send offline listening on downloaded books to the server #961 marks positions the server has and leaves them out online; streamed snapshots are never sent through the outbox, so they are never marked.
- A fix could resume from the server's position online and keep the streamed snapshot for offline use only, or stop writing a local snapshot for streams (their session reports progress), as fix(progress): send download progress to the server and stop stale local resume #847 did for video.
- Source: found in review of fix(audiobooks): send offline listening on downloaded books to the server #961. The fix changes lines that PR changes, so it follows that PR.
AI disclosure
- Harness: Claude Code (in T3 Code)
- Tool(s): Claude Code, GitHub CLI
- Model(s): claude-opus-5-5
- Involvement: Found while reviewing fix(audiobooks): send offline listening on downloaded books to the server #961 and traced in the source. Not reproduced live.
- Independent review: two code-review passes on fix(audiobooks): send offline listening on downloaded books to the server #961 flagged it.
Activity