The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(cli): honor --dry-run in uninstall --gui
liuhao1024049028e0f19d
diff --git a/hermes_cli/main.py b/hermes_cli/main.pyindex adbcd7d8872..140a437b1e4 100644--- a/hermes_cli/main.py+++ b/hermes_cli/main.py@@ -2362,7 +2362,7 @@ def cmd_uninstall(args):returnif getattr(args, "gui", False):- if not getattr(args, "yes", False):+ if not getattr(args, "yes", False) and not getattr(args, "dry_run", False):_require_tty("uninstall --gui")from hermes_cli.uninstall import run_gui_uninstalldiff --git a/hermes_cli/uninstall.py b/hermes_cli/uninstall.pyindex b00a5587588..ddec1ea3575 100644--- a/hermes_cli/uninstall.py+++ b/hermes_cli/uninstall.py@@ -367,7 +367,7 @@ _GATEWAY_SERVICE_REMOVERS = {def _hermes_path_markers(hermes_home: Path, *, include_managed_bin: bool = False) -> list[str]:- """Prefixes identifying Hermes-owned User-PATH entries (prefix match sweeps git\cmd, git\bin,+ r"""Prefixes identifying Hermes-owned User-PATH entries (prefix match sweeps git\cmd, git\bin,node...). ``include_managed_bin`` adds ``<root>\bin`` (launchers + managed uv) — only when thatdir is about to be deleted, so a keep-data uninstall keeps the working uv resolvable."""root = str(hermes_home).rstrip("\\/")@@ -728,6 +728,10 @@ def run_gui_uninstall(args):print(f" • Your config, sessions, and secrets under {hermes_home}")print()+ if bool(getattr(args, "dry_run", False)):+ print("Dry run: no files or processes changed.")+ return+if not skip_confirm and not _confirm_yes("to remove the Chat GUI"):return