fix: handle provider overlay subtables#228
Conversation
|
@Viniciuscarvalho is attempting to deploy a commit to the Compozy Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
WalkthroughFixes TOML overlay deletion to remove all descendant table/array-table blocks under a deleted path; adds a helper to collect descendant ranges and unit/integration tests covering Codex provider overlay deletion and onboarding. ChangesTOML Overlay Descendant Deletion Fix
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
Actionable comments posted: 0 |
Summary
[providers.codex.models]already exists.Changes
internal/config/persistence.gonow deletes descendant table blocks when the requested parent path is implicit, preventing duplicate TOML table collisions during provider overlay replacement.internal/config/persistence_test.gocovers deleting an implicit provider table subtree containing[providers.codex.models]and[[providers.codex.models.curated]]while preserving unrelated provider tables.internal/settings/service_test.gocovers saving the native CLI Codex provider overlay with a pre-existing[providers.codex.models]block, matching the Web UI first-run setup failure mode..github, or release artifacts found for this internal config persistence fix. Related E2E surfaces areweb/e2e/fixtures/workspace.tsprovider save/onboarding completion flow andweb/e2e/__tests__/settings.spec.tsprovider overlay save/delete coverage.Release Notes
🐛 Bug Fixes
[providers.codex.models].Test plan
go test ./internal/config ./internal/settings -run 'TestOverlayEditorDeleteImplicitTableSubtree|TestCollectionMutationsCodexNativeProviderOverlay' -count=1go test ./internal/config ./internal/settings -count=1make buildmake verifybefore commitmake verifyafter commitFixes #227
Summary by CodeRabbit
Bug Fixes
Tests