fix(gateway): use profile-aware Hermes paths in runtime hints
This commit is contained in:
@@ -283,6 +283,19 @@ class TestBuildSessionContextPrompt:
|
||||
assert "Local" in prompt
|
||||
assert "machine running this agent" in prompt
|
||||
|
||||
def test_local_delivery_path_uses_display_hermes_home(self):
|
||||
config = GatewayConfig()
|
||||
source = SessionSource(
|
||||
platform=Platform.LOCAL, chat_id="cli",
|
||||
chat_name="CLI terminal", chat_type="dm",
|
||||
)
|
||||
ctx = build_session_context(source, config)
|
||||
|
||||
with patch("hermes_constants.display_hermes_home", return_value="~/.hermes/profiles/coder"):
|
||||
prompt = build_session_context_prompt(ctx)
|
||||
|
||||
assert "~/.hermes/profiles/coder/cron/output/" in prompt
|
||||
|
||||
def test_whatsapp_prompt(self):
|
||||
config = GatewayConfig(
|
||||
platforms={
|
||||
|
||||
Reference in New Issue
Block a user