This commit is contained in:
Trivunous 2026-08-14 21:30:28 +08:00 committed by GitHub
commit a3fc3cb98c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -4690,6 +4690,9 @@ def run_job(
os.environ.pop("TERMINAL_CWD", None)
else:
os.environ["TERMINAL_CWD"] = _prior_terminal_cwd
# Remove the process-wide cron sentinel so it does not leak into
# interactive gateway sessions running in the same process (#56771).
os.environ.pop("HERMES_CRON_SESSION", None)
# Release the cwd lock now that the env is restored, so a waiting
# workdir job (or queued reader) can proceed without seeing the override.
if _cwd_lock_acquired: