Relationships
#377 Terminal rendering breaks at large font sizes
Opened by evrardjp · 5/19/2026· Shipped 5/19/2026
Description
Swamp's terminal UI does not render correctly when the terminal font size is increased. Layout elements overflow, wrap incorrectly, or become visually broken, making the output difficult or impossible to read.
Steps to Reproduce
- Open a terminal emulator and increase the font size (e.g. zoom to 20pt or larger, or use Ctrl+= several times).
- Run any swamp command that produces formatted output (e.g.
swamp model list,swamp model get <name>). - Observe that the output layout is broken — columns misalign, borders overflow, or content wraps unexpectedly.
Expected Behavior
Swamp should detect the current terminal dimensions and adapt its rendering to fit within the available columns, regardless of font size.
Actual Behavior
The TUI layout overflows or wraps incorrectly when the terminal font size is large. The issue appears to be related to terminal column/row detection not reacting to the reduced character-cell count that results from a larger font size.
Environment
- Swamp version: 20260518.162558.0-sha.83d24155
- OS: Linux 6.19.14-101.fc44.x86_64 (Fedora 44)
- Shell: bash
Summary
This bug affects the terminal rendering/layout component. The fix would likely involve ensuring swamp re-queries terminal dimensions dynamically (e.g. via TIOCGWINSZ or the $COLUMNS/$LINES environment variables) and uses those values to constrain all output width calculations, rather than relying on a static or incorrectly cached terminal size.
Shipped
Click a lifecycle step above to view its details.