summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-03-08 07:13:27 +0300
committerGrail Finder <wohilas@gmail.com>2026-03-08 07:13:27 +0300
commitc200c9328c4aa7654dc41c0eac02fe1cc267d666 (patch)
tree47d66a7073c18bef313a8283f31598f6fc5ce5a9 /main.go
parent23cb8f2578540e698f590bed35f973a22a8c2f90 (diff)
Enha: botresp, toolresp to atomic
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/main.go b/main.go
index fe92327..ddabff8 100644
--- a/main.go
+++ b/main.go
@@ -1,13 +1,15 @@
package main
import (
+ "sync/atomic"
+
"github.com/rivo/tview"
)
var (
boolColors = map[bool]string{true: "green", false: "red"}
- botRespMode = false
- toolRunningMode = false
+ botRespMode atomic.Bool
+ toolRunningMode atomic.Bool
editMode = false
roleEditMode = false
injectRole = true