Skip to content

The agent that grows with you

test(cli): assert the short-terminal branch drops description rows entirely

kshitijk4poor377118af8687
diff --git a/tests/hermes_cli/test_curses_radiolist_viewport.py b/tests/hermes_cli/test_curses_radiolist_viewport.py
index 2081d9e6487..e3b7a9cdd7f 100644
--- a/tests/hermes_cli/test_curses_radiolist_viewport.py
+++ b/tests/hermes_cli/test_curses_radiolist_viewport.py
@@ -67,6 +67,10 @@ def test_long_description_keeps_selected_choice_and_hint_visible(run_menu, heigh
assert any("/ search" in row for row in rows)
choices = [row for row in rows if "model-" in row]
assert len(choices) >= min(5, height - 4)
+ if height < 12:
+ # No room for any description row: it is dropped entirely, notice included.
+ assert not any("Unavailable model" in row for row in rows)
+ assert not any("more description lines" in row for row in rows)
if 12 <= height < 50:
assert any("more description lines" in row for row in rows)
if height == 50: