The sidecar's version filter duplicated what Update::verify already
enforces: the plugin's signature binds the release version, so bytes
cached from an earlier offer fail verification for the current one.
Dropping it costs one full-bin read per release transition and leaves
the cache as a single file published by one rename.
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.
* perf(core): remove redundant copies on service IPC paths
Allocation and copy trims on the service IPC hot paths; the wire format
is untouched:
- store the owner session proof as Arc: active_service_session()
retrieval becomes a refcount clone instead of a 64-char string copy
per call (~12 call sites, including the frontend-polled log path).
The one external caller takes Proof: Borrow<OwnerSessionProof> so its
four test closures stay unchanged.
- build the session token hex with one allocation instead of 32
format! allocations plus Vec growth (35 -> 1 allocations measured),
mirroring owner_identity::encode_token.
- reuse one RuntimeFileRequest across the provider cache-sync chunk
loop; only .offset changes per chunk.
- move the proposed session token out of StartClashRequest on success
instead of cloning it up-front.
- report the non-actionable service status by reference before
set_status takes ownership.
- hoist the macOS install markers to LazyLock, pass osascript args as
an array, compare the install-wait core name via the requirement
array, and log the silent-updater version by reference.
* fix(core): gate the LazyLock import to macOS
The install-marker static is the only LazyLock user in the module and
is macOS-gated; the ungated import made clippy -D warnings fail the
Linux and Windows builds. Co-locate the import with its cfg.