summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-12-19 11:06:22 +0300
committerGrail Finder <wohilas@gmail.com>2025-12-19 11:06:22 +0300
commit67ea1aef0dafb9dc6f82e009cc1ecc613f71e520 (patch)
tree331743d4edc223508e96055c0ec5753901273b57 /tui.go
parent5f852418d8d12868df83a9591b15e0846971fff9 (diff)
Feat: two agent types; WebAgentB impl
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go30
1 files changed, 16 insertions, 14 deletions
diff --git a/tui.go b/tui.go
index 53c8cfd..d3ce14e 100644
--- a/tui.go
+++ b/tui.go
@@ -18,21 +18,21 @@ import (
)
var (
- app *tview.Application
- pages *tview.Pages
- textArea *tview.TextArea
- editArea *tview.TextArea
- textView *tview.TextView
+ app *tview.Application
+ pages *tview.Pages
+ textArea *tview.TextArea
+ editArea *tview.TextArea
+ textView *tview.TextView
statusLineWidget *tview.TextView
- helpView *tview.TextView
- flex *tview.Flex
- imgView *tview.Image
- defaultImage = "sysprompts/llama.png"
- indexPickWindow *tview.InputField
- renameWindow *tview.InputField
- roleEditWindow *tview.InputField
- fullscreenMode bool
- positionVisible bool = true
+ helpView *tview.TextView
+ flex *tview.Flex
+ imgView *tview.Image
+ defaultImage = "sysprompts/llama.png"
+ indexPickWindow *tview.InputField
+ renameWindow *tview.InputField
+ roleEditWindow *tview.InputField
+ fullscreenMode bool
+ positionVisible bool = true
// pages
historyPage = "historyPage"
agentPage = "agentPage"
@@ -984,12 +984,14 @@ func init() {
if len(ORFreeModels) > 0 {
currentORModelIndex = (currentORModelIndex + 1) % len(ORFreeModels)
chatBody.Model = ORFreeModels[currentORModelIndex]
+ cfg.CurrentModel = chatBody.Model
}
updateStatusLine()
} else {
if len(LocalModels) > 0 {
currentLocalModelIndex = (currentLocalModelIndex + 1) % len(LocalModels)
chatBody.Model = LocalModels[currentLocalModelIndex]
+ cfg.CurrentModel = chatBody.Model
}
updateStatusLine()
// // For non-OpenRouter APIs, use the old logic