feat(tui): even better model selector

This commit is contained in:
adamdotdevin
2025-07-14 11:44:19 -05:00
parent 80b77caec0
commit f1e7e7c138
8 changed files with 675 additions and 67 deletions

View File

@@ -30,7 +30,7 @@ type sessionItem struct {
isDeleteConfirming bool
}
func (s sessionItem) Render(selected bool, width int) string {
func (s sessionItem) Render(selected bool, width int, isFirstInViewport bool) string {
t := theme.CurrentTheme()
baseStyle := styles.NewStyle()
@@ -75,6 +75,10 @@ func (s sessionItem) Render(selected bool, width int) string {
return itemStyle.Render(truncatedStr)
}
func (s sessionItem) Selectable() bool {
return true
}
type sessionDialog struct {
width int
height int