mirror of
https://github.com/bmadcode/BMAD-METHOD.git
synced 2025-12-29 16:14:59 +00:00
fix: prevent modules from showing as obsolete during reinstall
- Skip module selection prompt during update/reinstall - Keep all existing installed modules by default - This prevents inquirer from showing modules as 'obsolete items' with confusing delete options - Modules are now preserved during update/reinstall operations
This commit is contained in:
@@ -116,8 +116,18 @@ class UI {
|
||||
|
||||
const { installedModuleIds } = await this.getExistingInstallation(confirmedDirectory);
|
||||
const coreConfig = await this.collectCoreConfig(confirmedDirectory);
|
||||
const moduleChoices = await this.getModuleChoices(installedModuleIds);
|
||||
const selectedModules = await this.selectModules(moduleChoices);
|
||||
|
||||
// Skip module selection during update/reinstall - keep existing modules
|
||||
let selectedModules;
|
||||
if (actionType === 'update' || actionType === 'reinstall') {
|
||||
// Keep all existing installed modules during update/reinstall
|
||||
selectedModules = [...installedModuleIds];
|
||||
console.log(chalk.cyan('\n📦 Keeping existing modules: ') + selectedModules.join(', '));
|
||||
} else {
|
||||
// Only show module selection for new installs
|
||||
const moduleChoices = await this.getModuleChoices(installedModuleIds);
|
||||
selectedModules = await this.selectModules(moduleChoices);
|
||||
}
|
||||
|
||||
// Prompt for AgentVibes TTS integration
|
||||
const agentVibesConfig = await this.promptAgentVibes(confirmedDirectory);
|
||||
|
||||
Reference in New Issue
Block a user