TauriTavern/src-tauri
hein e156d6a90f fix: prevent data loss when saving with stale cursor from mode switch
When switching between full and windowed chat loading modes, the cursor
signature check (size + modified_millis) passes because the file hasn't
changed, but cursor.offset points to the wrong position. This causes
set_len(cursor.offset) to silently truncate messages.

Add verify_window_line_consistency() that counts lines in the window
region on disk and rejects saves where the written line count diverges
significantly from the existing window. This catches both directions:
- Full->Windowed: cursor.offset near header, writing only tail messages
- Windowed->Full: cursor.offset near EOF, writing all messages

Relates to #87

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-11 14:02:40 +08:00
..
bundle/linux Potential fix for pull request finding 2026-06-03 09:27:49 -04:00
capabilities fix (capabilities): add notify & dialog message capabilities 2026-04-20 23:02:01 -04:00
gen chore (version): bump version to 2.1.0 2026-05-31 18:21:07 +08:00
icons fix (icons): icons must be RGBA fromat 2026-04-11 23:56:34 -04:00
resources/tokenizers chore (Resource Compression): Compress embedded tokenizer resources to optimize application size. 2026-04-10 22:15:02 -04:00
src fix: prevent data loss when saving with stale cursor from mode switch 2026-06-11 14:02:40 +08:00
.gitignore Initial backend refactor to Rust with Clean Architecture 2025-05-09 18:00:59 +08:00
build.rs feat (iOS policy): Implement iOS policy tiering strategy 2026-04-15 21:39:01 -04:00
Cargo.lock chore (version): bump version to 2.1.0 2026-05-31 18:21:07 +08:00
Cargo.toml chore (version): bump version to 2.1.0 2026-05-31 18:21:07 +08:00
Info.ios.plist fix (iOS): Add iOS Local Network permission description for LAN Sync 2026-04-21 21:11:31 -04:00
tauri.conf.json fix(linux): improve desktop package metadata and media deps 2026-06-03 20:59:41 +08:00