zeroclaw/src/cron
Allen Huang 7d81715b60 fix(agent): skip interactive approval in daemon/cron context
Daemon heartbeat and cron tasks called agent::run() which hardcoded
channel_name as "cli" and always created an ApprovalManager, causing
[Y]es / [N]o / [A]lways stdin prompts on the unattended daemon terminal.

Add interactive parameter to agent::run(): CLI passes true (preserving
approval flow), daemon/cron pass false (no ApprovalManager, channel
marked as "daemon").

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-21 14:52:44 +08:00
..
mod.rs feat(cron): add cron update CLI subcommand for in-place job updates 2026-02-19 15:11:37 +08:00
schedule.rs Implement cron job management tools and types 2026-02-17 17:06:28 +08:00
scheduler.rs fix(agent): skip interactive approval in daemon/cron context 2026-02-21 14:52:44 +08:00
store.rs fix: resolve all compilation, test, and fmt errors on main 2026-02-21 12:09:06 +08:00
types.rs test(crom): add tests for JobType::try_from to handle case-insensitive and invalid values 2026-02-21 02:35:54 +08:00