fix(integration): cron preflight reads primary config.yaml via read_user_config_raw()

Compaction put the 'config.yaml' literal within the config-read guard's
proximity window of a raw yaml.safe_load. Use the canonical raw reader with an
explicit path (same semantics: raw primary file, no defaults/overlay).
This commit is contained in:
Teknium
2026-09-03 02:08:03 -07:00
parent 5540860ca6
commit e1487be830
+2 -3
View File
@@ -137,9 +137,8 @@ def _primary_profile_routes_for_current_home() -> list:
if not config_path.exists():
return []
import yaml
with open(config_path, encoding="utf-8") as f:
raw = yaml.safe_load(f) or {}
from hermes_cli.config import read_user_config_raw
raw = read_user_config_raw(config_path) # raw primary file, not the merged current-profile config
routes_raw = raw.get("profile_routes")
if routes_raw is None and isinstance(raw.get("gateway"), dict):
routes_raw = raw["gateway"].get("profile_routes")