Skip to content

Bind persisted review answers to current content - #3

Merged
RaycarlLei merged 1 commit into
mainfrom
fix/persisted-review-content
Sep 8, 2026
Merged

RaycarlLei merged 1 commit into
mainfrom
fix/persisted-review-content

Conversation

@RaycarlLei

Copy link
Copy Markdown
Owner

An import could change a word's meaning while an older question remained visible, allowing that old answer to advance the updated content. Session restoration could also treat a transient database failure as an invalid session and permanently retire the round.

Bind saved questions to their displayed content and frozen choices, then verify the request and current content in the answer transaction. Schema v4 adds a nullable fingerprint: legacy question snapshots are regenerated while earned progress and session positions are retained. Content conflicts trigger preparation of the current question; storage failures retain the existing Retry path. Limit invalid-session retirement to decoding failures.

Regression tests use real SQLite files and close/reopen cycles, schema migration, a held candidate load across import, injected read/write failures and a SQLite abort trigger. Widget tests exercise content refresh and recovery after another preparation failure. Duplicate submissions retain the existing already-handled behavior, including after a later import.

This prepares development version 0.1.3+4. Verification covers host-level transaction and UI behavior; physical-device audio, power-loss durability and store signing remain outside these checks.

@RaycarlLei
RaycarlLei merged commit 6df396a into main Sep 8, 2026
2 checks passed
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