# NousResearch/hermes-agent · Gateway one-shot (-z) output and command behavior issues

## Open now

- Nothing open on GitHub.

These items appear related to how the gateway handles one-shot (-z) turns and command output, including a report that \`hermes -z\` prints nothing and exits 1 even though the answer is persisted. Two members are fix-oriented changes touching gateway reply/output behavior; their outcomes are not established by the titles alone.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #140249. Verify it addresses your case.
- **Recommended:** read PR #140249 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-140249`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member 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.

## Closed / duplicate issues

- #139666: hermes -z prints nothing and exits 1 while the turn completes and the answer is persisted (v0.22.1)

## Prior & competing PRs

- **#140249: fix(gateway): commands and one-shot output behave on the gateway as they did on main**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/auxiliary_client.py`, `apps/shared/src/gateway-contract.generated.ts`, `apps/shared/src/gateway-contract.openrpc.json`, `gateway/run_runtime.py`, `gateway/run_turn.py`, `gateway/run_turn_persistence.py`, `gateway/session_commands.py`, `gateway/session_controls.py`, `gateway/session_llm_oneshot.py`, `gateway/session_tui_ops.py`, `hermes_cli/cli_commands_mixin.py`, `hermes_cli/cli_commands_session_tools.py`, `hermes_cli/gateway_chat_view.py`, `hermes_cli/gateway_rollback.py`, `locales/_keys.tui.json`, `locales/af.tui.yaml`, `locales/ar.tui.yaml`, `locales/de.tui.yaml`, `locales/es.tui.yaml`, `locales/fr.tui.yaml` (+29 more)
- **#139676: fix(gateway): keep the terminal reply for finite (-z) viewer turns**. closed without merge
  - maintainer direction: category `stale_abandoned`; implication `active`; refs `#139666`, `#140249`

## Fix status

- Merged to main in PR #140249 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-10-17`.
- Subsystem: `gateway`
