Skip to content

Hermes: config.yaml mcp_install and pre_llm_hook_install refused on Linux and Windows (regressed again in v0.10.4) #1631

Description

@DeusData

Filed from discussion #1560. Reported independently on Linux and Windows, no tracking issue until now, and it regressed again in v0.10.4.

Symptom

Two operations fail against the Hermes config:

error: agent_config agent=Hermes op=mcp_install          path=~/.hermes/config.yaml
error: agent_config agent=Hermes op=pre_llm_hook_install path=~/.hermes/config.yaml

Windows sees the same against %LOCALAPPDATA%\hermes\config.yaml.

The regression shape is the useful part

version mcp_install pre_llm_hook_install
0.10.2 fails fails
0.10.3 works fails
0.10.4 fails fails

Something fixed mcp_install in 0.10.3 and something else broke it again in 0.10.4. That bisect window is narrow and worth walking.

It is our writer, not the file

@Galaxy-VN hand-added the identical hook entry and it worked. So the file is writable, well-formed, and accepts the content we want to put in it — we are the ones refusing.

The file is a regular file owned by the reporter, mode 0600, ~19 KB.

Why this is not #1180 or #635

Neither covers a refused config write, which is why this had no tracking issue.

Leading hypothesis

The YAML editor fails closed on several structural conditions that a real 19 KB hand-maintained config plausibly hits: an inline comment on a field line (rejected deliberately, so a raw value cannot be silently truncated at #), unsupported YAML constructs, or anchors/aliases. All of them return the same -1, so we cannot currently tell which.

Asks

@iandol, @Galaxy-VN — the most useful thing would be the shape of the file rather than its contents: does ~/.hermes/config.yaml contain inline comments on the same line as a value (key: value # note), YAML anchors (&name / *name), or multi-document separators (---)? Any one of those would point straight at the refusing check.

Thank you both — the manual-hook experiment in particular is what makes this actionable rather than a guess.

Metadata

Metadata

Assignees

No one assigned

    Labels

    stability/performanceServer crashes, OOM, hangs, high CPU/memorywindowsWindows-specific issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions