diff --git a/src-tauri/src/config.rs b/src-tauri/src/config.rs index b9af21a..8a345ef 100644 --- a/src-tauri/src/config.rs +++ b/src-tauri/src/config.rs @@ -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();