fix: persist show_thinking_blocks setting across sessions

This commit is contained in:
2026-03-02 13:36:23 -08:00
committed by Naomi Carrigan
parent 97b8243d24
commit c5d1df351c
+6
View File
@@ -135,6 +135,9 @@ pub struct HikariConfig {
#[serde(default = "default_background_image_opacity")]
pub background_image_opacity: f32,
#[serde(default)]
pub show_thinking_blocks: bool,
}
impl Default for HikariConfig {
@@ -172,6 +175,7 @@ impl Default for HikariConfig {
trusted_workspaces: Vec::new(),
background_image_path: None,
background_image_opacity: 0.3,
show_thinking_blocks: false,
}
}
}
@@ -286,6 +290,7 @@ mod tests {
assert!(!config.use_worktree);
assert!(!config.disable_1m_context);
assert!(config.trusted_workspaces.is_empty());
assert!(!config.show_thinking_blocks);
}
#[test]
@@ -323,6 +328,7 @@ mod tests {
trusted_workspaces: vec!["/home/naomi/projects/trusted".to_string()],
background_image_path: Some("/home/naomi/bg.png".to_string()),
background_image_opacity: 0.25,
show_thinking_blocks: true,
};
let json = serde_json::to_string(&config).unwrap();