summaryrefslogtreecommitdiff
path: root/popups.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-02-22 07:41:09 +0300
committerGrail Finder <wohilas@gmail.com>2026-02-22 07:41:09 +0300
commit86260e218c8320b227d84bb3df1ba4e11779d504 (patch)
tree756410679273ac59902d0d5e1b1fd86e814d664d /popups.go
parent2c694e2b2b76ea9a5b30dbd979731ba92cb1e3ba (diff)
Enha: moke (loaded) indicator prefix instead of a suffix
Diffstat (limited to 'popups.go')
-rw-r--r--popups.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/popups.go b/popups.go
index e5c46a1..9fdc1fd 100644
--- a/popups.go
+++ b/popups.go
@@ -62,7 +62,7 @@ func showModelSelectionPopup() {
}
modelListWidget.SetSelectedFunc(func(index int, mainText string, secondaryText string, shortcut rune) {
// Strip "(loaded)" suffix if present for local llama.cpp models
- modelName := strings.TrimSuffix(mainText, " (loaded)")
+ modelName := strings.TrimPrefix(mainText, "(loaded) ")
// Update the model in both chatBody and config
chatBody.Model = modelName
cfg.CurrentModel = chatBody.Model