NousResearch/hermes-agent

Config precedence and stale env override bugs

Cluster 25402 · environments · Bug. Data as of

3 open items. Fix merged in #77180 on 3 Aug 2026. Check it covers your case.

The short answer

1open issue
2open PRs
8items grouped
Known?
Yes. 8 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #77180. Check it covers your case. No release data is tracked. Fix link checked: 3 Aug 2026.
Tracker
The maintainers' tracker marks this partially resolved, deciding PR #77180. That is separate from the fix event.

These issues and fixes address conflicts between config.yaml settings and .env values, where stale environment variables incorrectly override intended configuration. A related cluster covers Docker-specific JSON being parsed regardless of the active terminal backend, causing crashes on non-Docker setups.

Open issues1

  • Issue#25402terminal.backend=local can still use Docker when stale Docker config keys remain

Open PRs2

  • PR#29239fix(env): make config.yaml authoritative for terminal.backend (#29186)
  • PR#29246docs(skills): require duplicate search before filing GitHub issues

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #77180 fix(env): config.yaml terminal.* keys win over stale .env on every reload (#29186)

    merged to main

    files: hermes_cli/env_loader.py, tests/gateway/test_runtime_env_reload_config_authority.py, tests/hermes_cli/test_dump_terminal_backend.py, tests/hermes_cli/test_env_loader.py

3 PRs closed without merging

From the close comments: superseded by another PR 1 · won't fix / by design 1 · other 1

  • #25881 fix(terminal): clear container config when backend is local · won't fix / by design → #25402, #25412, #23321
  • #26546 fix(gateway): ignore stale docker config for local terminal · other → 2903615, #25402
  • #29372 fix: always export TERMINAL_ENV from config.yaml to prevent stale .env override · superseded by another PR → #29239
Closed issues · 1
  • Closed#29186TERMINAL_ENV in ~/.hermes/.env overrides terminal.backend in config.yaml
How this cluster was grouped
  • Link evidence (partly structural links): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
  • Members outside that structural core may belong to a different underlying problem.
  • Pairwise link density 0.23: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. 1.00 means every pair is linked.

For your agent

The same facts, typed.