fix(tui): update model selection labels for clarity and consistency

This commit is contained in:
taorye 2026-03-09 17:59:26 +08:00
parent 05b14422a1
commit 7d3948830c
No known key found for this signature in database
GPG key ID: EDFFE0AD344F5FE0
2 changed files with 4 additions and 7 deletions

View file

@ -337,16 +337,13 @@ func (s *appState) selectedModelName() string {
func rootModelLabel(selected string) string {
if selected == "" {
return "Model (no model selected)"
return "Model (None)"
}
return "Model (" + selected + ")"
}
func rootModelDescription(selected string) string {
if selected == "" {
return "no model selected"
}
return "selected"
return "Using SPACE to choose your model"
}
func rootChannelLabel(valid bool) string {

View file

@ -44,7 +44,7 @@ func (s *appState) modelMenu() tview.Primitive {
// Add model entry appended at the end so the models map to rows 1..N
items = append(items,
MenuItem{
Label: "Add model",
Label: "**Add model**",
Description: "Append a new model entry",
Action: func() {
newName := s.nextAvailableModelName("new-model")
@ -282,7 +282,7 @@ func refreshModelMenuFromState(menu *Menu, s *appState) {
}
items = append(items,
MenuItem{
Label: "Add model",
Label: "**Add Model**",
Description: "Append a new model entry",
Action: func() {
newName := s.nextAvailableModelName("new-model")