summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-02-22 19:06:45 +0300
committerGrail Finder <wohilas@gmail.com>2026-02-22 19:06:45 +0300
commit850ca103e55c782a4998fd0be9593d7b4ae43980 (patch)
tree71e68a38243e4aeb2627223c59ed8620918acc84
parentb7b5fcbf790441d709a3742fb763f646d7c24f68 (diff)
Enha: update model status color
-rw-r--r--popups.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/popups.go b/popups.go
index e0d47af..0226461 100644
--- a/popups.go
+++ b/popups.go
@@ -61,14 +61,11 @@ func showModelSelectionPopup() {
modelListWidget.SetCurrentItem(currentModelIndex)
}
modelListWidget.SetSelectedFunc(func(index int, mainText string, secondaryText string, shortcut rune) {
- // Strip "(loaded)" suffix if present for local llama.cpp models
modelName := strings.TrimPrefix(mainText, "(loaded) ")
- // Update the model in both chatBody and config
chatBody.Model = modelName
cfg.CurrentModel = chatBody.Model
- // Remove the popup page
pages.RemovePage("modelSelectionPopup")
- // Update the status line to reflect the change
+ updateCachedModelColor()
updateStatusLine()
})
modelListWidget.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey {
@@ -162,10 +159,9 @@ func showAPILinkSelectionPopup() {
chatBody.Model = newModelList[0]
cfg.CurrentModel = chatBody.Model
}
- // Remove the popup page
pages.RemovePage("apiLinkSelectionPopup")
- // Update the parser and status line to reflect the change
choseChunkParser()
+ updateCachedModelColor()
updateStatusLine()
})
apiListWidget.SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey {