# NousResearch/hermes-agent · Rollback.restore RPC should preserve hand-edits unless --all

## Open now

- Nothing open on GitHub.

These items concern whole-tree /rollback via the gateway rollback.restore RPC, which is described as not honoring the hand-edit-safe mode used by other rollback paths (TUI, desktop, gateway-attached CLI). Two members appear to be fixes proposing that edits be preserved unless --all is given; the third describes the underlying problem.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 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: `unresolved`. 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.50`: 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

- #139375: Whole-tree /rollback through the rollback.restore RPC ignores the hand-edit-safe mode (TUI, desktop, gateway-attached CLI)

## 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)
- **#139389: fix(rollback): preserve edits through gateway RPC**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `0c8d4b7363c930b8291b13686995a3c34d34814c`, `9cbe5c63e0b47ac000ab9b894b72461d9230aa4a`
- **#139394: fix(gateway): rollback.restore keeps hand-edits unless --all, like the other /rollback paths**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#140249`, `#139375`

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