From 20e09746f06c1eae79603222c25533fb29f596fa Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 3 May 2026 03:31:56 -0700 Subject: [PATCH] fix(tui): avoid oversized first render --- tui/tui.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tui/tui.go b/tui/tui.go index 7b4dbf1..56b61a3 100644 --- a/tui/tui.go +++ b/tui/tui.go @@ -296,6 +296,8 @@ func Run(ctx context.Context, opts Options) error { model.width = width model.height = height model.ensureVisible() + } else { + model.height = 12 } runCtx, stopSignals := signal.NotifyContext(ctx, os.Interrupt, syscall.SIGTERM, syscall.SIGHUP, syscall.SIGQUIT) defer stopSignals() @@ -1502,7 +1504,7 @@ func (m model) View() string { width := maxInt(m.width, 40) height := m.height if height <= 0 { - height = 24 + height = 12 } layout := m.layout() header := m.renderHeader(width)