BrowserUse_and_ComputerUse_.../cron
Ömer Kaz 9283877204 fix(cron): pass session_db to AIAgent so cron messages are persisted
Cron jobs create AIAgent without passing session_db, so messages from
cron runs (and their delegate_task subagents) are never written to the
SQLite session store. This means session_search cannot find any cron
conversation history — the same class of bug fixed for the gateway in
8aa531c (PR #105).

Initialize SessionDB in run_job() and pass it to AIAgent, following the
identical pattern used in gateway/run.py.
2026-03-14 00:10:02 -07:00
..
__init__.py refactor: streamline cron job handling and update CLI commands 2026-02-21 16:21:19 -08:00
jobs.py fix(cron): use atomic write in save_job_output to prevent data loss on crash 2026-03-13 08:04:36 -07:00
scheduler.py fix(cron): pass session_db to AIAgent so cron messages are persisted 2026-03-14 00:10:02 -07:00