* chore(deps): update tauri
* fix(installer): align NSIS locale variables with Tauri 2.13
* chore(tray): migrate template icons to Tauri 2.13 APIs
* fix(core): resolve the bundled core for validation fingerprints
* fix(deps): resolve Tauri 2.13 with the patched WebDriver
* fix(tray): wake the main window from Linux tray clicks
Use StatusNotifierItem activation to wake the dashboard, including lightweight mode.
Closes#8517
* fix(tray): gate template icon handling to macOS at compile time
* fix(deps): select GTK3 for Linux dialogs
* fix(linux): return when the startup dialog cannot initialize GTK
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tunglies <77394545+Tunglies@users.noreply.github.com>
* docs(backend): define background task ownership
* refactor(backend): give background operations single task owners
* test(backend): remove actor migration regression cases
* docs(changelog): drop backend actor migration entry
* refactor(backend): extract workspace task drivers
* fix(timer): omit profile identifier from panic log
* docs(backend): define workspace crate boundaries
* refactor(lightweight): use the task countdown driver
* refactor(lightweight): name countdown callbacks
* refactor(task): simplify driver startup and coalescing requests
* refactor(core): bind service handoff to the sidecar generation
* refactor(tun): coalesce background run state reconciliation
* refactor(core): own sidecar exit resources in one session
* refactor(core): remove automatic Windows service handoff
* refactor(task): simplify coalescing job signals
* refactor(runstate): keep operation status with service state
* refactor(dns): coalesce background override synchronization
* refactor(sysproxy): own the local guard under its operation lock
* fix(tray): read menu settings at publication
* fix(dns): retain script lock across caller cancellation
* refactor(profiles): own selected node restoration in one task
* refactor(timer): own subscription schedules in the scheduler
* test(timer): remove the added application test
* fix(service): renew provider sync retry budget on refresh
* perf(traffic): shorten sidebar graph animation
* refactor(service)!: remove the development service channel workflow
Delete the verge-dev/dev-sidecar features, the dev.mjs script family,
and the CLASH_VERGE_DEV_SERVICE_DIR staging chain. Debug builds keep
the isolated .dev application data directory and dev sidecar IPC names
through #[cfg(debug_assertions)] instead of the removed feature.
Point clash_verge_service_ipc at tag v2.8.2.
* chore(service): track the development-channel removal draft
Point clash_verge_service_ipc at the removal branch while its PR is
open; flip to tag v2.8.2 once the service side merges.
* chore(service): track the released service 2.8.2
The removal branch merged as clash-verge-rev/clash-verge-service-ipc#105
(with the digest opt-in from clash-verge-rev/clash-verge-service-ipc#106
and the 2.8.2 release bump on top), so track the service repository's
main directly instead of the draft branch.
* perf(enhance): move tun mapping and alpn strings instead of cloning
enforce_tun deep-cloned the tun mapping two lines before overwriting
it; take_mapping now moves it instead (end state identical for absent,
non-mapping and mapping values, including key order). builtin_hy_alpn
cloned each hysteria node's alpn String only to dodge a borrow conflict
while re-inserting under the same key; take it in place via get_mut +
mem::take. The in-place guard preserves non-string alpn values that a
remove-based shape would silently drop.
Measured per enhance run on 200 hysteria nodes: hy_alpn 600 -> 200
allocations; enforce_tun 29 -> 3.
* perf(tray): hoist tooltip version string
update_tooltip re-derived the version string from CARGO_PKG_VERSION on
every tray refresh; compute it once in a LazyLock. std::string::String
is spelled out because bare String in this module resolves to the
tristr alias.
* refactor(cmd): take sidecar fallback as AsyncFnOnce(&str)
finish_service_installation's FnOnce(String) -> FallbackFuture bound
forced reason.clone() before the call. AsyncFnOnce(&str) borrows the
reason and moves it into the Sidecar outcome - one allocation instead
of two - and drops the FallbackFuture generic entirely. The
windows-only call site's closure shape is verified with standalone
rustc (edition 2024) repros; Windows CI compiles it definitively.
* refactor(tray): store the tooltip version as a static str
The only consumer reads the value as a str, so the String static
allocated even when the version carries no build metadata. Return the
env! literal directly in that case and leak the trimmed form otherwise;
the LazyLock already owns the value for the process lifetime.
* chore(enhance): drop comment on the alpn take
* perf(feat): share runtime mappings across port-save probes via Arc
Every proxy-port save deep-copied the full runtime Mapping twice (current
and candidate) so the rare post-restart re-probe could retain ownership.
Wrap both in Arc once: the first probe takes refcount clones, the re-probe
moves the same Arcs. Probe inputs are identical mappings and the
spawn_blocking Send + 'static bounds are unchanged.
Measured on a representative 200-proxy/30-group runtime config: one
Mapping clone costs 10,053 allocations / 1.02 MiB; the Arc handoff costs
0 / 0. Both copies per save are gone.
* perf(config): borrow through selected-node persistence closures
record_selected_node and persist_reconciled_selected copied the group,
node and profile strings up-front for the persist_selected_update
closure, including on the no-change early-return path. The closure bound
is FnOnce + Send without 'static (the same shape forget_selected_node
already relies on), so capture &str and &[PrfSelected] borrows instead
and construct owned strings only at the storage points. as_deref
comparisons keep content semantics.
* chore(feat): drop a narration comment on the Arc handoff
* 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.