Skip to content

The agent that grows with you

test(e2e): native-runtime homes answer the shared-metrics offer like write_hermes_home

Teknium326aacfbcf4b
diff --git a/tests/e2e/core/providers/_native_helpers.py b/tests/e2e/core/providers/_native_helpers.py
index dac4a7a8c6b..efae044f9d2 100644
--- a/tests/e2e/core/providers/_native_helpers.py
+++ b/tests/e2e/core/providers/_native_helpers.py
@@ -22,6 +22,7 @@ from pathlib import Path
from typing import Any, Callable
import hermes_yaml as yaml
+from hermes_cli.observability.shared_metrics_consent import OFFER_VERSION
REPO_ROOT = Path(__file__).resolve().parents[4]
TURN_TIMEOUT = 180.0
@@ -93,6 +94,9 @@ def make_home(root: Path, model: dict[str, Any], *, env_file: dict[str, str] | N
"updates": {"check": False},
"auxiliary": {"title_generation": {"enabled": False}},
"memory": {"memory_enabled": False, "user_profile_enabled": False},
+ # Answered at the current offer version (as write_hermes_home does), so an interactive
+ # chat never stops on the shared-metrics offer before the UI takes the terminal.
+ "telemetry": {"shared_metrics": {"enabled": False, "send": False, "offer_version": OFFER_VERSION}},
}
for key, value in (extra_config or {}).items():
if isinstance(value, dict) and isinstance(cfg.get(key), dict):