diff options
| author | Michelle Tilley <michelle@michelletilley.net> | 2026-03-22 20:55:02 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-23 03:55:02 +0000 |
| commit | e3aeef208739fe6ce38b688e12c2320d67e77c19 (patch) | |
| tree | e9c52074e72764a0b09a5911ff5da298bbc3daf2 /crates/atuin-client/src/settings.rs | |
| parent | chore(ci): Tag docker images with semantic versions on tag creation (#3316) (diff) | |
| download | atuin-e3aeef208739fe6ce38b688e12c2320d67e77c19.zip | |
fix: Disable features in init when that feature is explicitly disabled (#3328)
This PR updates `atuin init` to skip initializers for subfeatures when
that subfeature is explicitly disabled with a setting value of `false`.
For `ai.enabled = false`, this releases the question mark keybind.
Fixes #3325
Diffstat (limited to 'crates/atuin-client/src/settings.rs')
| -rw-r--r-- | crates/atuin-client/src/settings.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/atuin-client/src/settings.rs b/crates/atuin-client/src/settings.rs index 745bd2ff..becf72db 100644 --- a/crates/atuin-client/src/settings.rs +++ b/crates/atuin-client/src/settings.rs @@ -615,7 +615,7 @@ pub struct Logs { #[derive(Default, Clone, Debug, Deserialize, Serialize)] pub struct Ai { /// Whether or not the AI features are enabled. - pub enabled: bool, + pub enabled: Option<bool>, /// The address of the Atuin AI endpoint. Used for AI features like command generation. /// Only necessary for custom AI endpoints. @@ -1450,7 +1450,6 @@ impl Settings { .set_default("search.frequency_score_multiplier", 1.0)? .set_default("search.frecency_score_multiplier", 1.0)? .set_default("meta.db_path", meta_path.to_str())? - .set_default("ai.enabled", false)? .set_default("ai.send_cwd", false)? .set_default( "search.filters", |
