CLI for SidePulse
Python
Show restart guidance after installing Codex hooks
Peter Kuharffb1d3c2f3ee
diff --git a/src/sidepulse/cli.py b/src/sidepulse/cli.pyindex 96fc9f1..ea184a5 100644--- a/src/sidepulse/cli.py+++ b/src/sidepulse/cli.py@@ -1456,6 +1456,8 @@ def print_install_results(results, *, dry_run: bool) -> None:print(f" log: {result.log_path}")if result.backup_path:print(f" backup: {result.backup_path}")+ if result.provider == "codex" and result.changed and not dry_run:+ print(" Restart Codex to activate these hooks in new sessions.")def cmd_uninstall(args: argparse.Namespace) -> int:diff --git a/src/sidepulse/status_bar.py b/src/sidepulse/status_bar.pyindex 085b777..7373556 100644--- a/src/sidepulse/status_bar.py+++ b/src/sidepulse/status_bar.py@@ -1766,7 +1766,10 @@ class StatusBarController(NSObject):action = "installed" if install else "removed"if not result.changed:action = "already installed" if install else "already removed"- self.set_settings_message(f"{provider.title()} hooks {action}.")+ message = f"{provider.title()} hooks {action}."+ if provider == "codex" and install and result.changed:+ message += " Restart Codex to activate them in new sessions."+ self.set_settings_message(message)self.reload_monitor()self.refresh_settings_window()self.refresh_(None)