[PR #14302] [MERGED] cmd/tui: default to single-select for editor integrations #19881

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

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14302
Author: @ParthSareen
Created: 2/17/2026
Status: Merged
Merged: 2/18/2026
Merged by: @ParthSareen

Base: mainHead: parth-launch-single-selector


📝 Commits (2)

  • 0665696 cmd/tui: default to single-select for editor integrations
  • cfa61b9 cmd/tui: rename singleMode to multi for idiomatic zero-value default

📊 Changes

3 files changed (+267 additions, -26 deletions)

View changed files

📝 cmd/tui/selector.go (+82 -22)
📝 cmd/tui/selector_test.go (+167 -2)
📝 cmd/tui/tui.go (+18 -2)

📄 Description

Change the multi-select model picker to start in single-select mode. Users pick one model which gets added to their existing config, with the latest pick becoming the default. Press Tab to toggle into full multi-select editing mode.

  • Add singleMode/singleAdd fields to multiSelectorModel
  • Tab toggles between single-select and multi-select modes
  • Single mode renders without checkboxes, multi mode unchanged
  • Last checked model is now the default (not first checked)
  • Cursor starts on the current default model
  • Fix TUI modal to handle single-add results correctly

🔄 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/14302 **Author:** [@ParthSareen](https://github.com/ParthSareen) **Created:** 2/17/2026 **Status:** ✅ Merged **Merged:** 2/18/2026 **Merged by:** [@ParthSareen](https://github.com/ParthSareen) **Base:** `main` ← **Head:** `parth-launch-single-selector` --- ### 📝 Commits (2) - [`0665696`](https://github.com/ollama/ollama/commit/0665696df1981ee140037354e5c644655f55f327) cmd/tui: default to single-select for editor integrations - [`cfa61b9`](https://github.com/ollama/ollama/commit/cfa61b96b0c40fb17b312b96219ab0921afecdcc) cmd/tui: rename singleMode to multi for idiomatic zero-value default ### 📊 Changes **3 files changed** (+267 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `cmd/tui/selector.go` (+82 -22) 📝 `cmd/tui/selector_test.go` (+167 -2) 📝 `cmd/tui/tui.go` (+18 -2) </details> ### 📄 Description Change the multi-select model picker to start in single-select mode. Users pick one model which gets added to their existing config, with the latest pick becoming the default. Press Tab to toggle into full multi-select editing mode. - Add singleMode/singleAdd fields to multiSelectorModel - Tab toggles between single-select and multi-select modes - Single mode renders without checkboxes, multi mode unchanged - Last checked model is now the default (not first checked) - Cursor starts on the current default model - Fix TUI modal to handle single-add results correctly --- <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:19:29 -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#19881