Skip to content

The agent that grows with you

fix(onboarding): /initiate-setup names the user's profile on every surface

kshitijk4poorf2cd946a19f0
diff --git a/gateway/slash_commands.py b/gateway/slash_commands.py
index 4ecf3407527..09ffb15c32c 100644
--- a/gateway/slash_commands.py
+++ b/gateway/slash_commands.py
@@ -1155,7 +1155,8 @@ class GatewaySlashCommandsMixin(
async def _hm_cmd_initiate_setup(self, event, source, _quick_key):
from agent.initiate_setup_prompt import build_initiate_setup_prompt
from gateway.run import _load_gateway_config, _platform_config_key
- from hermes_constants import get_hermes_home, profile_name_for_home
+ from hermes_cli.setup_profile import primary_profile
+ from hermes_constants import get_hermes_home
from model_tools import get_tool_definitions
def build() -> str:
@@ -1166,7 +1167,7 @@ class GatewaySlashCommandsMixin(
skip_tool_search_assembly=True)
return build_initiate_setup_prompt(
source.platform.value, [tool["function"]["name"] for tool in tools],
- profile_name_for_home(get_hermes_home()) or "default")
+ primary_profile(get_hermes_home()))
return await self._hm_rewrite_turn_to_prompt(
event, source, "initiate-setup", t("gateway.initiate_setup.ack"), build)
diff --git a/hermes_cli/cli_chat_turn_mixin.py b/hermes_cli/cli_chat_turn_mixin.py
index ae3285bf730..b941dd57b77 100644
--- a/hermes_cli/cli_chat_turn_mixin.py
+++ b/hermes_cli/cli_chat_turn_mixin.py
@@ -222,12 +222,13 @@ class CLIChatTurnMixin:
def _handle_initiate_setup_command(self, cmd: str):
from agent.initiate_setup_prompt import build_initiate_setup_prompt
from cli import get_tool_definitions
- from hermes_constants import get_hermes_home, profile_name_for_home
+ from hermes_cli.setup_profile import primary_profile
+ from hermes_constants import get_hermes_home
print("\n" + t("cli.commands.initiate_setup.starting"))
tools = get_tool_definitions(enabled_toolsets=self.enabled_toolsets, disabled_toolsets=self.disabled_toolsets,
quiet_mode=True, skip_tool_search_assembly=True)
names = [tool["function"]["name"] for tool in tools]
- primary = profile_name_for_home(get_hermes_home()) or "default"
+ primary = primary_profile(get_hermes_home())
self._queue_prompt_turn(build_initiate_setup_prompt("cli", names, primary), "/initiate-setup")
def _chat_stage_user_message(self, agent, message):