Skip to content

[Bug] Clearing reading history does not remove book from Continue Reading Shelf #606

Description

@Firemanjoe

What went wrong?

After accidentally opening a book in KOReader, it appeared in the Continue Reading shelf as expected.

I wanted to completely reset the reading state because the book was opened in error. I changed the book status back to Unread and removed all reading sessions.

Although the reading history appears to be completely cleared, the book still shows <1% progress, retains a Date Started, and continues to appear in the Continue Reading shelf.

The issue persists across browsers and devices, so it appears to be stored in the database rather than being a UI caching issue.

Steps to reproduce

  1. Open a new book in KOReader.
  2. Sync the reading progress to BookOrbit.
  3. Verify the book appears in Continue Reading.
  4. Open the book's Reading Log.
  5. Change the reading status back to Unread.
  6. Delete all reading sessions.
  7. Return to the dashboard.

The book still remains in Continue Reading shelf.

Expected vs actual behavior

Expected

After changing the book to Unread and deleting all reading sessions:

  • Progress should be 0%
  • Date Started should be cleared
  • The book should no longer appear in Continue Reading

Actual

The book shows:

  • Status: Unread
  • Sessions: 0
  • Total Reading Time: 0s
  • No First Read
  • No Last Read

However it still has:

  • <1% progress
  • A Date Started
  • It remains in the Continue Reading shelf.

Your setup

  • BookOrbit version: latest
  • Deployment: Docker
  • Database: PostgreSQL
  • Reader: KOReader on Kobo
  • Browser: Safari (also reproduced on iPhone Safari)

Relevant logs (optional)

No relevant errors were observed in either the BookOrbit or PostgreSQL logs while reproducing this issue.

Screenshots (optional)

No response

Before submitting

  • I've searched existing issues and this hasn't been reported yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleasedIssue or PR is included in a released version.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions