Roo-Code/src/core/config
Daniel 12ae900660
fix: handle null/empty custom modes files to prevent 'Cannot read properties of null' error (#5526)
* fix: handle null/empty custom modes files to prevent 'Cannot read properties of null' error

- Fix SimpleInstaller to ensure existingData is always an object after yaml.parse
- Fix CustomModesManager.parseYamlSafely to return empty object instead of null
- Ensure customModes array is always initialized in both install and remove operations
- Add tests for empty/null file handling scenarios
- Update existing tests to match correct behavior

* fix: handle null/undefined settings in updateModesInFile and loadModesFromFile

- Ensure settings object exists before accessing customModes property
- Initialize customModes as empty array if undefined
- Prevent 'Cannot read properties of null' error during mode import
- Add proper validation in loadModesFromFile before schema check
2025-07-09 15:49:32 -05:00
..
__tests__ refactor: remove legacy codebaseIndexOpenAiCompatibleModelDimension property (#5459) 2025-07-08 14:43:03 -04:00
ContextProxy.ts Fix code index secret persistence and improve settings UX (#5158) 2025-07-03 18:33:20 -04:00
CustomModesManager.ts fix: handle null/empty custom modes files to prevent 'Cannot read properties of null' error (#5526) 2025-07-09 15:49:32 -05:00
importExport.ts fix: correct export/import of OpenAI Compatible codebase indexing set… (#5383) 2025-07-07 11:53:33 -04:00
ProviderSettingsManager.ts Roo Code Cloud (#4069) 2025-05-28 20:43:30 -07:00