CLI --env flag drops all but last value

NousResearch/hermes-agent · cluster 37501 · hermes cli

Data as of

7 open items. Fix attempted, not merged.

The short answer

2open issues
5open PRs
10items grouped
Known?
Yes. 10 related items grouped here, 0 issues already closed.
Fix event
No fix has been merged to main. 3 PRs closed without merging; see the attempts below.
Tracker
The maintainers' tracker marks this unresolved. That is separate from the fix event.
Still open
2 issues and 5 PRs.

Multiple reports and fix attempts address a bug where passing repeated --env flags to hermes mcp add silently discards all but the last one. Members include the bug reports, proposed fixes, and related feature additions around env/preset support.

Open issues2

  • Issue#37501Bug: `hermes mcp add` ignores all but the last `--env` flag
  • Issue#45672bug(cli): `hermes mcp add --env KEY=VAL --env K2=V2` silently keeps only the last value

Open PRs5

  • PR#37531fix(hermes_cli/mcp): hermes mcp add ignores all but last --env flag
  • PR#37587Fix/cli bugs batch 37501 37472
  • PR#37592fix(cli): collect all --env flags in hermes mcp add (Fixes #37501)
  • PR#45703fix(cli): make --env flag repeatable for mcp add
  • PR#80518fix(mcp): preserve repeated env flags

3 PRs closed without merging

From the close comments: duplicate 2 · superseded by another PR 1

  • #37504 fix(cli): accumulate multiple --env flags in hermes mcp add · superseded by another PR → #45718
  • #40084 fix(mcp): preserve repeated env flags · duplicate → #37504, #37501, #37592, #37531, #37587
  • #45718 fix(cli): accumulate repeated --env flags in `hermes mcp add` · duplicate → #45703
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • 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.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
hermes cli
Closed issues
0
Attempts
3 PRs closed without merging

For your agent

The same facts, typed.