The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(cli): keep the full welcome banner in the glyph layout
Tekniume1ac43a4cce4
diff --git a/hermes_cli/cli_loops_mixin.py b/hermes_cli/cli_loops_mixin.pyindex 6af0829de06..8e8c7e0418a 100644--- a/hermes_cli/cli_loops_mixin.py+++ b/hermes_cli/cli_loops_mixin.py@@ -125,10 +125,7 @@ class CLILoopsMixin:out.cursor_goto(0, 0)out.flush()cc = ChatConsole()- if getattr(self, "_modern_layout", False):- from hermes_cli.cli_modern_layout import header_markup- cc.print(header_markup(self))- elif self.compact or shutil.get_terminal_size().columns < 80:+ if self.compact or shutil.get_terminal_size().columns < 80:cc.print(_build_compact_banner())else:tools = get_tool_definitions(enabled_toolsets=self.enabled_toolsets,diff --git a/hermes_cli/cli_modern_layout.py b/hermes_cli/cli_modern_layout.pyindex 5b3a803adda..eb71c807854 100644--- a/hermes_cli/cli_modern_layout.py+++ b/hermes_cli/cli_modern_layout.py@@ -11,7 +11,6 @@ from __future__ import annotationsimport loggingimport osimport re-import shutilimport timefrom datetime import datetime@@ -180,44 +179,6 @@ def turn_footer(summary: str) -> str:return f"{_DIM}─ {body} · {clock}{_RST}" if body else f"{_DIM}─ {clock}{_RST}"-def _short_version() -> str:- """``0.22.1`` from ``0.22.1+127.g7bf3766.dirty``; nothing for an unstamped ``git.<sha>`` tree."""- from hermes_cli.version_info import get_version_info- version = get_version_info().derived_version.split("+", 1)[0]- return version if version[:1].isdigit() else ""---def header_markup(cli) -> str:- """Two-line launch header that replaces the full banner: identity + model, then cwd (branch)."""- from rich.markup import escape- accent, label = _skin_hex("ui_accent", "#FFBF00"), _skin_hex("ui_label", "#DAA520")- glyph, name = _brand_glyph()- model = str(getattr(cli, "model", "") or "")- model = model.split("/")[-1] if "/" in model else model- provider = str(getattr(cli, "provider", "") or "")- via = f" [dim]via {escape(provider)}[/]" if provider and provider != "auto" else ""- version = _short_version()- version = f" [dim]v{escape(version)} ·[/]" if version else " [dim]·[/]"- line1 = f"[bold {accent}]{glyph}[/] [bold {label}]{escape(name)} Agent[/]{version} {escape(model)}{via}"- cwd, room = _cwd_label(), max(12, shutil.get_terminal_size((100, 24)).columns - 2)- cwd = cwd if len(cwd) <= room else "…" + cwd[-(room - 1):]- return f"\n{line1}\n [dim]{escape(cwd)}[/]"---def print_short_banner(cli) -> bool:- """Launch header short of the full banner: the two-line header in this layout, the compact- banner for ``display.compact`` or a terminal under 80 columns. False → print the full banner."""- if is_modern(cli):- cli._console_print(header_markup(cli))- return True- if cli.compact or shutil.get_terminal_size().columns < 80: # the full banner wraps below ~80 cols- from cli import _build_compact_banner- cli._console_print(_build_compact_banner())- cli._show_status()- return True- return False--# ── live region (prompt_toolkit fragments, redrawn every frame) ─────────────────────────────def _cwd_label() -> str:diff --git a/website/docs/user-guide/cli.md b/website/docs/user-guide/cli.mdindex b7780178f88..db2f35ea5b6 100644--- a/website/docs/user-guide/cli.md+++ b/website/docs/user-guide/cli.md@@ -199,9 +199,11 @@ Added multiply; pytest isn't installed here, so I ran the tests directly: 2 pass- `❯` your message, `∴` a reasoning step collapsed to its title and duration (`/reasoning full` prints the text under a `│` gutter), `●` a finished tool call (`✗` in red when it failed, with its exit code), `│` an edit's diff under its row, `☤` the answer, and `─` the turn's summary line.- The composer's top rule carries the live activity (spinner, what's running, elapsed time) on the left and the session title on the right; no spinner row is printed into the scrollback.- The status line sits under the composer: model, context gauge, and working directory (with git branch) on the left; the keys that do something right now on the right.-- Launch shows a two-line header instead of the full banner; `/tools` and `/skills` list what is loaded.+- The welcome banner is the same in both layouts.-Set `display.cli_layout: classic` to keep the boxed reasoning and answer panels, the status bar above the input, and the full welcome banner (which shows your model, terminal backend, working directory, available tools, and installed skills).+Set `display.cli_layout: classic` to keep the boxed reasoning and answer panels and the status bar above the input.++The welcome banner shows your model, terminal backend, working directory, available tools, and installed skills at a glance.### Status Bar