Chore: remove AutoCleanToolCallsFromCtx, atomic model color

This commit is contained in:
Grail Finder
2026-03-08 06:45:51 +03:00
parent 4f0bce50c5
commit 23cb8f2578
6 changed files with 25 additions and 34 deletions

9
tui.go
View File

@@ -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()