Tunglies
a85640a571
perf(backend): trim redundant copies on service IPC paths ( #8720 )
...
* 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.
2026-11-23 09:11:58 +00:00
Tunglies
2b7b7cc0e7
fix(updater): refresh changed update offers before installation
2026-11-03 18:57:05 +08:00
Tunglies
6e08a77a84
refactor(backend): specta ipc bindings ( #8195 )
...
* refactor(ipc): generate bindings with Specta
* fix(profile): project IPC inputs to consumed fields
* fix(events): remove unused refresh payloads
* fix(webdav): return only consumed backup metadata
* fix(network): trim unused interface metadata
* fix(sysinfo): return only displayed system fields
* chore(knip): check generated runtime exports
* fix(proxy): confirm runtime chain updates before UI changes
* fix(clipboard): propagate proxy environment copy failures
* refactor(dns): remove ignored runtime patch
* refactor(core): trim unused upgrade response fields
* refactor(ipc): avoid redundant response copies
* refactor(proxy): clarify automatic proxy query naming
* chore(tests): remove added IPC regression tests
* refactor(ipc): enforce typed command boundaries
* chore(contract): check generated bindings before push
* refactor(ipc): remove unused proxy liveness payloads
2026-10-12 06:16:05 +00:00
Tunglies
8328e34208
refactor(backend): declarative effects ( #8128 )
...
* refactor(core): type notice statuses behind the frozen wire contract
* refactor(utils): unified retry and strategy-list helpers
* refactor(feat): declarative effect registry for verge and clash patches
* refactor(core): derive refresh announcements from transaction commit
* refactor(core): fold tray, hotkey, autostart updates into effect ensures
* refactor(utils): migrate remaining bounded retry loops
* docs: add src-tauri architecture guardrails
* refactor(core): coalesce burst refresh announcements
* refactor(core): complete bounded service retry migration
* ci(backend): add architecture ban gates
* test(feat): freeze representative effect registry mappings
* docs(backend): record dead wire contract entries
* chore(core): document watcher exit conditions
* fix(backend): preserve applied state across later failures
* fix(config): retain runtime after an applied core replacement
* refactor(backend): flatten refresh publication and retry policies
* docs(backend): focus guardrails on architecture ownership
* refactor(effects): use one execution order
* fix(config): publish retained runtime and reconcile proxy settings
2026-10-07 07:38:55 +00:00
❤是纱雾酱哟~
78691ea5c8
fix(updater): clear cache when auto-check is disabled ( #8091 )
...
Assisted-by: wonfen
2026-10-07 13:16:34 +08:00
wonfen
dba0f471bf
fix(updater): retry slow update downloads from other sources and honour cancel
2026-10-06 14:21:09 +08:00
wonfen
c341b9b238
fix(updater): install the already downloaded update instead of fetching it again
2026-10-06 14:21:09 +08:00
Tunglies
8982525fd2
fix(updater): detect stable releases from build metadata versions
2026-09-21 19:11:30 +08:00
Tunglies
b469bee352
fix(logging): include paths in file failure logs
2026-09-21 15:57:31 +08:00
Tunglies
dd7b032cb1
refactor: retire application portable mode
2026-09-06 20:53:36 +08:00
wonfen
e15ddab542
test: trim redundant test coverage
2026-08-19 10:24:37 +08:00
wonfen
807f9a206d
chore: trim excessive comments
2026-08-19 07:27:43 +08:00
AnnAngela and Copilot Autofix powered by AI
df66d976a5
feat(updater): skip installer language prompt during auto-update ( #7572 )
...
* feat(updater): skip installer language prompt during auto-update
* fix: Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-07-26 02:02:02 +08:00
a4c537541e
chore(deps): update rust crate rust-i18n to v4 ( #6784 )
...
* chore(deps): update rust crate rust-i18n to v4
* fix: migrate rust-i18n to v4 with Cow-first zero-copy approach
- Adapt to v4 breaking changes: available_locales!() returns Vec<Cow<'static, str>>
- Cache locales in LazyLock<Vec<Cow<'static, str>>> to avoid repeated Vec alloc + sort
- Propagate Cow<'static, str> through resolve/current/system_language APIs
- Fix t! macro args branch: into_owned() + Cow::Owned for type correctness
- Eliminate double resolve in sync_locale (skip redundant set_locale indirection)
- Replace .to_string() with .into_owned() / Cow passthrough in updater.rs
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tunglies <77394545+Tunglies@users.noreply.github.com >
2026-04-12 11:11:16 +00:00
wonfen
51578c03b0
fix: URL test url
2026-04-03 12:13:04 +08:00
wonfen
b7ae5f0ac9
fix: handle edge cases and add missing i18n
2026-04-03 06:26:24 +08:00
wonfen
05fba11baa
feat: auto-download updates in background and install on next launch
...
(cherry picked from commit 2f7c1b85f25e80b86233798a75e133b72a8101bb)
2026-04-03 05:54:18 +08:00