You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
0.16.0: first config write after upgrade rewrites config.yaml to expanded defaults, dropping custom_providers (distinct from #17876) #40821
hermes-agent 0.16.0 (pip install into a dedicated venv), macOS arm64 (Apple Silicon)
Upgraded from 0.15.2 → 0.16.0 earlier the same day
Gateway runs under launchd; the web dashboard (hermes dashboard) runs as a separate process
Summary
After upgrading to 0.16.0, the first process that persisted config — in our case the web dashboard server on boot — rewrote $HERMES_HOME/config.yaml from a hand-curated ~950-byte file into a ~12.4 KB fully-expanded defaults dump:
the custom_providers: list (one custom OpenAI-compatible local provider) was dropped entirely
all comments/structure were lost
providers: was written as {} and toolsets: reduced to defaults
the model: block values survived
Evidence (sha256-verified)
size
sha256 (prefix)
pre-upgrade config (curated)
946 B
ead16639f60fca94…
after first 0.16 write
12,370 B
df347130043c3957…
We kept both files and can share sanitized copies.
One-time behavior (important)
After restoring the original file byte-exact:
a gateway restart (launchd kickstart) did not rewrite it
stopping/starting the dashboard did not rewrite it either (sha stable across both)
So this looks like a one-time migration/normalization write-back on the first 0.16 config persistence, serializing the in-memory view (defaults merged, unrecognized 0.15-era keys dropped) over the user's file.
#17876 (closed) covers config set → _set_nested destroying YAML list fields on indexed writes. No config set was run here; the trigger is the upgrade's first config persistence, and the result is a full-file expansion rather than a single-path mutation. The #17876 guard in config.py does not cover this path.
Repro sketch
On 0.15.x, hand-edit a minimal config.yaml containing a custom_providers: list and comments; record its sha256.
pip install -U hermes-agent==0.16.0.
Launch hermes dashboard (or whichever process persists config first).
Compare config.yaml — observe the defaults dump and the dropped custom_providers.
Expected vs actual
Expected: config preserved as-is, or migrated losslessly (e.g. custom_providers mapped into the 0.16 providers schema — the conversion helpers appear to exist in config.py).
Actual: silent full rewrite; custom provider config lost. For local-model users that provider entry is load-bearing.
Workaround
Keep a sha-logged backup of config.yaml before upgrading; restore after the first 0.16 write — subsequent writes preserved it on our machine.
Happy to provide additional sanitized detail if useful.
Activity
fix(config): preserve custom_providers and prevent defaults-bloat on …
fix(config): use read_raw_config() in migrations to prevent expanding…
fix(config): use read_raw_config() in migrations to prevent expanding…
fix(config): use read_raw_config() in migrations to prevent expanding…
fix(config): use read_raw_config() in migrations to prevent expanding…
fix(config): use read_raw_config() in migrations to prevent expanding…
fix(config): use read_raw_config() in migrations to prevent expanding…
fix(config): use read_raw_config() in migrations to prevent expanding…
fix(config): use read_raw_config() in migrations to prevent expanding…
fix(config): use read_raw_config() in migrations to prevent expanding…
fix(config): use read_raw_config() in migrations to prevent expanding…