Skip to content

The agent that grows with you

fix(cli): keep the welcome line under the glyph header

Teknium50d5dbf83452
diff --git a/hermes_cli/cli_modern_layout.py b/hermes_cli/cli_modern_layout.py
index b480448a0b6..de74ee6e2e8 100644
--- a/hermes_cli/cli_modern_layout.py
+++ b/hermes_cli/cli_modern_layout.py
@@ -177,12 +177,14 @@ def turn_footer(summary: str) -> str:
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
- return get_version_info().derived_version.split("+", 1)[0]
+ version = get_version_info().derived_version.split("+", 1)[0]
+ return version if version[:1].isdigit() else ""
-def header_markup(cli, width: int = 0) -> str:
- """Two-line launch header that replaces the full banner: identity + model, then where + help."""
+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()
@@ -193,11 +195,9 @@ def header_markup(cli, width: int = 0) -> str:
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}"
- hint, cwd = t("cli.modern.header_hint"), _cwd_label()
- width = width or shutil.get_terminal_size((100, 24)).columns
- room = max(12, width - 2 - 3 - len(hint))
+ 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)} · {escape(hint)}[/]"
+ return f"\n{line1}\n [dim]{escape(cwd)}[/]"
def print_short_banner(cli) -> bool:
diff --git a/hermes_cli/cli_tui_runtime_mixin.py b/hermes_cli/cli_tui_runtime_mixin.py
index 9f7f9625361..75d9af97534 100644
--- a/hermes_cli/cli_tui_runtime_mixin.py
+++ b/hermes_cli/cli_tui_runtime_mixin.py
@@ -314,8 +314,7 @@ class CLITuiRuntimeMixin:
_welcome_color = _welcome_skin.get_color("banner_text", _welcome_color)
except Exception:
pass
- if not getattr(self, "_modern_layout", False): # the glyph layout's header already greets
- self._console_print(f"[{_welcome_color}]{_welcome_text}[/]")
+ self._console_print(f"[{_welcome_color}]{_welcome_text}[/]")
self._tui_startup_prewarm_and_warnings(_welcome_skin)
self._print_random_tip()
diff --git a/locales/af.yaml b/locales/af.yaml
index 382cef39c56..e2a1a51992a 100644
--- a/locales/af.yaml
+++ b/locales/af.yaml
@@ -1694,7 +1694,6 @@ cli:
thought: "Het gedink"
working: "Besig…"
preparing: "Berei {what} voor…"
- header_hint: "/help vir opdragte · /tools en /skills wys wat gelaai is"
hint_steer: "stuur"
hint_queue: "in tou"
hint_interrupt: "onderbreek"
diff --git a/locales/ar.yaml b/locales/ar.yaml
index fde90591be7..b13f2aabbd3 100644
--- a/locales/ar.yaml
+++ b/locales/ar.yaml
@@ -1694,7 +1694,6 @@ cli:
thought: "فكّر"
working: "يعمل…"
preparing: "جارٍ تحضير {what}…"
- header_hint: "/help للأوامر · ‏/tools و/skills تعرض ما تم تحميله"
hint_steer: "توجيه"
hint_queue: "إضافة للطابور"
hint_interrupt: "مقاطعة"
diff --git a/locales/de.yaml b/locales/de.yaml
index e71b24ceda5..4512fcccf89 100644
--- a/locales/de.yaml
+++ b/locales/de.yaml
@@ -1694,7 +1694,6 @@ cli:
thought: "Nachgedacht"
working: "Arbeitet…"
preparing: "Bereite {what} vor…"
- header_hint: "/help für Befehle · /tools und /skills zeigen, was geladen ist"
hint_steer: "lenken"
hint_queue: "einreihen"
hint_interrupt: "unterbrechen"
diff --git a/locales/en.yaml b/locales/en.yaml
index 49ff858323e..905a7152947 100644
--- a/locales/en.yaml
+++ b/locales/en.yaml
@@ -1765,7 +1765,6 @@ cli:
thought: "Thought"
working: "Working…"
preparing: "Preparing {what}…"
- header_hint: "/help for commands · /tools and /skills list what is loaded"
hint_steer: "steer"
hint_queue: "queue"
hint_interrupt: "interrupt"
diff --git a/locales/es.yaml b/locales/es.yaml
index a0a4a20ecd9..b09599b9cc4 100644
--- a/locales/es.yaml
+++ b/locales/es.yaml
@@ -1694,7 +1694,6 @@ cli:
thought: "Pensó"
working: "Trabajando…"
preparing: "Preparando {what}…"
- header_hint: "/help para comandos · /tools y /skills muestran lo cargado"
hint_steer: "guiar"
hint_queue: "encolar"
hint_interrupt: "interrumpir"
diff --git a/locales/fr.yaml b/locales/fr.yaml
index e08b0ed6e6d..79452579d5e 100644
--- a/locales/fr.yaml
+++ b/locales/fr.yaml
@@ -1946,7 +1946,6 @@ cli:
thought: "Réflexion"
working: "En cours…"
preparing: "Préparation de {what}…"
- header_hint: "/help pour les commandes · /tools et /skills listent ce qui est chargé"
hint_steer: "orienter"
hint_queue: "mettre en file"
hint_interrupt: "interrompre"
diff --git a/locales/ga.yaml b/locales/ga.yaml
index 493011af2e0..1db65cfb6c1 100644
--- a/locales/ga.yaml
+++ b/locales/ga.yaml
@@ -1694,7 +1694,6 @@ cli:
thought: "Smaoinigh"
working: "Ag obair…"
preparing: "{what} á ullmhú…"
- header_hint: "/help le haghaidh orduithe · liostaíonn /tools agus /skills a bhfuil luchtaithe"
hint_steer: "stiúir"
hint_queue: "cuir sa scuaine"
hint_interrupt: "cuir isteach air"
diff --git a/locales/hu.yaml b/locales/hu.yaml
index f96d6cfa722..fc12af3a142 100644
--- a/locales/hu.yaml
+++ b/locales/hu.yaml
@@ -1711,7 +1711,6 @@ cli:
thought: "Gondolkodott"
working: "Dolgozik…"
preparing: "{what} előkészítése…"
- header_hint: "/help a parancsokhoz · /tools és /skills mutatja, mi van betöltve"
hint_steer: "terelés"
hint_queue: "sorba"
hint_interrupt: "megszakítás"
diff --git a/locales/it.yaml b/locales/it.yaml
index ac035be0699..b8fe883b178 100644
--- a/locales/it.yaml
+++ b/locales/it.yaml
@@ -1694,7 +1694,6 @@ cli:
thought: "Ha pensato"
working: "Al lavoro…"
preparing: "Preparazione di {what}…"
- header_hint: "/help per i comandi · /tools e /skills mostrano cosa è caricato"
hint_steer: "guida"
hint_queue: "accoda"
hint_interrupt: "interrompi"
diff --git a/locales/ja.yaml b/locales/ja.yaml
index 2277d752a86..dd4a482db66 100644
--- a/locales/ja.yaml
+++ b/locales/ja.yaml
@@ -1694,7 +1694,6 @@ cli:
thought: "考えました"
working: "作業中…"
preparing: "{what} を準備中…"
- header_hint: "/help でコマンド · /tools と /skills で読み込み内容を表示"
hint_steer: "誘導"
hint_queue: "キュー"
hint_interrupt: "中断"
diff --git a/locales/ko.yaml b/locales/ko.yaml
index 14d054d6bd1..34e1cd65e63 100644
--- a/locales/ko.yaml
+++ b/locales/ko.yaml
@@ -1694,7 +1694,6 @@ cli:
thought: "생각함"
working: "작업 중…"
preparing: "{what} 준비 중…"
- header_hint: "/help 명령어 · /tools, /skills 로 로드된 항목 보기"
hint_steer: "유도"
hint_queue: "대기열"
hint_interrupt: "중단"
diff --git a/locales/pt.yaml b/locales/pt.yaml
index 00e05a24f4f..0bc65b9e4f2 100644
--- a/locales/pt.yaml
+++ b/locales/pt.yaml
@@ -1694,7 +1694,6 @@ cli:
thought: "Pensou"
working: "Trabalhando…"
preparing: "Preparando {what}…"
- header_hint: "/help para comandos · /tools e /skills mostram o que está carregado"
hint_steer: "guiar"
hint_queue: "enfileirar"
hint_interrupt: "interromper"
diff --git a/locales/ru.yaml b/locales/ru.yaml
index 39db5fc5c32..8befa6b38fe 100644
--- a/locales/ru.yaml
+++ b/locales/ru.yaml
@@ -1694,7 +1694,6 @@ cli:
thought: "Размышлял"
working: "Работаю…"
preparing: "Готовлю {what}…"
- header_hint: "/help — команды · /tools и /skills показывают загруженное"
hint_steer: "направить"
hint_queue: "в очередь"
hint_interrupt: "прервать"
diff --git a/locales/tr.yaml b/locales/tr.yaml
index 8e3bb8e9bed..f8bb22f2028 100644
--- a/locales/tr.yaml
+++ b/locales/tr.yaml
@@ -1694,7 +1694,6 @@ cli:
thought: "Düşündü"
working: "Çalışıyor…"
preparing: "{what} hazırlanıyor…"
- header_hint: "/help komutlar · /tools ve /skills yüklenenleri listeler"
hint_steer: "yönlendir"
hint_queue: "sıraya al"
hint_interrupt: "kes"
diff --git a/locales/uk.yaml b/locales/uk.yaml
index c54c9feeb49..63e5ec5d302 100644
--- a/locales/uk.yaml
+++ b/locales/uk.yaml
@@ -1694,7 +1694,6 @@ cli:
thought: "Міркував"
working: "Працюю…"
preparing: "Готую {what}…"
- header_hint: "/help — команди · /tools і /skills показують завантажене"
hint_steer: "спрямувати"
hint_queue: "у чергу"
hint_interrupt: "перервати"
diff --git a/locales/zh-hant.yaml b/locales/zh-hant.yaml
index 221b6e82eb8..86a8cd1579c 100644
--- a/locales/zh-hant.yaml
+++ b/locales/zh-hant.yaml
@@ -1694,7 +1694,6 @@ cli:
thought: "思考"
working: "工作中…"
preparing: "正在準備 {what}…"
- header_hint: "/help 查看指令 · /tools 與 /skills 列出已載入內容"
hint_steer: "引導"
hint_queue: "排隊"
hint_interrupt: "中斷"
diff --git a/locales/zh.yaml b/locales/zh.yaml
index 7a3c07aede3..d72ffec1b9d 100644
--- a/locales/zh.yaml
+++ b/locales/zh.yaml
@@ -1694,7 +1694,6 @@ cli:
thought: "思考"
working: "工作中…"
preparing: "正在准备 {what}…"
- header_hint: "/help 查看命令 · /tools 和 /skills 列出已加载内容"
hint_steer: "引导"
hint_queue: "排队"
hint_interrupt: "中断"