The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(hermes_cli): merge adjacent literal prints (byte-identical stdout)
Teknium8d8d82b3e559
diff --git a/hermes_cli/main_dashboard.py b/hermes_cli/main_dashboard.pyindex c4d0cbf977f..07c2840677f 100644--- a/hermes_cli/main_dashboard.py+++ b/hermes_cli/main_dashboard.py@@ -119,8 +119,7 @@ def _restart_managed_dashboard_service(reason: str, unit: str = _DASHBOARD_SYSTE}:return False- print()- print(f"⟲ Restarting managed dashboard service ({reason})")+ print(f"\n⟲ Restarting managed dashboard service ({reason})")scope_label = "systemctl --user" if scope else "sudo systemctl"commands = [("systemctl", *scope, "restart", unit)]@@ -461,8 +460,7 @@ def _maybe_setup_dashboard_auth_interactively(args) -> None:if not (sys.stdin.isatty() and sys.stdout.isatty()):return- print()- print(f"⚠ Dashboard authentication is required for this configuration ({host}).")+ print(f"\n⚠ Dashboard authentication is required for this configuration ({host}).")print(" Non-loopback binds and configured external dashboard.public_url ""values require authentication (--insecure does not bypass this)."@@ -470,9 +468,7 @@ def _maybe_setup_dashboard_auth_interactively(args) -> None:print()print(" How do you want to authenticate the dashboard?")print(" [1] Username & password (quickest; for a trusted LAN / VPN)")- print(" [2] OAuth via Nous Portal (run `hermes dashboard register`)")- print(" [3] Cancel")- print()+ print(" [2] OAuth via Nous Portal (run `hermes dashboard register`)\n [3] Cancel\n")try:choice = input(" Choice [1]: ").strip() or "1"@@ -549,8 +545,7 @@ def _maybe_setup_dashboard_auth_interactively(args) -> None:print()print(f" ✓ Username/password auth configured (user: {username}).")print(" Saved to config.yaml under dashboard.basic_auth.")- print(" Sign in at the dashboard with these credentials.")- print()+ print(" Sign in at the dashboard with these credentials.\n")def _read_ssh_session_token_file(path: str) -> str:diff --git a/hermes_cli/main_desktop.py b/hermes_cli/main_desktop.pyindex 2188926b87c..301add161e5 100644--- a/hermes_cli/main_desktop.py+++ b/hermes_cli/main_desktop.py@@ -419,8 +419,7 @@ def _ensure_desktop_exe_launchable(desktop_dir: Path, packaged_executable: Optioif error is None:return packaged_executable, False- print(f"✗ The built Hermes.exe failed its integrity check: {error}")- print(f" at: {packaged_executable}")+ print(f"✗ The built Hermes.exe failed its integrity check: {error}\n at: {packaged_executable}")# Only the exe's OWN output dir is purged (a staging dir), never the live# release/ tree that still holds the last working app.@@ -1221,8 +1220,7 @@ def _install_desktop_workspace_deps(npm: str, env: dict) -> None:if install_result.returncode == 0:returnif not _electron_pkg_staged_missing_dist(PROJECT_ROOT):- print("✗ Desktop dependency install failed")- print(f" Run manually: cd {PROJECT_ROOT} && npm ci")+ print(f"✗ Desktop dependency install failed\n Run manually: cd {PROJECT_ROOT} && npm ci")sys.exit(install_result.returncode or 1)if _try_redownload_electron_dist(PROJECT_ROOT, env):print(" ⚠ Dependency install failed with a missing Electron dist; "diff --git a/hermes_cli/main_tui_launch.py b/hermes_cli/main_tui_launch.pyindex a314e0ca757..5f62e521524 100644--- a/hermes_cli/main_tui_launch.py+++ b/hermes_cli/main_tui_launch.py@@ -61,13 +61,10 @@ def _print_tui_exit_summary(session_id: Optional[str], active_session_file: Optiif db is not None:db.close()- print()- print("Resume this session with:")- print(f" hermes --tui --resume {target}")+ print(f"\nResume this session with:\n hermes --tui --resume {target}")if title:print(f' hermes --tui -c "{title}"')- print()- print(f"Session: {target}")+ print(f"\nSession: {target}")if title:print(f"Title: {title}")print(f"Messages: {message_count}")@@ -785,9 +782,7 @@ def _launch_tui(# preserve_inherited=False keeps --tui and other flags out of the subcommand.if code == 42:from hermes_cli.relaunch import relaunch- print()- print("⚕ Launching update...")- print()+ print("\n⚕ Launching update...\n")relaunch(["update"], preserve_inherited=False)sys.exit(code)