{"record":{"id":"9be64487b5abf485","repo":"openai/codex","slug":"approval-policy-untrusted-is-no-longer-support-9be644","errorCode":null,"errorMessage":"approval_policy = \"untrusted\" is no longer supported; remove this setting","messagePattern":"approval_policy = \"untrusted\" is no longer supported; remove this setting","errorType":"exception","errorClass":"UnsupportedUntrustedApprovalPolicyError","httpStatus":null,"severity":"error","filePath":"codex-rs/core/src/config/mod.rs","lineNumber":199,"sourceCode":"pub use managed_features::ManagedFeatures;\npub use network_proxy_spec::NetworkProxySpec;\npub use network_proxy_spec::StartedNetworkProxy;\npub use permission_profile_catalog::PermissionProfileCatalogEntry;\npub use permission_profile_catalog::permission_profile_catalog;\nuse permission_profile_catalog::permission_profile_catalog_from_permissions;\nuse permission_profile_catalog::permission_profile_is_allowed;\nuse permission_profile_catalog::validate_permission_profile_for_deny_read;\npub use permission_profile_selection::ResolvedPermissionProfileSelection;\npub use permission_profile_selection::resolve_permission_profile_selection;\npub(crate) use permissions::is_builtin_permission_profile_name;\npub(crate) use resolved_permission_profile::PermissionProfileState;\n\nconst DEFAULT_IGNORE_LARGE_UNTRACKED_DIRS: i64 = 200;\nconst DEFAULT_IGNORE_LARGE_UNTRACKED_FILES: i64 = 10 * 1024 * 1024;\n\n/// Signals that a public config selected the retired `untrusted` approval policy.\n#[derive(Debug, thiserror::Error)]\n#[error(\"approval_policy = \\\"untrusted\\\" is no longer supported; remove this setting\")]\npub struct UnsupportedUntrustedApprovalPolicyError;\n\n/// Compatibility-only config retained so legacy `ghost_snapshot` settings\n/// continue to load even though snapshots are no longer produced.\n#[derive(Debug, Clone, PartialEq, Eq)]\npub struct GhostSnapshotConfig {\n    pub ignore_large_untracked_files: Option<i64>,\n    pub ignore_large_untracked_dirs: Option<i64>,\n    pub disable_warnings: bool,\n}\n\nimpl Default for GhostSnapshotConfig {\n    fn default() -> Self {\n        Self {\n            ignore_large_untracked_files: Some(DEFAULT_IGNORE_LARGE_UNTRACKED_FILES),\n            ignore_large_untracked_dirs: Some(DEFAULT_IGNORE_LARGE_UNTRACKED_DIRS),\n            disable_warnings: false,\n        }","sourceCodeStart":181,"sourceCodeEnd":217,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/core/src/config/mod.rs#L181-L217","documentation":"Error \"approval_policy = \"untrusted\" is no longer supported; remove this setting\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/core/src/config/mod.rs:199 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove `approval_policy = \"untrusted\"` from the config; it is no longer supported."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}