Python CLI Bug Fix: Preserve User Configuration by Hazim AlsalmiPython CLI Bug Fix: Preserve User Configuration by Hazim Alsalmi

Python CLI Bug Fix: Preserve User Configuration

Hazim Alsalmi

Hazim Alsalmi

Problem: Omi's Python CLI could erase unrelated root settings from config.toml when a user updated a known setting. What I changed: I reproduced the loss with a synthetic configuration, then updated the configuration round-trip to retain unknown root scalars and tables while known fields remained authoritative. A regression test invokes the real omi config set command and checks that both the requested change and unrelated values survive. Verification: The contribution was reviewed and merged as PR #12990 on September 8, 2026. The original full CLI validation recorded 130 passing tests on Windows/Python 3.12. These are historical PR results, not a claim of a fresh production deployment. Source and review: https://github.com/BasedHardware/omi/pull/12990
Like this project

Posted Sep 23, 2026

Fixed Omi's Python CLI so changing a known setting preserves unrelated config.toml fields. Added a real-CLI regression test; PR #12990 was reviewed and merged.