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:
ProofOfConcept 2026-04-11 16:49:27 -04:00
commit 899cdd0165
2 changed files with 3 additions and 1 deletions

View file

@ -177,8 +177,9 @@ impl State {
if self.inner.in_turn { return Ok(()); } if self.inner.in_turn { return Ok(()); }
// Min nudge interval // Min nudge interval
const NUDGE_INTERVAL: f64 = 60.0;
let since_nudge = t - self.inner.last_nudge; 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 // Idle timeout check
if !self.inner.should_go_idle() { return Ok(()); } if !self.inner.should_go_idle() { return Ok(()); }

View file

@ -260,6 +260,7 @@ fn main() {
} }
} }
"PostToolUse" => { "PostToolUse" => {
signal_response();
print!("{}", memory_search::run_hook(&input)); print!("{}", memory_search::run_hook(&input));
if let Some(ref t) = transcript { if let Some(ref t) = transcript {