Skip to content

fix: refresh stale thumbnails when context changes#522

Merged
everpcpc merged 2 commits intomainfrom
codex/with-subtitle-kej
Feb 20, 2026
Merged

fix: refresh stale thumbnails when context changes#522
everpcpc merged 2 commits intomainfrom
codex/with-subtitle-kej

Conversation

@everpcpc
Copy link
Copy Markdown
Owner

Summary

  • fix stale thumbnail reuse in ThumbnailImage by keying load tasks with id and thumbnail type
  • clear stale page preview image state in PageJumpSheetView when bookId/page context changes
  • reset PdfPageJumpSheetView document and thumbnail cache when source documentURL changes, and key thumbnail tasks with document identity

Testing

  • make build

everpcpc and others added 2 commits February 20, 2026 09:46
Ensure thumbnail loading tasks are keyed by resource identity so SwiftUI view reuse does not retain stale images when switching entities.

Also clear stale preview state in page jump views and reset PDF jump sheet caches when source document changes.

Validation: make build (iOS, macOS, tvOS).
@everpcpc everpcpc merged commit fabef87 into main Feb 20, 2026
3 checks passed
@everpcpc everpcpc deleted the codex/with-subtitle-kej branch February 20, 2026 01:55
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