diff --git a/internal/tui/tui.go b/internal/tui/tui.go index 633766a1d80bf8b0056e8d856b71df04613e1101..365db72299865897feb94879f837baa93bff5e43 100644 --- a/internal/tui/tui.go +++ b/internal/tui/tui.go @@ -327,6 +327,9 @@ func (a *appModel) handleKeyPressMsg(msg tea.KeyPressMsg) tea.Cmd { // If the commands dialog is already open, close it return util.CmdHandler(dialogs.CloseDialogMsg{}) } + if a.dialog.HasDialogs() { + return nil // Don't open commands dialog if another dialog is active + } return util.CmdHandler(dialogs.OpenDialogMsg{ Model: commands.NewCommandDialog(a.selectedSessionID), })