Skip to content

The agent that grows with you

test(e2e): the fixture's shared-metrics answer carries offer_version, so interactive suites stop on no prompt

kshitijk4poor22fcbee4927a
diff --git a/tests/fakes/fake_llm_provider.py b/tests/fakes/fake_llm_provider.py
index 339adb7e87e..4c899c21ffe 100644
--- a/tests/fakes/fake_llm_provider.py
+++ b/tests/fakes/fake_llm_provider.py
@@ -32,6 +32,8 @@ from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
from pathlib import Path
from typing import Any, Callable, Union
+from hermes_cli.observability.shared_metrics_consent import OFFER_VERSION
+
MODEL_ID = "fake-model"
@@ -430,10 +432,13 @@ def write_hermes_home(
" context_length: 128000\n"
"agent:\n"
" api_max_retries: 1\n"
- # Answered, so an interactive chat never stops on the one-time shared-metrics offer.
+ # Answered at the current offer version, so an interactive chat never stops on the
+ # shared-metrics offer (a "No thanks" without offer_version is re-asked).
"telemetry:\n"
" shared_metrics:\n"
" enabled: false\n"
+ " send: false\n"
+ f" offer_version: {OFFER_VERSION}\n"
+ extra_config,
encoding="utf-8",
)