summaryrefslogtreecommitdiff
path: root/tui.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-03-08 06:45:51 +0300
committerGrail Finder <wohilas@gmail.com>2026-03-08 06:45:51 +0300
commit23cb8f2578540e698f590bed35f973a22a8c2f90 (patch)
tree9ed8a70b28f433aa74172297960ccd9fb6b9ed4f /tui.go
parent4f0bce50c53267a9f53938ad1b264d5094a08ce4 (diff)
Chore: remove AutoCleanToolCallsFromCtx, atomic model color
Diffstat (limited to 'tui.go')
-rw-r--r--tui.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/tui.go b/tui.go
index 9c81f7d..d7ea57f 100644
--- a/tui.go
+++ b/tui.go
@@ -42,7 +42,6 @@ var (
confirmPageName = "confirm"
fullscreenMode bool
positionVisible bool = true
- scrollToEndEnabled bool = true
// pages
historyPage = "historyPage"
agentPage = "agentPage"
@@ -634,7 +633,7 @@ func initTUI() {
updateStatusLine()
textView.SetText(chatToText(chatBody.Messages, cfg.ShowSys))
colorText()
- if scrollToEndEnabled {
+ if cfg.AutoScrollEnabled {
textView.ScrollToEnd()
}
// init sysmap
@@ -663,9 +662,9 @@ func initTUI() {
}
if event.Key() == tcell.KeyRune && event.Rune() == '2' && event.Modifiers()&tcell.ModAlt != 0 {
// toggle auto-scrolling
- scrollToEndEnabled = !scrollToEndEnabled
+ cfg.AutoScrollEnabled = !cfg.AutoScrollEnabled
status := "disabled"
- if scrollToEndEnabled {
+ if cfg.AutoScrollEnabled {
status = "enabled"
}
showToast("autoscroll", "Auto-scrolling "+status)
@@ -1139,7 +1138,7 @@ func initTUI() {
fmt.Fprintf(textView, "%s[-:-:b](%d) <%s>: [-:-:-]\n%s\n",
nl, len(chatBody.Messages), persona, msgText)
textArea.SetText("", true)
- if scrollToEndEnabled {
+ if cfg.AutoScrollEnabled {
textView.ScrollToEnd()
}
colorText()