idle: afk command, configurable session timeout, fix block_reason

Add `poc-daemon afk` to immediately mark Kent as away, allowing the
idle timer to fire without waiting for the session active timeout.

Add `poc-daemon session-timeout <secs>` to configure how long after
the last message Kent counts as "present" (default 15min, persisted).

Fix block_reason() to report "kent present" and "in turn" states
that were checked in the tick but not in the diagnostic output.
This commit is contained in:
ProofOfConcept 2026-03-08 18:31:51 -04:00 committed by Kent Overstreet
parent 05e0f1d5be
commit 55fdc3dad7
4 changed files with 66 additions and 2 deletions

View file

@ -73,6 +73,8 @@ interface Daemon {
debug @18 () -> (json :Text);
ewma @20 (value :Float64) -> (current :Float64);
afk @21 () -> ();
sessionTimeout @22 (seconds :Float64) -> ();
# Modules
moduleCommand @15 (module :Text, command :Text, args :List(Text))