Skip to content

Fix Full Refresh starvation and missing resume feedback - #178

Merged
Fledgewing merged 2 commits into
mainfrom
fix/bulk-worker-spin
Nov 27, 2026
Merged

Fledgewing merged 2 commits into
mainfrom
fix/bulk-worker-spin

Conversation

@Fledgewing

@Fledgewing Fledgewing commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

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 started at 14:54:05, before the two Full Refresh taps, with no later repair completion or catalog-start message. StatusMarginRepair.schedule ran the unrestricted external-storage walk and whole-file tokenization on BulkWork.executor; Worker.start queued command handling on that same executor. The log also shows mirror: running; incremental at 14:55:40, before the Full Refresh taps. Mirror.start queued 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

Fledgewing and others added 2 commits November 26, 2026 15:05
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
@Fledgewing
Fledgewing merged commit 82cd338 into main Nov 27, 2026
21 checks passed
@Fledgewing
Fledgewing deleted the fix/bulk-worker-spin branch November 27, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant