summaryrefslogtreecommitdiffhomepage
path: root/internal/tui/page
diff options
context:
space:
mode:
authorEd Zynda <[email protected]>2025-05-23 14:43:30 +0300
committerGitHub <[email protected]>2025-05-23 06:43:30 -0500
commitb9ebcea82c262dc834633c2c8f44a94fe8773a15 (patch)
tree96ef7e6495574ae0d248a8eafeeb667549d46bad /internal/tui/page
parentf31f92119d95b7b844a5ec0b05533c079b48a7fa (diff)
downloadopencode-b9ebcea82c262dc834633c2c8f44a94fe8773a15.tar.gz
opencode-b9ebcea82c262dc834633c2c8f44a94fe8773a15.zip
really disable history nav when completions dialog is open (#50)
Diffstat (limited to 'internal/tui/page')
-rw-r--r--internal/tui/page/chat.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/tui/page/chat.go b/internal/tui/page/chat.go
index 1b31c838c..e4fb62caf 100644
--- a/internal/tui/page/chat.go
+++ b/internal/tui/page/chat.go
@@ -123,10 +123,12 @@ func (p *chatPage) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return p, nil
case dialog.CompletionDialogCloseMsg:
p.showCompletionDialog = false
+ p.app.SetCompletionDialogOpen(false)
case tea.KeyMsg:
switch {
case key.Matches(msg, keyMap.ShowCompletionDialog):
p.showCompletionDialog = true
+ p.app.SetCompletionDialogOpen(true)
// Continue sending keys to layout->chat
case key.Matches(msg, keyMap.NewSession):
p.app.CurrentSession = &session.Session{}