From 67bd33e654815ac4f7d7d7c6a2256ef4e17cbc3a Mon Sep 17 00:00:00 2001 From: emozilla Date: Wed, 7 Oct 2026 00:20:57 -0400 Subject: [PATCH] test(cli): read the first-message latch through Hermes's config loader The CI test interpreter has no PyYAML, so the new test failed to import there. load_user_config_effective is the presence-sensitive reader the runtime uses. --- tests/hermes_cli/test_cli_first_message.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/hermes_cli/test_cli_first_message.py b/tests/hermes_cli/test_cli_first_message.py index 5f06bdb985..d3c84ec2b3 100644 --- a/tests/hermes_cli/test_cli_first_message.py +++ b/tests/hermes_cli/test_cli_first_message.py @@ -13,9 +13,8 @@ import subprocess import sys from pathlib import Path -import yaml - from agent.onboarding import PROFILE_BUILD_FLAG, is_seen +from hermes_cli.config_effective import load_user_config_effective from tests.fakes.fake_llm_provider import FakeLLMServer, Text, write_hermes_home ROOT = Path(__file__).parents[2] @@ -44,5 +43,4 @@ def test_first_cli_message_in_a_fresh_home_reaches_the_model_unchanged(tmp_path) assert requests, f"the model was never called; stderr tail: {proc.stderr[-2000:]}" users = [m["content"] for m in requests[0]["messages"] if m.get("role") == "user"] assert users == [PROMPT] - config = yaml.safe_load((home / "config.yaml").read_text(encoding="utf-8")) or {} - assert not is_seen(config, PROFILE_BUILD_FLAG) + assert not is_seen(load_user_config_effective(home / "config.yaml"), PROFILE_BUILD_FLAG)