* chore(clippy): scope crate lint policy
Keep panic-on-error lints at application target roots and scope signal dependencies to Linux.
* docs(agents): define Rust backend architecture boundaries
Document which layer owns Rust capabilities, fallible inputs, background work, and crate validation.
* refactor(draft): type async publication conflicts
Return typed conflicts for async Draft edits. Release the lock and edit permit before converting the error, and exercise overlapping updates.
* refactor(logging): use typed logger errors
Expose crate-owned logger errors and preserve the underlying error sources.
* refactor(subscription): extract response decoding
Keep HTTP and persistence in the app. Decode response metadata and framing in the crate, and fall back when the server filename is invalid.
* refactor(profile): extract profile models and index rules
Move profile models and index rules into the crate, preserving serialization and returning a typed missing-profile error.
* refactor(profile): separate subscription refresh and scheduling policy
Separate download and scheduling policy from the subscription use case while retaining the existing write path.
* refactor(subscription): decode deep links in the subscription crate
* refactor(profile): extract selected node recovery rules
* docs(agents): define dependencies between capability crates
* refactor(task): move retry primitives into the task crate
* refactor(backup): extract backup ZIP writing
* refactor(subscription): keep profile writes outside proxy fallback
* fix(profile): preserve delays for future update timestamps
* fix(subscription): preserve filenames from response headers and URL paths
* fix(subscription): separate deep link parameters from nested URLs
* refactor(profile): look up the refresh target once
* refactor(subscription): pass the proxy directly to each download
* refactor(profile): build companion options in one place
* refactor(profile): remove companions from the deleted profile
* style(profile): keep profile fields together
* refactor(profile): name index operations after what they change
* refactor(profile): call the core reload directly
* refactor(backup): move archive validation to the restore change
* 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>
Prefer a supported saved language over the cache and browser locale.
Align frontend alias resolution with Rust and ignore unsupported saved
values when the layout mounts so they cannot overwrite the fallback.
In Rust, walk borrowed prefixes instead of rebuilding strings. This
preserves locale resolution and removes quadratic work on long tags.
Across all 14 shipped locale IDs (equally weighted),
median lookup time fell from 40.0 to 22.4 ns and heap allocations fell
from 4 to 2 per lookup. A synthetic 64 KiB tag fell from 771 ms to 240 µs.
A caller could sample the clock at 1000 ms and pause while another
caller was admitted at 2000 ms. On resuming, the first caller could
load the newer last_run_ms, mistake its stale sample for a clock
rollback, and replace 2000 with 1000. This reopened the 100 ms period
and let another check at 2000 ms pass. Load last_run_ms before sampling
the clock so the stale caller's compare-exchange fails if a newer
admission has changed that value. Preserve sequential clock rollback
behavior and the existing atomic orderings.
The period check also added the period to last_run_ms. A last admission
at u64::MAX - 55 with a 56 ms period overflowed on the next check:
debug builds panicked and release builds wrapped the deadline to zero,
admitting a duplicate timestamp. Compare elapsed time against the
period only after confirming the clock has not moved backward, which
makes the subtraction safe and preserves the exact period boundary.
Enable the stale-sample and overflow regressions, keep the saved
Proptest seed, and add Loom coverage for advancing time and multiple
stale callers plus a deterministic test at u64::MAX.