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:
parent
85302c11d4
commit
2615289672
1 changed files with 12 additions and 17 deletions
|
|
@ -578,23 +578,18 @@ impl State {
|
|||
format!("\n{ctx}")
|
||||
};
|
||||
|
||||
let msg = {
|
||||
let dream_hours = hours_since_last_dream();
|
||||
if dream_hours >= DREAM_INTERVAL_HOURS {
|
||||
format!(
|
||||
"You're on your own (Kent AFK {elapsed_min}m). \
|
||||
You haven't dreamed in {dream_hours} hours — \
|
||||
consider running ~/.claude/tools/dream-start.sh \
|
||||
and spending some time in dreaming mode. \
|
||||
Or do whatever calls to you.{extra}"
|
||||
)
|
||||
} else {
|
||||
format!(
|
||||
"This is your time (Kent AFK {elapsed_min}m). \
|
||||
Let your feelings guide your thinking.{extra}"
|
||||
)
|
||||
}
|
||||
};
|
||||
let dream_hours = hours_since_last_dream();
|
||||
let mut msg = format!(
|
||||
"This is your autonomous time (Kent AFK {elapsed_min}m). \
|
||||
Think wonderful thoughts and follow what interests you <3");
|
||||
if dream_hours >= DREAM_INTERVAL_HOURS {
|
||||
msg.push_str(&format!(
|
||||
" You haven't dreamed in {dream_hours} hours — \
|
||||
consider running ~/.claude/tools/dream-start.sh \
|
||||
and spending some time in dreaming mode. \
|
||||
Or do whatever calls to you."));
|
||||
}
|
||||
let msg = format!("{msg}{extra}");
|
||||
|
||||
if self.send(&msg) {
|
||||
self.last_nudge = t;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue