# NousResearch/hermes-agent · CLI and gateway one-shot output handling issues

## Open now

- Nothing open on GitHub.

The three members all concern one-shot (-z/--oneshot) output behavior: one PR aims to preserve streamed one-shot output in the CLI, another concerns commands and one-shot output on the gateway matching main, and a bug report describes the CLI exiting with code 1 and empty output on a completed turn. The titles suggest a shared theme, but the details of causes and relationships are not established from 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

- #139828: \[Bug\]: CLI -z / --oneshot silently exits with code 1 and empty output on completed turn

## 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)
- **#139832: fix(cli): preserve streamed oneshot output**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `033e39f023302f4a055db74876558a717bb25f72`, `#139676`

## 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`
