github ilyakruchinin/SomnoTrace v4.0.6

2 hours ago

🩺 SomnoTrace v4.0.6

A reliability release: tonight's sleep data will no longer get stuck at the door. πŸšͺ😴

πŸ› Fixed: Nights that silently failed to import

Some mornings, a whole night of data could sit untouched on the SD card instead of showing up. The cause was an edge case in how SomnoTrace matches therapy events with their waveform files. (The same thing had already happened on an earlier night, but it only hit a short, empty session that day, so nobody noticed.)

  • πŸ›‘ Aborted starts: sometimes the machine records an empty "false start" (an aborted therapy start with no events or waveforms) a few seconds before the real session. SomnoTrace saw two competing candidates for the same waveform and refused to import either one. It now recognises the empty stub, imports it separately, and gives the waveform to the real session. 🎯
  • ⏱️ Back-to-back sessions: two sessions starting less than a minute apart could tie each other in knots in the same way. This is now resolved. πŸ§Άβž‘οΈβœ…
  • πŸ—‚οΈ File grouping: when two sessions started about 2 seconds apart, one could grab the other's event file. Files now go to the session whose timestamp they exactly match first. A looser Β±2 s match is only a fallback.
  • ♻️ Stuck nights retry on their own: sessions already stranded in IMPORT are re-evaluated automatically after you update, with no manual cleanup needed. 🧹✨

πŸ›‘οΈ Safety first

  • πŸ‘΄ AirSense 10 is still supported: the fixes were written to keep AS10 quirks working (1–2 s timestamp skew, SAD file names, split BRP/PLD start times), with new tests covering them. πŸ§ͺ
  • πŸ”’ The safety checks that stop a late waveform being attached to the wrong session are unchanged. Only provably empty stubs are treated differently.

🎯 Time-drift accuracy

  • πŸ“ When a night's clock-drift value is borrowed from the previous session, the uncertainty now shrinks to what was actually measured plus a small age allowance. Before, it was a rounder, larger number. It works together with the improved SomnoBridge drift measurement (v1.0.0-rc5). πŸŒ‰β°

πŸ§ͺ Under the hood

  • βœ… Added regression tests covering aborted stubs, double stubs, staggered file arrival, AS10 split files, back-to-back sessions and the state-marker upgrade.

Don't miss a new SomnoTrace release

NewReleases is sending notifications on new releases.