Removing modules.length, moduleSelected, and currentModuleId from the connect dependency array prevents the socket from closing when progress loads multiple modules with none selected, allowing change_module to be sent from the module picker.