fix(gateway): use profile-aware Hermes paths in runtime hints

This commit is contained in:
Xowiek
2026-04-15 22:27:36 +03:00
committed by Teknium
parent 5ef0fe1665
commit 77435c4f13
5 changed files with 34 additions and 3 deletions

View File

@@ -4990,6 +4990,7 @@ class GatewayRunner:
async def _handle_personality_command(self, event: MessageEvent) -> str:
"""Handle /personality command - list or set a personality."""
import yaml
from hermes_constants import display_hermes_home
args = event.get_command_args().strip().lower()
config_path = _hermes_home / 'config.yaml'
@@ -5007,7 +5008,7 @@ class GatewayRunner:
personalities = {}
if not personalities:
return "No personalities configured in `~/.hermes/config.yaml`"
return f"No personalities configured in `{display_hermes_home()}/config.yaml`"
if not args:
lines = ["🎭 **Available Personalities**\n"]

View File

@@ -301,6 +301,8 @@ def build_session_context_prompt(
lines.append("")
lines.append("**Delivery options for scheduled tasks:**")
from hermes_constants import display_hermes_home
# Origin delivery
if context.source.platform == Platform.LOCAL:
lines.append("- `\"origin\"` → Local output (saved to files)")
@@ -309,9 +311,11 @@ def build_session_context_prompt(
_hash_chat_id(context.source.chat_id) if redact_pii else context.source.chat_id
)
lines.append(f"- `\"origin\"` → Back to this chat ({_origin_label})")
# Local always available
lines.append("- `\"local\"` → Save to local files only (~/.hermes/cron/output/)")
lines.append(
f"- `\"local\"` → Save to local files only ({display_hermes_home()}/cron/output/)"
)
# Platform home channels
for platform, home in context.home_channels.items():