From c65c11bcfbc563611743d02039420533bcfe9d05 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Thu, 5 Mar 2026 11:36:35 +0300 Subject: [PATCH] Fix: shellmode tab completion --- tui.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tui.go b/tui.go index f744825..c6ab392 100644 --- a/tui.go +++ b/tui.go @@ -273,7 +273,7 @@ func init() { shellHistoryPos = -1 } // Handle Tab key for @ file completion - if event.Key() == tcell.KeyTab { + if event.Key() == tcell.KeyTab && shellMode { currentText := shellInput.GetText() atIndex := strings.LastIndex(currentText, "@") if atIndex >= 0 { @@ -1151,7 +1151,7 @@ func init() { chatRoundChan <- &models.ChatRoundReq{Role: persona, UserMsg: msgText} return nil } - if event.Key() == tcell.KeyTab { + if event.Key() == tcell.KeyTab && !shellMode { currentF := app.GetFocus() if currentF == textArea { currentText := textArea.GetText()