Relationships
#1221 Interactive finder silently drops the preview pane on narrower terminals, and layout selection is unstable
Opened by kneel · 7/17/2026· Shipped 7/17/2026
Description
Two related layout problems in the interactive finder (swamp model search,
model type search, data search, …):
(a) The preview pane is silently discarded below a width threshold. At ≤~88
columns the finder drops the entire right-hand preview pane and switches to a
list-only "compact" layout. All preview content — model type, version, methods,
argument schemas, data metadata — becomes invisible, with no indicator that it exists
and no way to reach it. The footer even loses its Ctrl-u/d scroll preview hint.
Measured threshold: preview present at ≥90 cols, gone at ≤88. 80 columns — the classic
default terminal width — always loses it.
(b) The layout choice is unstable / environment-sensitive. The same command at the same terminal size renders different layouts run-to-run and across terminals, sometimes degrading even with abundant space:
swamp data searchat 200×50 in tmux renders a single-column list with a 2-line truncated inline preview (Model: sp (@kneel/super-productivit…) and NO side pane — while the same command in a real ~200-col terminal renders the full two-column pane.swamp model searchat width 120 renders compact in one emulator, two-column in another.- Right at width 90 it flip-flopped between two-column and compact across identical back-to-back runs — suggesting a racy threshold or an async-load ordering bug in the layout decision.
The compact fallback also drops the title/header bar (─swamp─ … models search ─
becomes a bare Search: ▏ prompt).
Steps to reproduce
(a) In an 80-column terminal (or COLUMNS=80), run swamp model search. There is no
preview pane and no way to see any selected model's details. Widen to ≥90 columns
and the preview reappears.
(b) Run swamp data search in a wide (≥120-col) terminal a few times and/or across
tmux vs. your normal terminal; observe the preview render as a full side pane in
some cases and as a truncated inline 2-liner (or not at all) in others at the same
size.
Expected
- The preview should remain reachable at any usable width — reflow it below the list, or provide a toggle/scroll, rather than silently discarding it.
- Layout selection should be deterministic for a given (width, height, result count).
Environment
- swamp 20260716.194319.0-sha.df9fc306
- Linux (x86_64), zsh;
tput cols= 80 on this machine - Reproduced in
tmux 3.2aand a Pythonpyteemulator across widths 40–200. - TUI stack per #708: Ink + yoga-layout + marked-terminal.
Shipped
Click a lifecycle step above to view its details.