Skip to content

Fix Loading screens when paging cached X4 lists offline - #182

Open
Fledgewing wants to merge 1 commit into
mainfrom
fix/x4-offline-scroll
Open

Fledgewing wants to merge 1 commit into
mainfrom
fix/x4-offline-scroll

Conversation

@Fledgewing

@Fledgewing Fledgewing commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Opening the next cached X4 catalog page painted Loading before consulting the SD write-through cache. The browser checked only session-list files; ordinary Home refresh stores 100-row replies in a separate cache. The two-page RAM window exposed that mismatch every page or two.

The list-cache probe now uses the catalog client’s saved-window adapters with HTTP explicitly disabled. Cached book and facet pages draw without a blocking screen, while real cache misses retain the existing connection flow. The RAM window stays bounded; both X4 models share the fix and X3 keeps its flash cuts.

Validation:

  • Reproduced on the pinned simulator with 245 refreshed books and Wi-Fi credentials removed: Loading at repeated page boundaries.
  • Fixed sectioned layout: zero blocking paints, slowest measured swipe 69 ms. The separate default-layout Home refresh regression passes.
  • Passing regression checks 64 compact-list swipes forward/backward, all 13 saved pages, no blocking paints/HTTP/Wi-Fi joins, and less than 250 ms per swipe including render (observed maximum 76 ms).
  • Host tests, workflow checks, feature matrix checks, simulator build, fresh overlay application, and existing Full refresh offline paging/open-book scenario pass. Full Xteink and release-tests CI required before merge.

Test scope: the full reverse traversal uses compact rows. The sectioned layout has a separate existing selection/viewport issue that can pull a reverse swipe forward again; this change checks its forward cached paging without changing selection behavior.

No release, tag, device access, cache reset or cache migration. Maintainer still needs to sideload a test build and confirm SD/e-ink paging on the reader before any release.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw

@Fledgewing
Fledgewing force-pushed the fix/x4-offline-scroll branch from c7104d5 to c1cc96f Compare November 27, 2026 02:33
Probe refreshed SD windows and exact replies through the catalog client before declaring a session-list cache miss. Cache probes explicitly forbid HTTP, even with Wi-Fi connected. Keep the bounded row window.

Add a 245-book offline simulator traversal with blocking-paint, request, swipe-count and 250 ms per-page checks; also cover the default sectioned layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BLYjLJzEkmBRpMx6vsJ4xw
@Fledgewing
Fledgewing force-pushed the fix/x4-offline-scroll branch from c1cc96f to bf250cc Compare November 27, 2026 02:34
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