fix(cli): show active profile in TUI prompt
This commit is contained in:
@@ -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(),
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user