codeburn/windows/src-tauri/src
iamtoruk c79a25715c fix(windows): tray telemetry off the UI thread, bounded, and Linux-clean
- The non-Windows random fill read /dev/urandom with fs::read, which
  never returns on a character device, and had a borrow error beside it
  that failed clippy on the ubuntu leg. It opens the device and reads
  exactly sixteen bytes, keeping the fallback; the reader is compiled
  for tests on Windows too, and the Linux target was checked from an
  extracted copy with clippy against x86_64-unknown-linux-gnu.
- The telemetry commands were synchronous and every tracked event
  rewrote the whole queue file. They are async now and the save is
  debounced by two seconds, with a save before each flush and on quit.
- The queue is capped by bytes as well as count, drops events older
  than seven days on load, backs off exponentially with jitter from
  five to thirty minutes while the endpoint fails, and keeps an
  in-flight batch in the file until it lands so app_close can no
  longer overwrite it.
- One reqwest client for the process, a 0600 queue temp file on Unix,
  the hidden window station warning in the release log, and
  open_terminal_command limited to a named read-only subcommand.
2026-09-03 03:06:12 -07:00
..
autostart.rs windows: fix the security and correctness findings from the import audit 2026-08-18 04:10:07 -07:00
cli.rs fix(windows): tray telemetry off the UI thread, bounded, and Linux-clean 2026-09-03 03:06:12 -07:00
config.rs feat(windows): a settings window, with General, About and provider panes 2026-09-01 19:49:37 -07:00
dock.rs feat(windows): consent-gated telemetry from the tray app and the Capacity Dock 2026-09-03 01:18:23 -07:00
fx.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
glance.rs feat(windows): cache the Capacity Dock's glance data in Rust 2026-09-02 08:16:48 -07:00
lib.rs fix(windows): tray telemetry off the UI thread, bounded, and Linux-clean 2026-09-03 03:06:12 -07:00
main.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
plan.rs windows: fix the security and correctness findings from the import audit 2026-08-18 04:10:07 -07:00
refresh.rs fix(windows): private key files, a real log, and a clean uninstall 2026-09-02 15:16:06 -07:00
session.rs fix(windows): private key files, a real log, and a clean uninstall 2026-09-02 15:16:06 -07:00
settings.rs fix(windows): private key files, a real log, and a clean uninstall 2026-09-02 15:16:06 -07:00
telemetry.rs fix(windows): tray telemetry off the UI thread, bounded, and Linux-clean 2026-09-03 03:06:12 -07:00
tray_badge.rs feat(windows): the tray says when a paired device did not report 2026-09-02 01:39:10 -07:00
tray_linux.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
tray_status.rs fix(windows): private key files, a real log, and a clean uninstall 2026-09-02 15:16:06 -07:00
update.rs feat(windows): report updates and point at GitHub instead of installing them 2026-09-02 23:09:36 -07:00
usage_guard.rs chore(windows): remove what nothing reads 2026-09-02 00:23:16 -07:00