Skip to content

Implement improvements for reading progress tracking, manual bookmark sync and log management#48

Merged
NateEaton merged 9 commits into
mainfrom
codex/review-spec-for-reading-progress-saving
Feb 10, 2026
Merged

Implement improvements for reading progress tracking, manual bookmark sync and log management#48
NateEaton merged 9 commits into
mainfrom
codex/review-spec-for-reading-progress-saving

Conversation

@NateEaton

@NateEaton NateEaton commented Feb 9, 2026

Copy link
Copy Markdown
Owner

Summary

Implements three feature specs from _notes/:

  • Save reading progress on app close/minimize — Hooks into the Android onStop lifecycle event to persist article scroll position before the app is backgrounded or killed. Previously, progress was only saved on back-navigation or ViewModel destruction, which the system could skip entirely.

  • Manual bookmark sync — Adds a "Sync Bookmarks Now" button to the Sync Settings screen that triggers an immediate full sync with deletion detection, bypassing the 24-hour gate that scheduled syncs use.

  • Configurable log retention with enhanced viewer — Adds user-selectable log retention periods (1 day to 3 months) with automatic cleanup on app start, a multi-file log viewer with dropdown file selector, ZIP-based log sharing, and bounded file sizes via Treessence sizeLimit. Includes a fix for the sizeLimit parameter which is specified in bytes, not kilobytes.

Changes

  • BookmarkDetailViewModel / lifecycle integration: save scroll progress in onStop
  • FullSyncWorker / FullSyncUseCase: accept force-sync flag to bypass 24-hour interval
  • SyncSettingsScreen / SyncSettingsViewModel: new sync button with progress state
  • SettingsDataStore: log retention preference (log_retention_days)
  • MyDeckApplication: automatic log cleanup on startup, corrected Treessence sizeLimit from 128 (bytes) to 128 * 1024 (128 KB)
  • LoggerUtil: multi-file listing (getAllLogFiles) and ZIP archive creation
  • LogViewViewModel / LogViewScreen: file selector dropdown, retention dialog, ZIP sharing
  • String resources added to all 10 locale files

Test plan

  • Open an article, scroll partway, press Home — reopen and verify progress restored
  • Open an article, scroll partway, switch apps via recents — return and verify progress restored
  • Tap "Sync Bookmarks Now" — verify full sync runs immediately and deletions are detected
  • Verify sync button shows progress indicator while running
  • Generate enough logs to trigger file rotation (~128 KB) — verify file selector dropdown appears
  • Switch between log files in the viewer — verify content updates
  • Share logs — verify ZIP contains all log files
  • Set retention to 1 day, restart app — verify old logs cleaned up
  • Fresh install with single log file — verify no dropdown shown

NateEaton and others added 8 commits February 9, 2026 15:30
Treessence's sizeLimit parameter is in bytes, not kilobytes.
Setting sizeLimit=128 created 128-byte files, causing immediate
rotation after 1-2 log lines. This left file 0 empty and files
1/2 with only a couple of entries each. Changed to 128*1024
(131072 bytes = 128 KB) as originally intended by the spec.

https://claude.ai/code/session_01LbMyTbouPGq999Br8XVuEZ
…k-sync-EeiuP

Fix log file size limit calculation in MyDeckApplication
@NateEaton NateEaton changed the title Codex-generated pull request Implement improvements for reading progress tracking, manual bookmark sync and log management Feb 10, 2026
@NateEaton NateEaton marked this pull request as ready for review February 10, 2026 05:06
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@NateEaton NateEaton merged commit 8ac3173 into main Feb 10, 2026
2 checks passed
@NateEaton NateEaton deleted the codex/review-spec-for-reading-progress-saving branch February 20, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants