[Feat] Add a persisted opt-in setting for DCG - #1061
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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! |
5c460bd to
baade5f
Compare
e655ee2 to
28fb788
Compare
Related GitHub Issue
Closes #1057
Part of #1049. Split from #1050.
Description
Adds the persisted
destructiveCommandGuardEnabledsetting across shared types, extension/provider state, SettingsView's local cached state, save handling, and Auto-Approve settings UI.Enabling verifies DCG installation. Failure normalizes the setting back to disabled and shows a localized error. Existing allowlist/denylist behavior remains available while DCG is disabled. This PR does not yet change command approval policy.
Stack
3 / 4 — base:
feat/dcg-binary-serviceDepends on PR 2 only for enable-time installation verification.
Test Procedure
Result: 183 extension and 11 webview tests passed; all type-checks, lint, and translation validation passed.
Checklist