[PR #14198] [MERGED] cmd: TUI UX improvements #19834

Closed
opened 2026-04-16 07:18:02 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14198
Author: @ParthSareen
Created: 2/11/2026
Status: Merged
Merged: 2/11/2026
Merged by: @ParthSareen

Base: mainHead: parth-tui-cleanup


📝 Commits (10+)

  • a1fa064 cmd/tui: improve main menu and model picker UX
  • 893523b cmd/config: pin recommended models at top of model list
  • ea849f0 cmd/config: update and add tests for model list sorting
  • 80129fb cmd/config: export ErrCancelled, add install hints, and wire default selectors
  • ca9a4c5 cmd/tui: refactor selector with adaptive colors and reusable rendering
  • 2405be7 cmd/tui: improve main menu UX and delegate modal rendering to selector
  • 72b8005 cmd/config: remove old raw terminal selectors and dead installer code
  • 1797ffe cmd: dynamically populate TUI "Others" from integration registry
  • 483cf84 cmd/config: add model descriptions, VRAM hints, and clickable install links
  • fdff7bd cmd/tui: add model picker sections with pinned scrolling and consolidate styles

📊 Changes

13 files changed (+2099 additions, -1927 deletions)

View changed files

📝 cmd/cmd.go (+64 -14)
📝 cmd/config/claude.go (+1 -2)
📝 cmd/config/integrations.go (+187 -156)
📝 cmd/config/integrations_test.go (+430 -14)
📝 cmd/config/selector.go (+14 -469)
📝 cmd/config/selector_test.go (+0 -913)
cmd/tui/confirm.go (+109 -0)
cmd/tui/confirm_test.go (+208 -0)
📝 cmd/tui/selector.go (+234 -87)
cmd/tui/selector_test.go (+410 -0)
cmd/tui/signin.go (+128 -0)
cmd/tui/signin_test.go (+175 -0)
📝 cmd/tui/tui.go (+139 -272)

📄 Description

  • The model picker now has a "Recommended" section pinned at the top with everything else scrollable below it. Models have descriptions and VRAM hints. Type to filter works across all of them.
  • Sign-in flow was duplicated between ollama launch and the interactive TUI - consolidated both into a single bubbletea program.
  • Removed the rounded border box that looked out of place. URLs are clickable via OSC 8 hyperlinks and wrap properly in narrow terminals.
  • The "Others" integrations list is now dynamically built from the registry instead of being hardcoded. Old raw terminal selectors and dead installer code are gone.
  • Fixed a bug where model downloads would start without confirmation. Also fixed terminal resize causing ghosting/stacking artifacts across all screens - enters alt screen only on actual resize, not on startup. View outputs are clamped to terminal width so help text doesn't wrap and duplicate.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/14198 **Author:** [@ParthSareen](https://github.com/ParthSareen) **Created:** 2/11/2026 **Status:** ✅ Merged **Merged:** 2/11/2026 **Merged by:** [@ParthSareen](https://github.com/ParthSareen) **Base:** `main` ← **Head:** `parth-tui-cleanup` --- ### 📝 Commits (10+) - [`a1fa064`](https://github.com/ollama/ollama/commit/a1fa0644ce3a08404e7a5cca675685f28eff83d4) cmd/tui: improve main menu and model picker UX - [`893523b`](https://github.com/ollama/ollama/commit/893523b6ef725387f6f12eaff51b06a69f2fb774) cmd/config: pin recommended models at top of model list - [`ea849f0`](https://github.com/ollama/ollama/commit/ea849f0dc26074c869993dd156efae78011bdd53) cmd/config: update and add tests for model list sorting - [`80129fb`](https://github.com/ollama/ollama/commit/80129fb94b237dd51df7b432a6b8e9a97a5860e9) cmd/config: export ErrCancelled, add install hints, and wire default selectors - [`ca9a4c5`](https://github.com/ollama/ollama/commit/ca9a4c52d86ca62b20e3ecb233f6560b0e4f35d5) cmd/tui: refactor selector with adaptive colors and reusable rendering - [`2405be7`](https://github.com/ollama/ollama/commit/2405be766f74e2320ff263adfe4a45d1b780391d) cmd/tui: improve main menu UX and delegate modal rendering to selector - [`72b8005`](https://github.com/ollama/ollama/commit/72b8005df7091e9f9abfd738294b7f1f98b16196) cmd/config: remove old raw terminal selectors and dead installer code - [`1797ffe`](https://github.com/ollama/ollama/commit/1797ffe08c6d9d6459e595918a527e42c2517b4f) cmd: dynamically populate TUI "Others" from integration registry - [`483cf84`](https://github.com/ollama/ollama/commit/483cf841f4f869ed888c33ab64772c8187992a79) cmd/config: add model descriptions, VRAM hints, and clickable install links - [`fdff7bd`](https://github.com/ollama/ollama/commit/fdff7bd539746b0762b27b1cb12c9de577247714) cmd/tui: add model picker sections with pinned scrolling and consolidate styles ### 📊 Changes **13 files changed** (+2099 additions, -1927 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+64 -14) 📝 `cmd/config/claude.go` (+1 -2) 📝 `cmd/config/integrations.go` (+187 -156) 📝 `cmd/config/integrations_test.go` (+430 -14) 📝 `cmd/config/selector.go` (+14 -469) 📝 `cmd/config/selector_test.go` (+0 -913) ➕ `cmd/tui/confirm.go` (+109 -0) ➕ `cmd/tui/confirm_test.go` (+208 -0) 📝 `cmd/tui/selector.go` (+234 -87) ➕ `cmd/tui/selector_test.go` (+410 -0) ➕ `cmd/tui/signin.go` (+128 -0) ➕ `cmd/tui/signin_test.go` (+175 -0) 📝 `cmd/tui/tui.go` (+139 -272) </details> ### 📄 Description - The model picker now has a "Recommended" section pinned at the top with everything else scrollable below it. Models have descriptions and VRAM hints. Type to filter works across all of them. - Sign-in flow was duplicated between ollama launch and the interactive TUI - consolidated both into a single bubbletea program. - Removed the rounded border box that looked out of place. URLs are clickable via OSC 8 hyperlinks and wrap properly in narrow terminals. - The "Others" integrations list is now dynamically built from the registry instead of being hardcoded. Old raw terminal selectors and dead installer code are gone. - Fixed a bug where model downloads would start without confirmation. Also fixed terminal resize causing ghosting/stacking artifacts across all screens - enters alt screen only on actual resize, not on startup. View outputs are clamped to terminal width so help text doesn't wrap and duplicate. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 07:18:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#19834