fix: resolve undefined config properties in performUpdate

- Added optional chaining for newConfig.ide access
- Added ides array to config object in performUpdate
- Fixes 'Cannot read properties of undefined' error after update
- Ensures all required config properties are present for showSuccessMessage

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Brian Madison
2025-06-19 12:41:19 -05:00
parent 29e7bbf4c5
commit 0185e012bb

View File

@@ -552,7 +552,8 @@ class Installer {
installType: manifest.install_type,
agent: manifest.agent,
directory: installDir,
ide: newConfig.ide || manifest.ide_setup, // Use new IDE choice if provided
ide: newConfig?.ide || manifest.ide_setup, // Use new IDE choice if provided
ides: newConfig?.ides || manifest.ides_setup || [],
};
await this.performFreshInstall(config, installDir, spinner);