Home

dev / openkara

publicthedavidweng/OpenKara· sync paused
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(remote): bind publish to op.library_id and coalesce pending ops (#151)

2 months ago

3041eb1
Authored
Davy7/21/2026, 9:26:15 AM
Load the target RegisteredLibrary from operation.library_id before any file or
network work; never use the currently active library for mutation-driven
publish. Under the per-library commit lock, merge co-pending Publish ops into
one survivor: union song_ids, rebind expected_generation to committed, cancel
the rest — one CAS advances one generation with all assets.

project_outbox deletes from prepared.library_id working copy. Candidate freeze
fails closed if outbox sanitation fails. Startup drops residual outbox rows for
terminal operations when song_ids match instead of reopening them.

Parent416ab15

4 files changed
  • src-tauri/src/app_runtime.rs+21−0
  • src-tauri/src/remote/executor.rs+37−3
  • src-tauri/src/remote/mutation.rs+23−5
  • src-tauri/src/remote/sync/publish.rs+306−55