[bug] config agent --agent hermes writes to ~/.hermes instead of $HERMES_HOME, config silently never takes effect
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 74/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Ruhig
- Tech-Stack
- typescript
- Bereich
- cli
Rechercherichtung
Beginne am Einstiegspunkt bl config agent --agent hermes und untersuche die Pfadkonstruktion join(homedir(), '.hermes', 'config.yaml') des Hermes-Writers. Untersuche anschließend die im Issue erwähnten Hermes-Erkennungspfade in agent-skill/inventory. Als abgeschlossen gilt die Änderung, wenn Konfiguration und Erkennung Hermes' Override, HERMES_HOME und die plattformabhängige Standardauflösung verwenden, statt ~/.hermes vorauszusetzen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Environment
- CLI: bl 1.13.0
- Skill: 1.13.0
- Node: v22.23.1
- OS: Windows (MINGW64_NT-10.0-26200, git-bash/MSYS2)
- Region: cn-beijing (Token Plan)
- Target agent: hermes
Reproduce
# HERMES_HOME is set (or Hermes uses its Windows platform default)
export HERMES_HOME='C:\Users\<user>\AppData\Local\hermes'
bl config agent --agent hermes --region cn-beijing --key <REDACTED> --model qwen3.8-max-preview
Output:
Warning: Hermes Agent does not support native Windows. Please use WSL2.
Hermes Agent configured successfully.
Written: C:\Users\<user>\.hermes\config.yaml
Run `hermes chat -q "hello"` to verify.
Expected
bl config agent --agent hermes should write the model config to the location Hermes actually reads:
$HERMES_HOME/config.yaml(e.g.C:\Users\<user>\AppData\Local\hermes\config.yaml) whenHERMES_HOMEis set, or- Hermes' platform-native default home (
%LOCALAPPDATA%\hermes\config.yamlon Windows,~/.hermeson Linux/macOS).
Hermes resolves its home via get_hermes_home(): override → HERMES_HOME env var → platform-native default (see hermes-agent hermes_cli/config.py).
Actual
The CLI hardcodes ~/.hermes/config.yaml (join(homedir(), '.hermes', 'config.yaml') in the hermes writer) and ignores HERMES_HOME entirely.
On Windows (where Hermes' default home is %LOCALAPPDATA%\hermes) — or on any machine where HERMES_HOME is customized — the config is written to a file Hermes never reads:
- Written to:
C:\Users\<user>\.hermes\config.yaml(exists, but Hermes ignores it) - Hermes actually reads:
C:\Users\<user>\AppData\Local\hermes\config.yaml(still has the old model/provider)
Result: the command reports success, but the model/provider change silently does not take effect. In our case Hermes kept using the previous provider (deepseek) and the Bailian models never appeared in the model picker. Only after manually applying the same values with hermes config set model.provider custom / model.default / model.base_url / model.api_key did it take effect.
Additional detail: the same hardcoded ~/.hermes assumption appears in the agent-skill/inventory detection paths for hermes (paths: [join(home, '.hermes', 'config.yaml')]), so bl config agent can also falsely report a hermes agent as "not configured" when HERMES_HOME is non-default.
Full output
Warning: Hermes Agent does not support native Windows. Please use WSL2.
Hermes Agent configured successfully.
Written: C:\Users\<user>\.hermes\config.yaml
Run `hermes chat -q "hello"` to verify.
Exit code: 0
Already tried
- Confirmed CLI and installed skill versions aligned at 1.13.0.
- Confirmed
$HERMES_HOMEis set toC:\Users\<user>\AppData\Local\hermesin the environment. - Verified Hermes
load_config()reads$HERMES_HOME/config.yaml(not~/.hermes/config.yaml). - Fixed locally with
hermes config set model.provider custom+model.default+model.base_url+model.api_key— takes effect immediately.
Notes
- Frequency: always (deterministic path bug)
- Invoked via: agent (Hermes) on Windows git-bash
- Impact:
bl config agent --agent hermessilently no-ops on Windows / non-default HERMES_HOME setups; user believes Bailian is configured but the agent keeps using the old provider.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 333
- Forks
- 28
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 38
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus modelstudioai/cli
-
[bug] bl update: darwin-arm64 binary ships invalid ad-hoc signature, killed by macOS (Killed: 9) Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
modelstudioai/cli#223 ·
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 65/100
modelstudioai/cli#225 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 65/100
modelstudioai/cli#224 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
modelstudioai/cli#211 ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
modelstudioai/cli#202 · 1 Kommentar · 1 Reaktion ·
Alle Issues in modelstudioai/cli
Ähnliche Issues
-
blocklist removal
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
MetaMask/eth-phishing-detect#296544 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
pastelsky/bundlephobia#1122 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
-
category/development priority/P2 scope/file-operations scope/testing type/enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100