fix(cli): show active profile in TUI prompt

This commit is contained in:
burjorjee
2026-05-19 00:05:06 -07:00
committed by Teknium
parent 276e6cc52d
commit 8c3b065124
5 changed files with 44 additions and 1 deletions

View File

@@ -1375,6 +1375,15 @@ def _probe_config_health(cfg: dict) -> str:
return " ".join(warnings).strip()
def _current_profile_name() -> str:
try:
from hermes_cli.profiles import get_active_profile_name
return get_active_profile_name() or "default"
except Exception:
return "default"
def _session_info(agent) -> dict:
reasoning_config = getattr(agent, "reasoning_config", None)
reasoning_effort = ""
@@ -1397,6 +1406,7 @@ def _session_info(agent) -> dict:
"update_behind": None,
"update_command": "",
"usage": _get_usage(agent),
"profile_name": _current_profile_name(),
}
try:
from hermes_cli import __version__, __release_date__
@@ -2154,6 +2164,7 @@ def _(rid, params: dict) -> dict:
"skills": {},
"cwd": os.getenv("TERMINAL_CWD", os.getcwd()),
"lazy": True,
"profile_name": _current_profile_name(),
},
},
)