Skip to content

[bug] Streamed audiobook listening position is saved on the device but rarely reaches the server #1078

Backlog

Description

@Quick104

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

  1. On an Android phone, stream an audiobook for several minutes and pause.
  2. Read the item's progress from the server (GET the 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).

Evidence: https://evidence.siloserver.org/r/silo-android/v1-validation-349/

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-5 agent traced the code path above.

Activity

  1. added
    bug
    on Nov 26, 2026
  2. added
    impact: usability
    priority: P1
    triaged
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugimpact: usabilitypriority: P1triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions