Handle per-key failures during settings import#401
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughSettings import now validates and sanitizes ChangesGlobal Settings Import Validation and Warning Reporting
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
src/core/config/__tests__/importExport.spec.tsESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox. src/core/config/importExport.tsESLint skipped: the ESLint configuration for this file references a package that is not available in the sandbox. src/utils/__tests__/autoImportSettings.spec.tsESLint skipped: the ESLint configuration for this file references a package that is not available in the sandbox.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Summary
Why
RooCode settings import could fail entirely when a single persisted setting was invalid for the current schema. One concrete case is
imageGenerationProviderreceiving the invalid valueroo, which causes the import path to reject the whole payload.This change makes import behavior more resilient by skipping only the invalid keys, preserving valid settings from the same import, and covering the behavior with regression tests.
Summary by CodeRabbit
New Features
Tests