mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
feat(core): promote Linux bubblewrap sandbox to Experimental (#11381)
## Summary - Promote `use_linux_sandbox_bwrap` to `Stage::Experimental` on Linux so users see it in `/experimental` and get a startup nudge.
This commit is contained in:
@@ -474,6 +474,13 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
FeatureSpec {
|
||||
id: Feature::UseLinuxSandboxBwrap,
|
||||
key: "use_linux_sandbox_bwrap",
|
||||
#[cfg(target_os = "linux")]
|
||||
stage: Stage::Experimental {
|
||||
name: "Bubblewrap sandbox",
|
||||
menu_description: "Try the new linux sandbox based on bubblewrap.",
|
||||
announcement: "NEW: Linux bubblewrap sandbox offers stronger filesystem and network controls than Landlock alone, including keeping .git and .codex read-only inside writable workspaces. Enable it in /experimental and restart Codex to try it.",
|
||||
},
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
stage: Stage::UnderDevelopment,
|
||||
default_enabled: false,
|
||||
},
|
||||
@@ -652,4 +659,24 @@ mod tests {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
#[test]
|
||||
fn use_linux_sandbox_bwrap_is_experimental_on_linux() {
|
||||
assert!(matches!(
|
||||
Feature::UseLinuxSandboxBwrap.stage(),
|
||||
Stage::Experimental { .. }
|
||||
));
|
||||
assert_eq!(Feature::UseLinuxSandboxBwrap.default_enabled(), false);
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
#[test]
|
||||
fn use_linux_sandbox_bwrap_is_under_development_off_linux() {
|
||||
assert_eq!(
|
||||
Feature::UseLinuxSandboxBwrap.stage(),
|
||||
Stage::UnderDevelopment
|
||||
);
|
||||
assert_eq!(Feature::UseLinuxSandboxBwrap.default_enabled(), false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user