Build after an independent review (Kimi K3 + GPT-5.6 Sol) of the delta vs OnionUI/Onion 07505ea5. Only the confirmed findings A–G were patched.
Fixes
- A — CI:
file_readon an empty file returns"".test/test_file_security.cnow matches that contract (the suite previously contradicted itself andmake unit-testfailed). - B — Flip: in
suspend_exec, a lid already closed on entry no longer forcesdeepsleep()when the timeout expires. Wake-on-lid-open is unchanged. (Needs a real Mini Flip.) EDIT: Thanks to @alvin-000 that tested it. - C — Detection:
runtime.shprobes AXP first (354Mini+), then thehall-mh248sysfs node (285Flip)./dev/input/event1is no longer used as a Flip signal. - D — OTA beta: no fallback to
releases[0]. The beta channel installs only GitHub prereleases. If none exist, it reports “no update” instead of a stable zip. This release isprerelease: falseandlatest, so tonight pre-007 firmware sees the same zip on beta and stable. - E — Backlight:
display_setBrightnessRawalways writespwm0/duty_cycle(no per-process cache that can ignore keymon’s0from another process). - F — infoPanel: the scaled-image cache is no longer keyed on
SDL_Surface*identity (recycled heap address → wrong image). Key is source/target size plus a pixel checksum. - G — Theme:
promptandinfoPanelcall the TTF header/footer/dialog cleanups beforeresources_free.
CI
test.ymlnow runs onpushtoOnionPlus.make unit-test: 1414 tests, ALL PASSED (local + Actions#746).
Not covered by this review
docs/,website/,third-party/- Flip lid / Hall on hardware
- OTA mid-
install.shpower cut - NEON under qemu-arm
Commits (vs 20260828 tag)
c8445aeetest: empty-file contract5659de2cfix: Flip suspend lid, runtime detect, OTA beta9ab47af8/2f90bbebfix: brightness cache, infoPanel scale identity, theme cleanupfa5bb007ci: push trigger for OnionPlus