From 9e064e52ad5ef4a3eeba53efd3b42a1cd86d890c Mon Sep 17 00:00:00 2001 From: vikingowl Date: Fri, 3 Apr 2026 16:38:03 +0200 Subject: [PATCH] fix: mode change messages tell model to retry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When permission mode changes (Shift+Tab or /permission), the system message now says "previous tool denials no longer apply, retry if asked" — helps the model understand it should re-attempt tools instead of remembering old denials from conversation history. --- internal/tui/app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/tui/app.go b/internal/tui/app.go index 670e7a2..4420b47 100644 --- a/internal/tui/app.go +++ b/internal/tui/app.go @@ -157,7 +157,7 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } m.config.Permissions.SetMode(next) m.messages = append(m.messages, chatMessage{role: "system", - content: fmt.Sprintf("permission mode: %s", next)}) + content: fmt.Sprintf("permission mode changed to: %s — previous tool denials no longer apply, retry if asked", next)}) m.scrollOffset = 0 } return m, nil @@ -310,7 +310,7 @@ func (m Model) handleCommand(cmd string) (tea.Model, tea.Cmd) { } m.config.Permissions.SetMode(mode) m.messages = append(m.messages, chatMessage{role: "system", - content: fmt.Sprintf("permission mode: %s", mode)}) + content: fmt.Sprintf("permission mode changed to: %s — previous tool denials no longer apply, retry if asked", mode)}) return m, nil case "/provider":