π©Ί 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
IMPORTare 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,
SADfile names, splitBRP/PLDstart 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.