Commit Graph

3 Commits

Author SHA1 Message Date
Simon KP
75c9496cd2 fix(checkins): use systemEvent for cron triggers instead of agentTurn
Isolated agent sessions load plugins fresh with storage=null, causing
the tool factory to return null and no tools to be available. The agent
then outputs XML-like text instead of making proper tool calls.

Switch cron jobs to use systemEvent payload which runs in the main
gateway process where storage IS initialized. The message_received
hook already handles [system] checkins:trigger: and checkins:cleanup:
events.
2026-01-27 10:16:20 +11:00
Simon KP
3d740d9228 feat(checkins): add trigger tool for cron-based check-ins
The isolated cron agent sessions don't fire message_received hooks,
so the previous approach of intercepting [system] checkins:trigger
messages didn't work. This adds a checkins_trigger tool that the
cron agent calls directly to trigger check-ins.

Also adds checkins_help tool for user guidance.
2026-01-27 09:06:22 +11:00
Simon KP
4ee0df1da1 fix: restore checkins extension lost during fork sync 2026-01-26 19:29:48 +11:00