aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-ai/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/atuin-ai/src')
-rw-r--r--crates/atuin-ai/src/commands/inline.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/crates/atuin-ai/src/commands/inline.rs b/crates/atuin-ai/src/commands/inline.rs
index 37e5ab81..803c7d72 100644
--- a/crates/atuin-ai/src/commands/inline.rs
+++ b/crates/atuin-ai/src/commands/inline.rs
@@ -77,10 +77,19 @@ async fn ensure_hub_session(settings: &atuin_client::settings::Settings) -> Resu
.active_hub_endpoint()
.unwrap_or("https://hub.atuin.sh".to_string());
+ let will_sync = settings.is_hub_sync();
+
info!("No Hub session found, prompting for authentication");
println!("Atuin AI requires authenticating with Atuin Hub.");
- println!("This is separate from your sync setup.");
+ if will_sync {
+ println!(
+ "Once logged in, your shell history will be synchronized via Atuin Hub if auto_sync is enabled or when manually syncing."
+ )
+ }
+ println!(
+ "If you have an existing Atuin sync account, you can log in with your existing credentials."
+ );
println!("Press enter to begin (or esc to cancel).");
if !wait_for_login_confirmation()? {
bail!("authentication canceled");