Files
hermes-webui/tests
e84a91cdbd stage #4646 (roian6): pin cronjob profile caches during chat runs (fixes #4580 follow-up) (#4655)
In-chat cronjob tool reached cron.jobs whose path constants snapshot at import, so a
chat under a named profile hit the DEFAULT profile's cron dirs. Adds a per-turn
contextvar (_STREAMING_CRON_PROFILE_HOME, reset on every exit) + a tool-call-boundary
wrapper that enters cron_profile_context_for_home() only while the cronjob handler runs
(cron lock, restored immediately — no whole-turn global mutation). Verified: agent
executor's propagate_context_to_thread uses unfiltered contextvars.copy_context() so the
contextvar reaches the sync handler on the ThreadPool worker; reset-token symmetry intact.
Code byte-faithful from PR head c3fd6ab22f8c. 12 own tests pass.

Co-authored-by: nesquena-hermes <agent@nesquena-hermes>
Co-authored-by: roian6 <roian6@users.noreply.github.com>
2026-06-21 20:38:28 -07:00
..
2026-05-18 16:44:36 +00:00
2026-05-05 01:51:05 +00:00
2026-06-20 07:12:51 +00:00
2026-04-29 21:34:27 -07:00