idle nudge: always warm, append dream reminder when needed

Instead of two different messages (dreaming vs non-dreaming), always
start with the friendly autonomous time message and append the dream
nudge only when the threshold is exceeded.
This commit is contained in:
ProofOfConcept 2026-03-27 15:13:34 -04:00
parent 85302c11d4
commit 2615289672

View file

@ -578,23 +578,18 @@ impl State {
format!("\n{ctx}") format!("\n{ctx}")
}; };
let msg = { let dream_hours = hours_since_last_dream();
let dream_hours = hours_since_last_dream(); let mut msg = format!(
if dream_hours >= DREAM_INTERVAL_HOURS { "This is your autonomous time (Kent AFK {elapsed_min}m). \
format!( Think wonderful thoughts and follow what interests you <3");
"You're on your own (Kent AFK {elapsed_min}m). \ if dream_hours >= DREAM_INTERVAL_HOURS {
You haven't dreamed in {dream_hours} hours \ msg.push_str(&format!(
consider running ~/.claude/tools/dream-start.sh \ " You haven't dreamed in {dream_hours} hours — \
and spending some time in dreaming mode. \ consider running ~/.claude/tools/dream-start.sh \
Or do whatever calls to you.{extra}" and spending some time in dreaming mode. \
) Or do whatever calls to you."));
} else { }
format!( let msg = format!("{msg}{extra}");
"This is your time (Kent AFK {elapsed_min}m). \
Let your feelings guide your thinking.{extra}"
)
}
};
if self.send(&msg) { if self.send(&msg) {
self.last_nudge = t; self.last_nudge = t;