Add secret auth storage config

This commit is contained in:
celia-oai
2026-06-10 17:56:21 -07:00
parent 1a9efd473b
commit ff8f62e2a0
6 changed files with 191 additions and 1 deletions
+8
View File
@@ -81,6 +81,8 @@ pub enum Feature {
ShellTool,
/// Enable Claude-style lifecycle hooks loaded from hooks.json files.
CodexHooks,
/// Store CLI auth in the encrypted local secrets backend when keyring storage is selected.
SecretAuthStorage,
// Experimental
/// Enable JavaScript code mode backed by the in-process V8 runtime.
@@ -744,6 +746,12 @@ pub const FEATURES: &[FeatureSpec] = &[
stage: Stage::Stable,
default_enabled: true,
},
FeatureSpec {
id: Feature::SecretAuthStorage,
key: "secret_auth_storage",
stage: Stage::Stable,
default_enabled: cfg!(windows),
},
FeatureSpec {
id: Feature::UnifiedExec,
key: "unified_exec",
+10
View File
@@ -199,6 +199,16 @@ fn tool_search_is_removed_and_disabled_by_default() {
assert_eq!(feature_for_key("tool_search"), Some(Feature::ToolSearch));
}
#[test]
fn secret_auth_storage_defaults_to_windows_only() {
assert_eq!(Feature::SecretAuthStorage.stage(), Stage::Stable);
assert_eq!(Feature::SecretAuthStorage.default_enabled(), cfg!(windows));
assert_eq!(
feature_for_key("secret_auth_storage"),
Some(Feature::SecretAuthStorage)
);
}
#[test]
fn browser_controls_are_stable_and_enabled_by_default() {
assert_eq!(Feature::InAppBrowser.stage(), Stage::Stable);