Skip to content

The agent that grows with you

fix(update): also ignore the cron job store on flat installs

liuhao1024eef60cc1ff7c
diff --git a/.gitignore b/.gitignore
index 1d097fb4d50..b187c7a36a5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -171,8 +171,9 @@ docs/superpowers/*
# Flat-install runtime state (checkout root == $HERMES_HOME, e.g. installs made
# with HERMES_INSTALL_DIR=$HERMES_HOME or by older installers): the live session
# store, its SQLite sidecars and retired-WAL capture dirs, quick snapshots, the
-# legacy transcripts, the cron executions ledger, gateway lock/pid files, and
-# cache/spill directories are Hermes-managed runtime state, never code changes.
+# legacy transcripts, the cron job store (jobs.json) and executions ledger,
+# gateway lock/pid files, and cache/spill directories are Hermes-managed runtime
+# state, never code changes.
# Ignore them so `hermes update`'s `git stash push --include-untracked` cannot
# sweep the live state.db/-wal into the stash and unlink it under the running
# gateway (#110648). Nested installs keep all of this under $HERMES_HOME outside
@@ -190,6 +191,7 @@ docs/superpowers/*
/sessions/
/browser-profile/
/cron/executions.db
+/cron/jobs.json
/gateway.lock
/gateway.pid
/hook_outputs/
diff --git a/tests/hermes_cli/test_update_flat_install_state_gitignore.py b/tests/hermes_cli/test_update_flat_install_state_gitignore.py
index 712a2fdc9c5..55fe11753f5 100644
--- a/tests/hermes_cli/test_update_flat_install_state_gitignore.py
+++ b/tests/hermes_cli/test_update_flat_install_state_gitignore.py
@@ -21,8 +21,8 @@ REPO_ROOT = Path(__file__).resolve().parents[2]
# ``hermes update`` would sweep it: the session store plus its SQLite sidecars
# (gateway/platforms/base.py _ROOT_CREDENTIAL_PATHS enumerates the same set) and
# retired-WAL capture dirs, quick snapshots, the legacy transcript dir, the
-# default kanban board, the cron executions ledger, gateway lock/pid files and
-# the cache/spill directories.
+# default kanban board, the cron job store (cron/jobs.py JOBS_FILE) and
+# executions ledger, gateway lock/pid files and the cache/spill directories.
FLAT_INSTALL_RUNTIME_STATE = (
"state.db",
"state.db-wal",
@@ -37,6 +37,7 @@ FLAT_INSTALL_RUNTIME_STATE = (
"sessions/2026-09-14_06-00-00_abcd123d.jsonl",
"browser-profile/Cookies",
"cron/executions.db",
+ "cron/jobs.json",
"gateway.lock",
"gateway.pid",
"hook_outputs/2026-09-14_06-00-00/tool.json",