diff --git a/src/main.rs b/src/main.rs index 77a4be8c3..c11e40268 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1228,8 +1228,11 @@ fn run_cli() -> Result { }; // Warn if installed hook is outdated/missing (1/day, non-blocking). - // Skip for Gain — it shows its own inline hook warning. - if !matches!(cli.command, Commands::Gain { .. }) { + if matches!(cli.command, Commands::Init { .. }) { + // Skip for Init — it is about to install/update hooks itself. + eprintln!("[rtk] Installing RTK hook"); + } else if !matches!(cli.command, Commands::Gain { .. }) { + // Skip for Gain — it shows its own inline hook warning. hooks::hook_check::maybe_warn(); }