From 9eab2b398fb3b2da938083c9ad21f521bb0f6059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20HOUZ=C3=89?= Date: Mon, 9 Mar 2026 04:27:33 +0100 Subject: [PATCH 1/6] Fix TUI header scrolling off-screen due to viewport overflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Multiple root causes all sharing the same symptom (the title line pushed above the top of the terminal when scrolling): 1. getViewportHeight() stickyHeaderLines condition (tui.ts) The original condition `scrollOffset > 0 && cursor >= scrollOffset` fired on repo rows too, over-reserving 1 line and shrinking the viewport by 1. Fix: mirror the exact 3-condition check used in renderGroups (extract type + findIndex for repo row + repoRowIndex < scrollOffset). 2. Hints line wrapping (render.ts) The hints string (~158 visible chars) wrapped on any terminal < 159 cols, producing 2 physical lines while HEADER_LINES=4 assumed 1. Fix: clip HINTS_TEXT to termWidth before rendering. 3. Section label wrapping (render.ts) Long team names like 'squad-architecture-and-platform-…' made the '──