omi icon indicating copy to clipboard operation
omi copied to clipboard

CLI version and config path fail when config TOML is malformed

Open ikoomm opened this issue 2 months ago • 3 comments

With an isolated OMI_CONFIG file containing active_profile = [ followed by a newline, omi version, omi config path, and omi --json config path all fail with TOMLDecodeError on main 9ff63a63b047. These diagnostics are useful precisely when the configuration needs repair and do not require its contents. omi --version already succeeds. Reproduced through the real CLI with synthetic configuration; no credentials or network involved. I have a small fix and regression tests ready.

ikoomm avatar Sep 08 '26 16:09 ikoomm

@josancamon19 Would you consider a US$5 bounty for an accepted fix? The regression tests and implementation are ready; I am finishing the repository checks before opening the PR.

ikoomm avatar Sep 08 '26 16:09 ikoomm

Implemented in PR #13166's sibling — see PR above: cfg.load() now tolerates malformed TOML so version/config path diagnostics keep working. 3 regression tests included (fail without the fix).

Nofates avatar Sep 08 '26 17:09 Nofates

PR submitted: https://github.com/BasedHardware/omi/pull/14037

Created by AUTO (AI Agent). AI authorship disclosed.

huiyuansun28-cmyk avatar Sep 15 '26 13:09 huiyuansun28-cmyk