Commit Graph
2418 Commits
Author SHA1 Message Date
Tunglies fde796fdc3 chore: sync reviewed backend fixes into once-cell cleanup 2026-10-05 14:18:30 +08:00
Tunglies 7c9d59c59e fix(backend): preserve synchronization ownership and failure updates 2026-10-05 14:17:02 +08:00
Tunglies 54e245b63f chore: sync backend review fixes into contract flow 2026-10-05 14:15:06 +08:00
Tunglies 36a8950129 fix(backend): preserve applied state across later failures 2026-10-05 14:14:37 +08:00
Tunglies 18e19da21f chore: sync once cell cleanup with lock downgrade 2026-10-04 13:47:45 +08:00
Tunglies ce195cb7ec chore: sync lock downgrade with frontend contract flow 2026-10-04 13:45:59 +08:00
Tunglies 967c8157f2 chore: sync frontend contract flow with declarative effects 2026-10-04 13:45:02 +08:00
Tunglies 045fb42b4d chore: sync declarative effects with dev 2026-10-04 13:42:31 +08:00
renovate[bot]renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>❤是纱雾酱哟~
1575f134e0 chore(deps): update cargo dependencies (#7961)
* chore(deps): update cargo dependencies

* build(deps): revert rfd from 0.17.2 to 0.16.0

- This also prevents Mend Renovate from auto rebase

Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>

* fix(nsis): include missing Nullsoft headers

- Transitive macro named `RestartManager_StartSession` cannot be found
  during NSIS installer generation
- The macro comes from "RestartManager" plugin and should be explicitly
  included in the `installer.nsi` file

Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>

---------

Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
2026-10-03 17:09:08 +00:00
wonfen a9a3cfa3a7 fix(proxy): resolve provider members within each group's providers
Same-name nodes from different proxy-providers were marked ambiguous and
greyed out. Resolve each group member against the group's own providers
(use / include-all, exclude-type) and bind the n-th occurrence of a name to
the n-th candidate, matching Mihomo.

Closes #8021
2026-10-03 22:49:39 +08:00
renovate[bot]renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>❤是纱雾酱哟~
14770df157 chore(deps): update rust toolchain to v1.99.0 (#8147)
* chore(deps): update rust toolchain to v1.99.0

* fix(rust): handle breaking changes introduced by compiler

- Trailing semicolon in macro should not be used in expression position
- A deprecated method was renamed for consistency
  - Before: `std::sync::atomic::Atomic::<u64>::fetch_update`
  - After: `std::sync::atomic::Atomic::<u64>::try_update`

Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>

---------

Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
2026-10-03 12:31:08 +00:00
wonfen 57c5484080 fix(service): stop waiting on a service that no longer starts with Windows
When the service's start type was changed from automatic, startup waited
about two minutes for it before falling back to Sidecar. Detect this
immediately, skip the TUN readiness wait, and offer a reinstall that
restores automatic start.

Refs #8129
2026-10-03 20:40:51 +08:00
Tunglies bfe371733d chore: merge sync downgrade into once cell cleanup 2026-10-03 18:48:11 +08:00
Tunglies e8cffb285d chore: merge frontend contract flow into sync downgrade 2026-10-03 18:46:08 +08:00
Tunglies 4cca0baf6e chore: merge declarative effects into frontend contract flow 2026-10-03 18:44:55 +08:00
Tunglies d63eca30d1 chore: merge dev into declarative effects 2026-10-03 18:41:32 +08:00
wonfen 4a0882fc18 fix(singleton): repair Windows lock file permissions in place 2026-10-03 15:59:39 +08:00
wonfen d87bb7b6a3 fix(singleton): acknowledge window restoration before UI work
Dispatch blocking window restoration outside HTTP workers to prevent notification timeouts and repeated window activation in #8118. Remove the misleading failure log, update the changelog, and remove server tests as requested.
2026-10-03 10:56:41 +08:00
wonfen f958dccb25 fix(service): explain sidecar failures and clear recovered notices 2026-10-03 10:21:54 +08:00
Christine. 8c1fb3ac56 feat: set Tun.stack to mips (#8144) 2026-10-03 01:53:52 +00:00
Tunglies 3607e66bb3 perf(traffic): reuse canvas pixels while scrolling 2026-10-03 06:58:54 +08:00
wonfen ea509b8236 chore(deps): pin clash-verge-service-ipc to v2.7.6 2026-10-02 22:57:11 +08:00
Tunglies 014633fae0 chore: merge sync downgrade into once cell cleanup 2026-10-02 16:26:42 +08:00
Tunglies be872dff97 chore: merge frontend contract flow into sync downgrade 2026-10-02 16:24:39 +08:00
Tunglies 66dddc8622 chore: merge declarative effects into frontend contract flow 2026-10-02 16:24:07 +08:00
Tunglies b5d80df020 chore: merge dev into declarative effects 2026-10-02 16:20:25 +08:00
wonfen 52d616302c fix(service): explain a startup core rejection instead of the generic fallback
When the startup probe finds the service refusing the approved core, the
app falls back to Sidecar with only the generic "could not start the
core" notice. The reason and repair guide appeared only after a
reinstall, which cannot fix a writable volume root (#8045).

Carry the fallback reason to the window and show the same permission
notice as a rejected installation when the core was refused.

Refs #8045
2026-10-02 10:38:09 +08:00
Tunglies c8a8d2034c refactor(deps): replace once_cell with std OnceLock and LazyLock 2026-10-01 14:34:20 +08:00
Tunglies f17ccdc227 refactor(core): replace macOS network monitor slot with armed latch 2026-10-01 14:34:19 +08:00
Tunglies 92303ce60d refactor(port): store startup block reason in a OnceLock 2026-10-01 14:34:19 +08:00
Tunglies ecd60d317a refactor(service): drop redundant provider sync serial lock 2026-10-01 14:34:19 +08:00
Tunglies c2b6c0378e refactor(port): fold startup-core-blocked flag into reason slot 2026-10-01 14:34:19 +08:00
Tunglies adbe3ffec4 refactor(notify): fold sequence counter into entries lock 2026-10-01 14:34:19 +08:00
Tunglies a146d78b9f refactor(updater): drop write-only pending_* slots 2026-10-01 14:34:19 +08:00
Tunglies 5b53c32de1 refactor(notice): make the notice table exhaustive and drop dead wire entries
D5 cleanup, frontend and backend in one commit: removes the six
config_validate::* statuses that never receive a backend send and the
set_config::ok send (enum variants, golden list 41→34, send point in
restart_clash_core), their frontend handlers, and the five i18n keys only
those handlers used. The notice table is now typed as a Record over the
generated NoticeStatus union, so a status without a frontend entry fails
to compile. The info status (sent by the silent updater for breaking
change notices, previously dropped with a console warning) now shows an
info toast — the one deliberate behavior delta.
2026-10-01 14:34:17 +08:00
Tunglies 43cf001e68 feat(events): route all backend events through a single event bus and store
Adds src/services/bus (the only listen/emit site: one handler per contract
event plus the frontend-internal test-all event) and the React
context/reducer app store. Migrates the five scattered subscriptions
(layout events, pending failures, proxy refresh, profile update/timer,
test-all), deletes the old glue (events.ts, use-listen, use-layout-events,
LoadingCacheProvider), moves run state into the store, and adds an
architecture gate script wired into CI. Behavior is unchanged; the
run-state query's poll/focus safety net is preserved by the store
provider.
2026-10-01 14:34:17 +08:00
Tunglies 5bf0de0d0b feat(contract): export wire contract from backend and generate frontend types
Adds a zero-dependency `frontend-contract` bin that serializes the real
NoticeStatus variants and FrontendEvent payloads, scripts/gen-contract.mjs
which emits the committed src/services/contract.ts, and a CI job that
regenerates it and fails on a non-empty diff. events.ts now derives its
event map from the generated contract instead of hand-typed shapes.
2026-10-01 14:34:17 +08:00
Tunglies 96d68b057a chore(core): document watcher exit conditions 2026-10-01 14:34:16 +08:00
Tunglies 917d97f335 docs(backend): record dead wire contract entries 2026-10-01 14:34:16 +08:00
Tunglies 5364468ad4 test(feat): freeze representative effect registry mappings 2026-10-01 14:34:16 +08:00
Tunglies 079414253e refactor(core): complete bounded service retry migration 2026-10-01 14:34:16 +08:00
Tunglies 6de4df8c9f refactor(core): coalesce burst refresh announcements 2026-10-01 14:34:16 +08:00
Tunglies 86605f197d docs: add src-tauri architecture guardrails 2026-10-01 14:34:16 +08:00
Tunglies 5375ce360f refactor(utils): migrate remaining bounded retry loops 2026-10-01 14:34:16 +08:00
Tunglies 9d1b400299 refactor(core): fold tray, hotkey, autostart updates into effect ensures 2026-10-01 14:34:16 +08:00
Tunglies 7aed7be2f1 refactor(core): derive refresh announcements from transaction commit 2026-10-01 14:34:16 +08:00
Tunglies 438f6f7461 refactor(feat): declarative effect registry for verge and clash patches 2026-10-01 14:34:16 +08:00
Tunglies edcd76f27d refactor(utils): unified retry and strategy-list helpers 2026-10-01 14:34:16 +08:00
Tunglies 7eb24d8c69 refactor(core): type notice statuses behind the frozen wire contract 2026-10-01 14:34:16 +08:00
wonfen 8ddd99f226 chore: bump version v2.5.7 2026-09-30 22:07:17 +08:00