poc-daemon: reset nudge timer on tool use, move nudge interval to claude
PostToolUse now signals response activity so the nudge timer resets while I'm actively working. Nudge interval constant moved from thalamus (where it doesn't belong) to consciousness-claude. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
fa3b57fffd
commit
899cdd0165
2 changed files with 3 additions and 1 deletions
|
|
@ -177,8 +177,9 @@ impl State {
|
|||
if self.inner.in_turn { return Ok(()); }
|
||||
|
||||
// Min nudge interval
|
||||
const NUDGE_INTERVAL: f64 = 60.0;
|
||||
let since_nudge = t - self.inner.last_nudge;
|
||||
if since_nudge < thalamus_idle::MIN_NUDGE_INTERVAL { return Ok(()); }
|
||||
if since_nudge < NUDGE_INTERVAL { return Ok(()); }
|
||||
|
||||
// Idle timeout check
|
||||
if !self.inner.should_go_idle() { return Ok(()); }
|
||||
|
|
|
|||
|
|
@ -260,6 +260,7 @@ fn main() {
|
|||
}
|
||||
}
|
||||
"PostToolUse" => {
|
||||
signal_response();
|
||||
print!("{}", memory_search::run_hook(&input));
|
||||
|
||||
if let Some(ref t) = transcript {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue