2
0

fix mcp save dir

This commit is contained in:
2026-03-24 20:55:38 +09:00
parent ebfbcad685
commit cdaba32a47

View File

@@ -224,9 +224,10 @@ fn handle_chat_save(params: ChatSaveParams) -> Result<String> {
// Get output directory // Get output directory
let output_dir = env::var("CHAT_OUTPUT").unwrap_or_else(|_| { let output_dir = env::var("CHAT_OUTPUT").unwrap_or_else(|_| {
env::current_dir() dirs::config_dir()
.unwrap_or_default() .unwrap_or_default()
.join("public/at") .join(BUNDLE_ID)
.join("at")
.to_string_lossy() .to_string_lossy()
.to_string() .to_string()
}); });
@@ -282,9 +283,10 @@ fn handle_chat_save(params: ChatSaveParams) -> Result<String> {
/// Handle chat_list tool /// Handle chat_list tool
fn handle_chat_list() -> Result<String> { fn handle_chat_list() -> Result<String> {
let output_dir = env::var("CHAT_OUTPUT").unwrap_or_else(|_| { let output_dir = env::var("CHAT_OUTPUT").unwrap_or_else(|_| {
env::current_dir() dirs::config_dir()
.unwrap_or_default() .unwrap_or_default()
.join("public/at") .join(BUNDLE_ID)
.join("at")
.to_string_lossy() .to_string_lossy()
.to_string() .to_string()
}); });