hermes-agent/cron
kshitij fb6446fc9e fix(cron): scope cron approval context per session
Replace the process-global HERMES_CRON_SESSION env var with a per-session
ContextVar so a cron tick in the gateway process cannot leak into unrelated
live gateway/API/TUI turns. The cron scheduler now sets the ContextVar
inside the job's try/finally scope and resets it on cleanup. Gateway, API
server, ACP adapter, and TUI gateway all pass cron_session='' to explicitly
mark their sessions as non-cron, masking any stale process env.

Co-authored-by: hinablue <hinablue@gmail.com>
Closes #37968
2026-08-03 00:25:20 +05:30
..
scripts
…
__init__.py
…
blueprint_catalog.py
…
executions.py fix(state): make journal mode canonical and behaviorally verified 2026-07-29 18:13:09 -07:00
jobs.py refactor(cron): drop dead advance_next_run import; wrapper tolerates duplicate ids 2026-08-02 21:15:16 +05:30
lifecycle_guard.py fix(gateway): add submit/bootstrap to lifecycle guard Branch B and label-independent detection 2026-08-01 10:52:08 -07:00
scheduler.py fix(cron): scope cron approval context per session 2026-08-03 00:25:20 +05:30
scheduler_provider.py
…
suggestion_catalog.py
…
suggestions.py
…