Fix (cli): update model list outside of tui

This commit is contained in:
Grail Finder
2026-04-11 16:19:52 +03:00
parent 50035e667b
commit 1504214941
2 changed files with 4 additions and 2 deletions

5
bot.go
View File

@@ -1593,7 +1593,9 @@ func updateModelLists() {
cachedModelColor.Store("green")
updateStatusLine()
UpdateToolCapabilities()
app.Draw()
if !cfg.CLIMode {
app.Draw() // raw?
}
return
}
}
@@ -1779,6 +1781,7 @@ func init() {
if !cfg.CLIMode {
initTUI()
}
go updateModelLists()
tools.InitTools(cfg, logger, store)
// tooler = tools.InitTools(cfg, logger, store)
// tooler.RegisterWindowTools(modelHasVision)