Repository navigation
Description
What happened
While an audiobook streams on Android, the listening position is saved on the device but rarely reaches the server. Other devices, and the same device after its local data is gone, resume from an older server position. In testing, the server held one position while the phone had listened well past it; the TV later resumed from a third position written when its session was replaced.
Steps to reproduce
- On an Android phone, stream an audiobook for several minutes and pause.
- Read the item's progress from the server (
GETthe item's user state) or open the book on the web or another device.
Expected behavior
The server's position follows playback within the normal progress interval, as it does for video.
Actual behavior
The server keeps an older position; it updates only when a session goes missing or in an uncommon final flush.
Cause
Audiobook sessions ask the server not to save session progress: AudiobookPlayerViewModel.kt:891 sends progressPersistence = ProgressPersistenceV3.CLIENT, so the server sets DisableProgressPersistence (internal/api/handlers/playback_service.go:698 in silo-server) and skips session progress (internal/api/handlers/playback.go:1044, :1109, :1217). The client then records the whole-book position only locally: RoomUserItemStateRepository.recordPosition (:168-189) calls recordPositionOwned with queueForServer = false. Progress reaches the server only from PlaybackSessionLifecycle.kt:785-802 (session replaced) or :929-942 (final flush). Related: #962 describes the resume side and assumes the session reports progress, so its suggested fix doesn't cover this.
Silo version / commit
silo-android bbbfdeeb5 (debug, API 36 emulators), server 2970 · a16a24720. Audiobooks are a beta library type. Found during agent runtime testing for validation tasks #349 and #350 (C10).
AI disclosure
- AI harness: Claude Code (in T3 Code).
- AI tools: GitHub CLI, agent-device.
- AI models:
claude-sonnet-5-5(testing),claude-opus-5-5(verification and this report). - AI involvement: fully AI-generated. No person has reproduced it yet; filed at the maintainer's direction.
- Independent review: a separate
claude-opus-5-5agent traced the code path above.
Activity