consciousness/src/bin/poc-daemon
ProofOfConcept 81d3ce93fe fix idle timer restart and hook event detection
Two fixes:

1. Reset activity timestamps to now() on daemon restart instead of
   loading stale values and suppressing with fired=true. Timers
   count cleanly from restart.

2. Fix poc-hook to read hook_event_name (not type) from Claude Code's
   JSON input. The hook was being called but never matched any event.
   Also switch daemon_cmd from spawn() to status() since the command
   takes 2ms — no reason to fire-and-forget.

Co-Authored-By: ProofOfConcept <poc@bcachefs.org>
2026-03-05 21:43:04 -05:00
..
modules irc: handle non-UTF-8 input, CTCP VERSION, log outgoing messages 2026-03-05 21:15:49 -05:00
config.rs merge poc-daemon and poc-hook into poc-memory repo 2026-03-05 19:17:22 -05:00
context.rs daemon: fix UTF-8 panics on multi-byte character truncation 2026-03-05 21:15:40 -05:00
idle.rs fix idle timer restart and hook event detection 2026-03-05 21:43:04 -05:00
main.rs cli: switch to clap, add notify-timeout, improve status display 2026-03-05 21:32:27 -05:00
notify.rs daemon: fix UTF-8 panics on multi-byte character truncation 2026-03-05 21:15:40 -05:00
rpc.rs cli: switch to clap, add notify-timeout, improve status display 2026-03-05 21:32:27 -05:00
tmux.rs daemon: fix UTF-8 panics on multi-byte character truncation 2026-03-05 21:15:40 -05:00