Skip to main content

resolve_codex_sandbox

Function resolve_codex_sandbox 

Source
pub fn resolve_codex_sandbox(spec: &SessionSpec, bwrap_ok: bool) -> String
Expand description

Resolves the sandbox mode used by Codex.

Respects spec.sandbox if explicitly specified; if None, falls back to "danger-full-access" when bwrap cannot run normally or permission is Bypass, otherwise selects "read-only" or "workspace-write" based on read_only.