Skip to content

Fix sync failing with "Unknown record kind: library" - #291

Merged
broisnees merged 1 commit into
nightlyfrom
fix-sync-kinds
Nov 18, 2026
Merged

broisnees merged 1 commit into
nightlyfrom
fix-sync-kinds

Conversation

@broisnees

Copy link
Copy Markdown
Collaborator

Sync failed on every OS once a saved query or library item existed: the JS engine and stroke-web accept query and library, but KINDS in src-tauri/src/sync.rs still listed three kinds, so encrypt_plain refused the push.

  • KINDS now lists all five.
  • New vitest keeps the Rust list equal to KINDS in engine.js.
  • Rust sync tests: 7 passed.

The sync engine and the server both know five record kinds, but the Rust
encryption step still listed three, so the first saved query or library item
failed every push with "Unknown record kind". List all five, and add a test
that keeps the JS and Rust lists the same.
@broisnees
broisnees merged commit b62b54d into nightly Nov 18, 2026
1 check passed
@broisnees
broisnees deleted the fix-sync-kinds branch November 18, 2026 06:33
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 18, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant