Skip to content

v0.2.0 — Traffic history, destination countries, crash-proofing

Choose a tag to compare

@ThinkCode ThinkCode released this 20 Oct 19:29
· 4 commits to main since this release

v0.2.0 — Traffic history, destination countries, crash-proofing

The Tier-0 "premium network" release: your Mac now keeps a real traffic ledger, and the app stops dying quietly.

Network tab: Traffic history

  • Per-app and per-destination byte accounting in SQLite — a rolling 14-day ledger of every app's traffic and a 7-day ledger of every remote host it talked to, bucketed per minute (apps) and per 5 minutes (destinations). Zero new permissions: the same nettop sample the app already takes now feeds the store. Hour / Day / Week range pills drive a live in/out chart, a "Top apps" bar list, and a "Top destinations" table; clicking an app filters destinations to that app. "Clear history" wipes both the live table and the new store.
  • Destination countries, offline. The free DB-IP Country Lite database (CC BY 4.0, credited in About → licenses) downloads once into the app-data folder and refreshes monthly — no account, no key, nothing sent anywhere. Private ranges show as local; until the database first arrives, chips show ? and everything else keeps working. Destinations first seen within the last 6 hours carry a NEW badge.
  • The AI briefing's network section now reads the traffic store — top apps and destinations over 24 h with countries and new-host counts are folded into the NETWORK & FIREWALL context, so the briefing can call out heavy talkers and surprising first contacts, not just the live snapshot.

Crash-proofing (the blank-window fix)

  • Error boundary + crash overlay. A render error used to unmount the entire React tree, leaving a blank window with no recourse but right-click → Reload. Now a crash shows a readable overlay with the stack trace and a Reload button, and writes the trace to frontend.log in the app-data folder (window.onerror and unhandled promise rejections are logged there too).
  • Telemetry watchdog. If the backend's 2-second tick goes silent for 20 s while the app is alive (the stalled-WebView case), the frontend reloads itself once — guarded against reload loops via sessionStorage, with a 45 s grace period at startup. No more knowing the trick.

Under the hood

  • nettop's per-flow counters are now parsed per (pid, flow) and folded per (pid, host) so parallel sockets to one destination are summed correctly; IPv6 host:port extraction fixed for nettop's addr.443 style.
  • Rust tests grew to 19 (traffic store round-trip + pid-reuse + live nettop parse); all passing.

SHA-256

a298c86081c974f438013fd8536df990fb4962902eb12591488f9cfce78afc68  System_Cockpit_0.2.0_aarch64.dmg
cff19c47d9f7d51b245483008421a58ce833d3e51bbdec726ad4f8cd36f644a1  System_Cockpit_0.2.0_x64.dmg

Both DMGs are notarized and stapled (Developer ID: BYTEXIO LLC, 5TN66T2V5U).