mirror of
https://github.com/openai/codex.git
synced 2026-11-23 23:10:47 +00:00
Add secret auth storage config
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user