Skip to content

updated recan to handle a settingsChanged record as the initial record safely - #14

Merged
byubean merged 1 commit into
mainfrom
safely-handle-settings-changes
Nov 4, 2026
Merged

byubean merged 1 commit into
mainfrom
safely-handle-settings-changes

Conversation

@tyler-bartschi

Copy link
Copy Markdown
Contributor

Fix initial snapshot detection when settings, file-switch, or focus events precede the first document snapshot.

Previously, recan required the initial snapshot to be the first record. Leading metadata could cause clean recordings to receive false recovery, incomplete-analysis, and starter-code mismatch warnings. Empty initial snapshots could also be dropped.

Snapshot detection now tracks prior document events instead of record position. Genuine interruptions and recoveries retain their existing behavior, including original event indices in diagnostics. Settings events remain safely ignored by reports and playback.

  • Add regression coverage for leading metadata, empty snapshots, starter-code matching, matcher consistency, and report output.
  • Bump recan to 0.2.26 and update the changelog.
  • Validation: 148 tests passed, 1 skipped; whitespace checks passed.

@byubean
byubean merged commit 17b3c8d into main Nov 4, 2026
1 check passed
@byubean
byubean deleted the safely-handle-settings-changes branch November 4, 2026 21:18
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.

2 participants