Skip to content

fix: preserve UTF-8 calendar snippets during sync and repair - #619

Merged
wesm merged 3 commits into
kenn-io:mainfrom
danshapiro:fix/calsync-utf8-snippet
Aug 14, 2026
Merged

fix: preserve UTF-8 calendar snippets during sync and repair#619
wesm merged 3 commits into
kenn-io:mainfrom
danshapiro:fix/calsync-utf8-snippet

Conversation

@danshapiro

Copy link
Copy Markdown
Contributor

Calendar sync currently caps previews by slicing the first 200 bytes. When byte 200 falls inside a multi-byte character, the stored snippet is invalid UTF-8 and can make analytics cache reads fail.

This keeps the existing 200-byte calendar preview limit while backing up to a valid character boundary. It also extends the existing repair-encoding path to faithfully regenerate only the exact historical damage signature: an invalid 200-byte calendar snippet that is a byte-for-byte prefix of a present, valid canonical body. Other invalid snippets retain the existing generic encoding repair, and valid snippets are left untouched.

The repair command's existing full cache rebuild republishes corrected previews, so no cache schema or publication changes are needed.

@roborev-ci

roborev-ci Bot commented Aug 14, 2026

Copy link
Copy Markdown

roborev: Combined Review (02b68ed)

Code is clean at the requested severity threshold; no Medium, High, or Critical findings were reported.


Reviewers: 2 done | Synthesis: codex, 10s | Total: 3m14s

@roborev-ci

roborev-ci Bot commented Aug 14, 2026

Copy link
Copy Markdown

roborev: Combined Review (392f7f6)

No issues found.


Reviewers: 2 done | Synthesis: codex | Total: 3m25s

@wesm
wesm merged commit 41da5e0 into kenn-io:main Aug 14, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants