Repository navigation
Fix Full Refresh starvation and missing resume feedback - #178
Merged
Merged
Conversation
Isolate and bound startup settings repair, keep commands responsive during bulk page requests, guard resumed pagination against no progress, and show immediate refresh feedback with bounded liveness retries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
Show progress immediately rather than silently waiting for a queued incremental run to stop. Restart the manual no-ack warning window when joining automatic work, and cover the device log's incremental-then-tap flow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Full Refresh can appear to do nothing after an update because startup settings repair occupies the sole command executor, and a Full Refresh tap waits silently for an existing incremental job to stop (explicit resumes also skipped the startup popup).
The device log identifies the busy thread: tid 3720 logs
status repair: scan startedat 14:54:05, before the two Full Refresh taps, with no later repair completion or catalog-start message.StatusMarginRepair.scheduleran the unrestricted external-storage walk and whole-file tokenization onBulkWork.executor;Worker.startqueued command handling on that same executor. The log also showsmirror: running; incrementalat 14:55:40, before the Full Refresh taps.Mirror.startqueued a replacement and returned before starting any badge or popup. The log does not identify the particular settings file or prove a catalog cursor loop.This change gives repair its own background executor, bounds settings tokenization and scan duration, and logs scan/parsing progress without filenames. Repair events still enter the sole cache writer's queue. Bulk HTTP waits now service commands every 100 ms, cached pages yield too, and resumed pagination rejects empty advancing manifests, repeated page fingerprints, changing totals and excessive pages. Watchdog failures preserve the published generation and invalidate stalled staging for a clean retry.
Explicit refreshes and resumes show “Full refresh starting…” immediately. Missing acknowledgements show “BookSync's companion isn't responding · Retry” after six seconds; liveness queries back off to once a minute while local progress polling continues. Both plugin and companion attach duplicate requests to the running job, including tapping Full Refresh during a queued incremental run. A prior silent background timeout cannot swallow the subsequent manual no-ack warning. Updated the four-platform feature cells; firmware has no Android companion acknowledgement path.
Validation: companion
verifySharedVersion testDebugUnitTest assembleDebug lintDebug; Lua logic (159) and flow (257) tests; install/sideload helper tests (no device); feature renderer/tests; workflow and release-input checks. Regressions cover oversized settings parsing, scan watchdog recovery, repair executor isolation, resumed no-progress manifests/pages, CHECK/STORAGE/RECHECK/MIRROR admission during a blocked page, startup feedback, missing acknowledgements and retry backoff.Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw