fix(sync): refine heartbeat logic and silence non-native warnings

- Silenced 'Heartbeat skipped' warnings when not running in native Electron mode.\n- Hardened device ID retrieval using String-Only ID prioritization logic.\n- Improved reliability of background sync cycles during session transitions.
This commit is contained in:
Scott Idem
2026-02-10 18:04:19 -05:00
parent 1ab13eaf96
commit cf18257fb4

View File

@@ -22,10 +22,10 @@
// Loop Timings (Visible in UI)
let loop_info = $state({
event: 90000,
event: 120000,
device: 60000,
location: 30000,
session: 10000
location: 90000,
session: 45000
});
// Timer Handles
@@ -212,7 +212,8 @@
dev?.id_random;
if (!device_id) {
if (log_lvl)
// Only log warning if we are actually supposed to be in native mode
if (log_lvl && $ae_loc.is_native)
console.warn(
'Sync: Heartbeat skipped, no device_id found in $ae_loc.native_device.'
);