From bc49f37dce78f24f62eee1b4d5c8e41a3a38048a Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Mon, 22 Dec 2025 12:12:58 +0300 Subject: Enha: keep empty line between messages --- bot.go | 2 +- tui.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bot.go b/bot.go index 8ddcee5..1ad3c94 100644 --- a/bot.go +++ b/bot.go @@ -657,7 +657,7 @@ func chatRound(userMsg, role string, tv *tview.TextView, regen, resume bool) { go sendMsgToLLM(reader) logger.Debug("looking at vars in chatRound", "msg", userMsg, "regen", regen, "resume", resume) if !resume { - fmt.Fprintf(tv, "[-:-:b](%d) ", len(chatBody.Messages)) + fmt.Fprintf(tv, "\n[-:-:b](%d) ", len(chatBody.Messages)) fmt.Fprint(tv, roleToIcon(botPersona)) fmt.Fprint(tv, "[-:-:-]\n") if cfg.ThinkUse && !strings.Contains(cfg.CurrentAPI, "v1") { diff --git a/tui.go b/tui.go index 6f584fc..581ae4f 100644 --- a/tui.go +++ b/tui.go @@ -1254,7 +1254,6 @@ func init() { // cannot send msg in editMode or botRespMode if event.Key() == tcell.KeyEscape && !editMode && !botRespMode { msgText := textArea.GetText() - if shellMode && msgText != "" { // In shell mode, execute command instead of sending to LLM executeCommandAndDisplay(msgText) @@ -1262,7 +1261,7 @@ func init() { return nil } else if !shellMode { // Normal mode - send to LLM - nl := "\n" + nl := "\n\n" // keep empty lines between messages prevText := textView.GetText(true) persona := cfg.UserRole // strings.LastIndex() -- cgit v1.2.3