Files
clash-verge-rev/src-tauri
Tunglies 9319a4894a fix(updater): keep the actor recoverable and the discard durable
Three failure-semantics gaps in the actor refactor:

- The blocking cache writer published the cache inside a task that a
  preemption detaches, so a discard could delete the cache, ack the
  config-write holder, and still leave a published cache behind it.
  The rename and metadata write now run on the actor after the
  blocking write's await, so only a surviving future can publish.
- The discard ack awaited a bulk unlink while the executor held the
  config write lock. The cache is now invalidated by an O(1) rename
  and unlinked detached.
- A panic in the actor ended all updating for the rest of the
  process; the global panic hook logs it, but nothing recovered. The
  loop now runs catch_unwind epochs, restarting with the mailbox and
  the daily check backed off.
2026-11-27 16:21:01 +08:00
..
2025-02-27 03:18:23 +08:00
2024-06-20 13:50:28 +08:00