From 6c1aff6d8d2960366600423518af96caaf873e77 Mon Sep 17 00:00:00 2001 From: syui Date: Tue, 24 Mar 2026 16:23:50 +0900 Subject: [PATCH] refactor(config): unify config to ai.syui.log/config.json, remove gpt config dependency --- src/config.rs | 2 +- src/headless.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index 30d864e..ee9d9c7 100644 --- a/src/config.rs +++ b/src/config.rs @@ -16,7 +16,7 @@ pub fn shared_config_path() -> String { format!("{}/ai.syui.log/config.json", config_dir()) } -/// Path to aigpt config: $cfg/ai.syui.gpt/config.json +/// Path to aigpt config (same content as shared, may be symlink) pub fn gpt_config_path() -> String { format!("{}/ai.syui.gpt/config.json", config_dir()) } diff --git a/src/headless.rs b/src/headless.rs index 92eecb2..6d6a99f 100644 --- a/src/headless.rs +++ b/src/headless.rs @@ -575,7 +575,7 @@ fn save_to_aigpt_memory(decision: &str, agents: &[serde_json::Value]) { } fn aigpt_memory_dir() -> Option { - let config_path = config::gpt_config_path(); + let config_path = config::shared_config_path(); let content = std::fs::read_to_string(&config_path).ok()?; let config: serde_json::Value = serde_json::from_str(&content).ok()?;