generated from nhcarrigan/template
fix: persist show_thinking_blocks setting across sessions
This commit is contained in:
@@ -135,6 +135,9 @@ pub struct HikariConfig {
|
|||||||
|
|
||||||
#[serde(default = "default_background_image_opacity")]
|
#[serde(default = "default_background_image_opacity")]
|
||||||
pub background_image_opacity: f32,
|
pub background_image_opacity: f32,
|
||||||
|
|
||||||
|
#[serde(default)]
|
||||||
|
pub show_thinking_blocks: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for HikariConfig {
|
impl Default for HikariConfig {
|
||||||
@@ -172,6 +175,7 @@ impl Default for HikariConfig {
|
|||||||
trusted_workspaces: Vec::new(),
|
trusted_workspaces: Vec::new(),
|
||||||
background_image_path: None,
|
background_image_path: None,
|
||||||
background_image_opacity: 0.3,
|
background_image_opacity: 0.3,
|
||||||
|
show_thinking_blocks: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -286,6 +290,7 @@ mod tests {
|
|||||||
assert!(!config.use_worktree);
|
assert!(!config.use_worktree);
|
||||||
assert!(!config.disable_1m_context);
|
assert!(!config.disable_1m_context);
|
||||||
assert!(config.trusted_workspaces.is_empty());
|
assert!(config.trusted_workspaces.is_empty());
|
||||||
|
assert!(!config.show_thinking_blocks);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@@ -323,6 +328,7 @@ mod tests {
|
|||||||
trusted_workspaces: vec!["/home/naomi/projects/trusted".to_string()],
|
trusted_workspaces: vec!["/home/naomi/projects/trusted".to_string()],
|
||||||
background_image_path: Some("/home/naomi/bg.png".to_string()),
|
background_image_path: Some("/home/naomi/bg.png".to_string()),
|
||||||
background_image_opacity: 0.25,
|
background_image_opacity: 0.25,
|
||||||
|
show_thinking_blocks: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
let json = serde_json::to_string(&config).unwrap();
|
let json = serde_json::to_string(&config).unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user