forked from kent/consciousness
move telegram and remaining tmp paths to ~/.consciousness/
- Telegram data: ~/.consciousness/telegram/ - Rate limiter file: ~/.consciousness/cache/ - parse-claude-conversation stash: ~/.consciousness/sessions/ No more /tmp/ for persistent state, no more ~/.claude/ for our data.
This commit is contained in:
parent
bf5b495632
commit
f0af319e0d
5 changed files with 10 additions and 8 deletions
|
|
@ -113,7 +113,7 @@ fn maybe_trigger_observation(transcript: &PathBuf) {
|
|||
|
||||
fn check_context(transcript: &PathBuf, rate_limit: bool) {
|
||||
if rate_limit {
|
||||
let rate_file = PathBuf::from("/tmp/consciousness-context-check-last");
|
||||
let rate_file = dirs::home_dir().unwrap_or_default().join(".consciousness/cache/context-check-last");
|
||||
if let Ok(s) = fs::read_to_string(&rate_file) {
|
||||
if let Ok(last) = s.trim().parse::<u64>() {
|
||||
if now_secs() - last < RATE_LIMIT_SECS {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue