The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
chore: BOM-tolerant source read in the downgrade watcher; config_defaults back under its line cap
Teknium8e5fdcbf4066
diff --git a/gateway/runtime_downgrade_exit.py b/gateway/runtime_downgrade_exit.pyindex b95cc276187..c49c2b564b9 100644--- a/gateway/runtime_downgrade_exit.py+++ b/gateway/runtime_downgrade_exit.py@@ -30,7 +30,7 @@ _PROJECT_ROOT = Path(__file__).resolve().parent.parentdef tree_predates_runtime(root: Path = _PROJECT_ROOT) -> bool:"""True only when the checkout's state-store modules are readable and none defines the ledger."""try:- sources = [path.read_text(encoding="utf-8", errors="replace") for path in root.glob("hermes_state*.py")]+ sources = [path.read_text(encoding="utf-8-sig", errors="replace") for path in root.glob("hermes_state*.py")]except OSError:return False # mid-checkout or unreadable: proves nothingreturn bool(sources) and not any(_RUNTIME_SCHEMA_MARKER in text for text in sources)diff --git a/hermes_cli/config_defaults.py b/hermes_cli/config_defaults.pyindex 3f7df745508..4bb9acd907e 100644--- a/hermes_cli/config_defaults.py+++ b/hermes_cli/config_defaults.py@@ -2098,13 +2098,8 @@ DEFAULT_CONFIG = {"export": {"otlp": {"enabled": False, "endpoint": "", "headers_env": {}}},},"gateway": { # Gateway settings (messaging platforms: Telegram, Discord, Slack, ...).- # A gateway a client auto-started (no service installed: `hermes chat`, `chat -q`, the TUI)- # exits after this many seconds with no attached client, no messaging adapter, no cron /- # kanban work due and no queued turn; the next client starts it again. Never applies to an- # installed service, a Desktop-started or a hand-run `hermes gateway run`. 0 disables.- "unmanaged_idle_exit_seconds": 600,- # Seconds to let a SIGTERM-interrupted gateway agent unwind before adapter/database- # teardown. Keep short so service-manager shutdowns don't exhaust their stop budget.+ "unmanaged_idle_exit_seconds": 600, # client-auto-started gateway only; 0 disables+ # Seconds a SIGTERM-interrupted agent unwinds before teardown (short: service stop budgets)."signal_interrupt_grace_timeout": 1,"service_install_choice": None, # null | install | decline; never authorizes ordinary launch installation.# Durable delivery-obligation ledger: final responses are recorded in state.db around the