Suppress bwrap warning when sandboxing is bypassed (#16667)

Addresses #15282

Problem: Codex warned about missing system bubblewrap even when
sandboxing was disabled.

Solution: Gate the bwrap warning on the active sandbox policy and skip
it for danger-full-access and external-sandbox modes.
This commit is contained in:
Eric Traut authored and GitHub committed 2026-04-03 10:54:30 -07:00
1 parent a3b3e7a6cc
commit 0f7394883e
5 files changed
+28 -7

No files matched your search

+3 -1
View File
@@ -22,7 +22,9 @@ pub use manager::get_platform_sandbox;
use codex_protocol::error::CodexErr;
#[cfg(not(target_os = "linux"))]
pub fn system_bwrap_warning() -> Option<String> {
pub fn system_bwrap_warning(
_sandbox_policy: &codex_protocol::protocol::SandboxPolicy,
) -> Option<String> {
None
}