diff options
| author | Michelle Tilley <michelle@michelletilley.net> | 2026-03-11 23:33:30 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-11 23:33:30 -0700 |
| commit | bde6814411696f23e09f9d4a67fdc1e1fef55263 (patch) | |
| tree | f1f99f27f9467792a969a7622f5c3feebfeb0b97 /crates/atuin-ai/src/commands | |
| parent | fix: ctrl-c not exiting ai (#3256) (diff) | |
| download | atuin-bde6814411696f23e09f9d4a67fdc1e1fef55263.zip | |
feat: Initialize Atuin AI by default with `atuin init` (#3255)
* Run Atuin AI's `init` during main `init` for bash, zsh, and fish
* Note that logging into Hub will enable sync
* Add instructions for users with existing sync accounts
* Ensure daemon respects `auto_sync` setting
* Update docs on disabling Atuin AI
Diffstat (limited to 'crates/atuin-ai/src/commands')
| -rw-r--r-- | crates/atuin-ai/src/commands/inline.rs | 11 |
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"); |
