Skip to content

Keep paired Settings summaries in Client request order - #358

Merged
bliatun-code merged 1 commit into
mainfrom
codex/settings-summary-publication
Dec 1, 2026
Merged

bliatun-code merged 1 commit into
mainfrom
codex/settings-summary-publication

Conversation

@bliatun-code

Copy link
Copy Markdown
Owner

Settings summary consistency

A paired Client can receive a Host summary and then find that another view has already saved a newer one. Settings previously compared Host timestamps during its final read. Two replies in one second or a Host clock adjustment could leave older counts on screen.

Carry the existing Client request number through SQLite and desktop IPC. Settings now checks the saved request within its target-scoped metadata read on page load, manual refresh and successful Host validation. A newer publication triggers a summary read. Offline fallback and timestamp comparison for older snapshots remain available.

Verification

  • npm run verify
  • Settings tests cover equal timestamps, a clock moving backwards, a later timestamp on an older request, and a different library.
  • SQLite coverage uses unreadable cache payloads to check when the summary is read and that a previous target generation skips it.

@bliatun-code
bliatun-code merged commit 5e2ac33 into main Dec 1, 2026
10 checks passed
@bliatun-code
bliatun-code deleted the codex/settings-summary-publication branch December 1, 2026 22:50
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