Since #7542 the global chain list follows the proxy view's standalone
records, which are name-sorted, and the runtime config's proxies array is
only used as a membership filter. Walk that array in order instead so the
list matches the subscription order again.
Fixes#8381
* refactor(config): adopt tristr for config strings
Wire the tristr git dependency (pinned rev) and switch the config and
enhance modules from smartstring::alias::String to tristr::alias::String.
Drop the smartstring-era per-field specta overrides except the three
webdav fields required by serialize_with and the ipc::JsonValue bridge:
tristr maps to Primitive::str natively and the generated bindings stay
byte-identical (gen-contract --check passes).
Call sites in not-yet-migrated modules (cmd/core/feat/utils) are bridged
with explicit tristr::alias::String paths and as_str().into() conversions;
each bridge is absorbed when its module migrates.
* refactor(cmd): adopt tristr for command strings
Switch the cmd module from smartstring::alias::String to
tristr::alias::String and drop its smartstring-era per-field specta
overrides (ProfileSelection/ProfileCreate/ProfilePatch, RuntimeLogs);
bindings stay byte-identical. Calls into not-yet-migrated feat/core
functions keep smartstring-typed locals via full paths until those
modules migrate.
* refactor(core): adopt tristr for core strings
Switch the core module (validate, timer, sysopt, backup, hotkey, tray,
manager, notify) from smartstring::alias::String to tristr::alias::String
and drop the smartstring-era specta overrides on ValidationOutcome and
the notify payload structs; bindings stay byte-identical. WebDAV calls
from the not-yet-migrated feat module are bridged with as_str().into().
* refactor(feat): adopt tristr for feature strings
Switch the feat module (backup, icon, dns, profile, clash) from
smartstring::alias::String to tristr::alias::String, drop its
smartstring-era specta overrides (IconInfo, backup listings,
DnsOverrideOutcome), and absorb the temporary smartstring-typed bridge
locals the cmd module used to call into feat.
* refactor(utils): adopt tristr for utility strings
Switch utils/network.rs and utils/resolve/scheme.rs from
smartstring::alias::String to tristr::alias::String and absorb the
temporary user_agent and profile-name bridge conversions.
* refactor(deps): drop smartstring in favor of tristr
Remove the smartstring workspace and member dependencies and its
Cargo.lock entry; tristr is the only string representation left.
* build(deps): bump tristr to fuzz-harness fix rev
Pin 3738d8c renames the stale vstr path dependency in the upstream
fuzz manifest so its seven targets build again; library code is
unchanged from 3756ed1a.
Every menu API call runs on the main thread; invoked from a worker,
each call pays a blocking round-trip there and back (channel, event
loop hop, recv). Rebuilding the tray menu with proxy groups enabled
issued one round-trip per menu item — 200+ for a typical subscription —
and the per-call wait grows whenever the event loop is busy with
webview work.
Gather the async inputs (verge/clash/profiles snapshots, proxies and
runtime group order) on the caller's task, then build the menu and
attach it in a single run_on_main_thread closure where every item
constructs inline. Measured on a standalone tauri bench (5 groups x
40 nodes): a rebuild drops from ~6.2ms to ~1.6ms on an idle event
loop and from ~11.4ms to ~1.6ms with the loop busy (8ms of work per
16ms frame), with ~450 fewer allocations (~155KB) per rebuild.
* perf(connections): reduce snapshot and table allocation churn
Reuse unchanged connection lists, sort traffic columns without display snapshots, and suspend the relative-time clock while hidden. Keep rule rows indexed and release resize listeners on unmount.
* test(connections): limit coverage to changed behavior
Keep snapshot sharing, speed decay, bounded history, numeric sorting, and visibility regression guards. Remove unrelated clear-history and pending-delivery assertions.
* test(connections): focus clock regression on timer cost
Replace behavioral clock assertions with one resource-count check for shared, hidden, and released intervals.
* test(connections): retain only allocation and formatting guards
Reduce snapshot and table tests to reference reuse, notification suppression, and visible-row formatting cost.
* remove useless test
* no need changelog
* fix: mechanical string conversions
- &String parameters become &str (event payload fields borrow &str; wire format unchanged)
- Cow/std-string double conversions collapse to a single Into
- sha256 digests format through a shared hex lookup table instead of one
format! allocation per byte
- i18n placeholder replacement only allocates when the placeholder exists
* perf(enhance): marshal scripts by value and diff fields by fingerprint
- scripts cross into boa via JsValue::from_json/to_json instead of the
JSON text round-trip (config clone + json string + UTF-16 JsString +
stringify + re-parse all disappear); size guards use an allocation-free
approximate walk
- merge documents and tun/dns patches move values instead of deep-cloning
whole sub-trees per pass
- authoritative-field snapshots hash dns/hosts/tun values instead of
cloning them around every chain item (9 snapshots per enhance)
- proxy-name cleanup sets build from &str in one conversion
* perf(config): write yaml headers in place and record selections without copying
- save_yaml_str takes an optional header prefix written as separate chunks,
so the MB-scale serialized payload is never duplicated by format! just
to prepend a comment (profiles/verge/clash/runtime yaml all benefit;
file bytes unchanged)
- the runtime yaml string no longer round-trips through a prefixed copy;
write_runtime_file adds the header when persisting
- record/forget selected nodes mutate the stored selection list in place
instead of cloning it per click
* perf(tray): drop the redundant full rebuild in update_part
update_part rebuilt the menu twice back to back: once without proxy groups,
then a spawned full update_menu. Keep the partial rebuild only.
* chore(deps): update gh-aw extension version to v1.3.0
- Also bump the `with.version` value
Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
* chore(deps): updates agentic workflows to v1.3.0
- Recompiles the workflow lockfiles and updates pinned action and container image digests to align with the latest
agentic workflow tooling and firewall releases.
- Adopts automatic model routing, improved API quota and credit guardrail handling, and cleaner prompt initialization
to make automated PR reviews more cost-effective and resilient.
Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
---------
Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
* fix(service): detect the service on OpenRC
* chore(deps): bump Service IPC and bundle to 2.8.1
* docs(changelog): note OpenRC service fixes
* docs(changelog): shorten OpenRC fix entry
---------
Co-authored-by: Tunglies <77394545+Tunglies@users.noreply.github.com>
* chore(dev): reject mismatched Service and SDK versions
* chore(deps): consume Service 2.8.0 and merged sysproxy 0.7.2
* chore: omit changelog entry from Service integration
* fix(connections): prevent table header from wrapping when sorted
The sort indicator was rendered inline with the header label without
`white-space: nowrap`, so on narrow columns (e.g. "下载速度 ▲" needs ~66px
but the default 76px column only leaves 60px after padding) the arrow
wrapped onto a second line and made the header row taller.
- keep the header label and sort indicator on one line, truncating the
label with an ellipsis and never shrinking the indicator
- widen the default width of the traffic/speed columns from 76 to 96 so
labels plus the indicator fit by default in both zh and en
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(connections): keep right-aligned header labels anchored when sorted
For right-aligned columns the sort indicator appeared after the label,
so toggling sorting pushed the label left. Reserve the indicator's
space with a hidden placeholder on right-aligned columns so the label
stays put when sorting changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(changelog): update changelog
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: AirboZH <i@airbozh.cn>
Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
* fix(changelog): move summary to correct section
Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
---------
Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
* chore(perf): use the external measurement harness
Keep real Traffic, Logs and Connections scenes and the isolated native
entry beside product APIs. Invoke the standalone runner with an explicit
project path and remove bundled measurement orchestration.
Support the optional owned virtual display and read-only isolation
snapshots without changing ordinary product startup or networking.
* docs: scope agent guidance to the active task
Keep behavior and ownership guidance with the relevant task routes,
including the external performance adapter workflow. Preserve focused
self-review for routine changes and independent review where required.
* docs(perf): link the standalone harness repository
Link the harness repository and operating guide, and document first-time
checkout setup while preserving explicit paths for routine invocation.
* fix(perf): account for external harness dependencies in Knip
* chore(perf): keep tool dependencies and guidance outside the product
* docs(perf): keep product guidance focused on the adapter
The node row is a space-between flex row, but the name column had the
default min-width: auto and the name was not truncated. A long name with
no break opportunity (for example xxx@host:443) widened the column to the
full text, pushed the delay chip past the card edge and made the main
content area scroll horizontally on narrow windows.
Let the name column shrink, truncate the name with an ellipsis (the full
name is in the title tooltip), and keep the chip from shrinking.
Fixes#8589
Co-authored-by: toBerlinWay <toBerlinWay@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The window and webview backgrounds retain their startup colors when
the resolved theme changes. With Tauri's full-size content view,
these colors affect the native titlebar even after setTheme succeeds.
Synchronize both backgrounds through WebviewWindow.setBackgroundColor
on macOS, reuse the startup palette, and allow both background commands.
Wry commit 1d1b870 implemented macOS background colors through
WKWebView.underPageBackgroundColor. CVR adopted that behavior in
7d29c0c6 (#6318), making the fixed startup colors from 683667f8 (#5637)
effective on macOS.
Closes#8205Closes#7968Closes#8272Closes#8625
Upstream: https://github.com/tauri-apps/wry/commit/1d1b8707665b4638e040dde7a88cd33d77ba2ebc
Co-authored-by: qzda <qinzhidaoa@gmail.com>
Co-authored-by: Vickers Zhu <vickerszhu@163.com>
* feat(connections): add network protocol filter
Filter connections by metadata.network (All/TCP/UDP) in both table and
list layouts, combined with search, and kept across page switches like
the existing search state.
Refs #6140
* fix(connections): keep network filter labels in English
Remove the All Networks translation and use All alongside TCP and UDP.\n\nRefs #6140
* fix(connections): narrow network filter select
* chore(deps): update github/gh-aw-actions action to v1.2.2
* ci(workflows): recompile workflow lockfiles with gh-aw v1.2.2
Signed-off-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
* ci(workflows): set permissions to suppress tips
Agentic workflows of this repository are using available credits by some
collaborators' personal API Key. Configuring permissions of these
workflows to suppress warnings by GitHub Agentic Workflow extension
during lockfile compilation.
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>
* fix(proxy): show a profile-defined GLOBAL in rule mode when it is the only group
Rule mode renders only proxyView.groups, and the backend always moves
GLOBAL out of that list. A profile whose only group is GLOBAL, or that
has no proxy-groups, therefore showed the "no proxy info" empty state.
Fall back to GLOBAL in that case, as v2.5.2 did before #7542.
Fixes#8223
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(changelog): note the rule-mode GLOBAL fix
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore: drop the regression test and append the changelog entry
Per review: the test was only needed to confirm the fix locally, and new
changelog entries go at the end of their list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: toBerlinWay <toBerlinWay@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Route frontend and tray node selections through the same backend flow for
selection, persistence, state refresh, and connection cleanup. Read the
group's previous selection before switching and preserve the original
rule of closing only connections whose chains contain that selection.
Run optional cleanup in the background and keep its failures separate
from successful selection. Remove redundant frontend effects and unused
IPC commands, and refresh the proxy view for every successful switch.
Refs: 32095daf90
Refs: bea0dde074
delete_profile already forces a Core update with the planned profiles when
the current or last profile is removed, and restores state on rejection,
so the frontend enhance_profiles call repeated the same reload.