github ilyakruchinin/SomnoTrace v4.0.0-rc4

pre-releaseone hour ago

SomnoTrace v4.0.0-rc4

๐Ÿ› ๏ธ Fixes

  • โฐ Sessions no longer "lost" or shifted by ~1 hour. A single transient
    BLE timeout when fetching clock-drift metadata could bake a zero-drift
    correction into every session of the day (seen as therapy ending ~50 min
    early and the last session apparently missing). GET_DRIFT now retries
    with backoff, a day that can't get its drift evidence stays pending and
    is retried on later sync passes, and the importer defers the day
    instead of guessing zero drift. Explicit "no drift data" answers from
    the bridge still import immediately with honest zero drift.
  • ๐Ÿ“„ Late-night sessions now reach summaries and exported STR.edf.
    The AirSense machine rewrites the current day's STR.EDF in place
    without changing its file size or timestamp, so new sessions recorded
    after the last STR fetch were invisible. Any sync pass that pulls
    DATALOG files now forces a content-level STR recheck; the obligation is
    persisted across reboots and identical bytes are discarded without
    triggering an import pass. Native STR-derived daily summaries refresh
    via their own spool, keeping live recordings authoritative.
  • ๐Ÿ“Š Flow & pressure graphs work on v2 sessions. The session-graph
    endpoint now understands v2 split files (_flow, _flow_mm, _press)
    with v1 (_brp) fallback, decodes the pressure companion file, and
    reports an empty pressure array instead of fake zeros when none exists.
  • ๐Ÿ”‡ Quieter logs. Repeating "association unknown or conflicting"
    warnings for unchanged staged directories are now rate-limited to once
    per evidence change, and the per-session "drift is an estimate" warning
    is demoted to info level when zero drift is the expected outcome.

๐Ÿงช Verification

  • Host suite: 37 tests, 0 failures (edf_import_test +12 checks covering
    pending-drift deferral, settled-placeholder import, and STR regrowth
    dedup; sb_ble_test covers the retry policy).
  • Firmware: somnotrace.bin 0x33c610 โ€” 19% app partition free.

Don't miss a new SomnoTrace release

NewReleases is sending notifications on new releases.