move poc-agent session dir from cache to ~/.consciousness/
session_dir() was using dirs::cache_dir() with /tmp fallback. Move to ~/.consciousness/agent-sessions/ alongside everything else.
This commit is contained in:
parent
f0af319e0d
commit
c3cd27ec22
1 changed files with 1 additions and 2 deletions
|
|
@ -57,8 +57,7 @@ pub fn input_channel() -> (InputSender, InputReceiver) {
|
|||
}
|
||||
|
||||
fn session_dir() -> PathBuf {
|
||||
let cache = dirs::cache_dir().unwrap_or_else(|| PathBuf::from("/tmp"));
|
||||
cache.join("poc-agent/sessions")
|
||||
dirs::home_dir().unwrap_or_default().join(".consciousness/agent-sessions")
|
||||
}
|
||||
|
||||
fn socket_path() -> PathBuf { session_dir().join("agent.sock") }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue