feat: bot greets you on connect now
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 56s
CI / Lint & Test (pull_request) Failing after 5m40s
CI / Build Linux (pull_request) Has been skipped
CI / Build Windows (cross-compile) (pull_request) Has been skipped

This commit is contained in:
2026-01-16 13:57:40 -08:00
parent 0dffec4d43
commit f8e989c5ab
2 changed files with 37 additions and 12 deletions
+17 -2
View File
@@ -21,7 +21,7 @@ pub struct ClaudeStartOptions {
pub allowed_tools: Vec<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct HikariConfig {
#[serde(default)]
pub model: Option<String>,
@@ -48,6 +48,21 @@ pub struct HikariConfig {
pub greeting_custom_prompt: Option<String>,
}
impl Default for HikariConfig {
fn default() -> Self {
Self {
model: None,
api_key: None,
custom_instructions: None,
mcp_servers_json: None,
auto_granted_tools: Vec::new(),
theme: Theme::default(),
greeting_enabled: true,
greeting_custom_prompt: None,
}
}
}
fn default_greeting_enabled() -> bool {
true
}
@@ -73,7 +88,7 @@ mod tests {
assert!(config.mcp_servers_json.is_none());
assert!(config.auto_granted_tools.is_empty());
assert_eq!(config.theme, Theme::Dark);
assert!(!config.greeting_enabled);
assert!(config.greeting_enabled);
assert!(config.greeting_custom_prompt.is_none());
}