Skip to main content
← Back to list
01Issue
BugShippedSwamp CLITeam
Assigneesstack72

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 search at 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 search at 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.2a and a Python pyte emulator across widths 40–200.
  • TUI stack per #708: Ink + yoga-layout + marked-terminal.
02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 4 MOREPR_MERGED+ 1 MORECONTRIBUTOR_NOTIFIED

Shipped

7/17/2026, 10:31:16 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack727/17/2026, 9:24:25 PM
Editable. Press Enter to edit.

kneel commented 7/17/2026, 4:11:08 PM

Sibling finding: #1220 covers the preview draw/clip corruption (overlapping lines / Created: → C… truncation). Same finder widget, different fix.

stack72 commented 7/17/2026, 10:31:24 PM

Thanks @kneel for reporting this! The fix has been merged and a release is on its way. We appreciate your contribution to swamp.

Sign in to post a ripple.