diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-01-21 21:01:01 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-01-21 21:01:01 +0300 |
| commit | a28e8ef9e250ace5c9624393da308c189c0839f6 (patch) | |
| tree | f2adfa647126c3c7e0d82decbdb888360729a8df /tui.go | |
| parent | 4e597e944eacbeb5269dfdf586dd4a2163762a17 (diff) | |
Enha: charlist in cards
Diffstat (limited to 'tui.go')
| -rw-r--r-- | tui.go | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -836,7 +836,7 @@ func init() { if injectRole { status = "enabled" } - if err := notifyUser("injectRole", fmt.Sprintf("Role injection %s", status)); err != nil { + if err := notifyUser("injectRole", "Role injection "+status); err != nil { logger.Error("failed to send notification", "error", err) } updateStatusLine() @@ -1218,7 +1218,8 @@ func init() { if cfg.WriteNextMsgAsCompletionAgent != "" { botPersona = cfg.WriteNextMsgAsCompletionAgent } - roles := chatBody.ListRoles() + // roles := chatBody.ListRoles() + roles := listChatRoles() if len(roles) == 0 { logger.Warn("empty roles in chat") } @@ -1229,11 +1230,9 @@ func init() { if strings.EqualFold(role, botPersona) { if i == len(roles)-1 { cfg.WriteNextMsgAsCompletionAgent = roles[0] // reached last, get first - botPersona = cfg.WriteNextMsgAsCompletionAgent break } cfg.WriteNextMsgAsCompletionAgent = roles[i+1] // get next role - botPersona = cfg.WriteNextMsgAsCompletionAgent // logger.Info("picked role", "roles", roles, "index", i+1) break } |
