Skip to content

The agent that grows with you

test(recovery): distinguish the profile home from the full backup root

Teknium8d4b7414a06f
diff --git a/tests/run_agent/test_corruption_recovery_guidance.py b/tests/run_agent/test_corruption_recovery_guidance.py
index a583544fa85..2112ef1cc89 100644
--- a/tests/run_agent/test_corruption_recovery_guidance.py
+++ b/tests/run_agent/test_corruption_recovery_guidance.py
@@ -43,7 +43,7 @@ def test_gateway_corruption_banner_backups_dir_follows_hermes_home(monkeypatch,
import gateway.run as gateway_run
custom_home = tmp_path / "custom-hermes-home"
- monkeypatch.setenv("HERMES_HOME", str(custom_home))
+ monkeypatch.setenv("HERMES_HOME", str(custom_home / "profiles" / "research"))
runner = object.__new__(gateway_run.GatewayRunner)
runner._session_db_init_error = "database disk image is malformed"
diff --git a/tests/run_agent/test_turn_completion_explainer.py b/tests/run_agent/test_turn_completion_explainer.py
index 36ba698b31c..f4cd12aa20d 100644
--- a/tests/run_agent/test_turn_completion_explainer.py
+++ b/tests/run_agent/test_turn_completion_explainer.py
@@ -164,7 +164,7 @@ def test_explanation_persistence_corrupt_backups_dir_follows_hermes_home(monkeyp
install's backups.
"""
custom_home = tmp_path / "custom-hermes-home"
- monkeypatch.setenv("HERMES_HOME", str(custom_home))
+ monkeypatch.setenv("HERMES_HOME", str(custom_home / "profiles" / "research"))
out = AIAgent._format_turn_completion_explanation(
"session_persistence_failed", "corrupt"
)