From 5dfc6cdd50cec72329e17cb973577beb3c0cf353 Mon Sep 17 00:00:00 2001 From: Michelle Tilley Date: Thu, 19 Mar 2026 15:30:08 -0700 Subject: fix: Clarify what data is sent when using Atuin AI during setup (only OS and shell) (#3290) Clarifies during `atuin setup` that Atuin AI does not send any shell history to the AI provider. --- crates/atuin/src/command/client/setup.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/crates/atuin/src/command/client/setup.rs b/crates/atuin/src/command/client/setup.rs index acdf0cad..8de73d62 100644 --- a/crates/atuin/src/command/client/setup.rs +++ b/crates/atuin/src/command/client/setup.rs @@ -9,11 +9,15 @@ pub async fn run(_settings: &Settings) -> Result<()> { let enable_ai = prompt( "Atuin AI", "This will enable command generation and other AI features via the question mark key", + Some( + "By default, Atuin AI only has access to the name and version of your operating system and shell - your shell history is not sent to the AI.", + ), )?; let enable_daemon = prompt( "Atuin Daemon", "This will enable improved search and history sync using a persistent background process", + None, )?; let config_file = Settings::get_config_path()?; @@ -56,12 +60,18 @@ pub async fn run(_settings: &Settings) -> Result<()> { Ok(()) } -pub fn prompt(feature: &str, description: &str) -> Result { +pub fn prompt(feature: &str, description: &str, note: Option<&str>) -> Result { println!( "> Enable {feature}?", feature = feature.bold().bright_blue() ); - print!(" {description} {q} ", q = "[Y/n]".bold()); + if let Some(note) = note { + println!(" {description}"); + print!(" {note} {q} ", q = "[Y/n]".bold()); + } else { + print!(" {description} {q} ", q = "[Y/n]".bold()); + } + io::stdout().flush().ok(); let mut input = String::new(); -- cgit v1.3.1