{"record":{"id":"762547677dcfc366","repo":"openai/codex","slug":"guardian-review-session-could-not-disable-feature","errorCode":null,"errorMessage":"guardian review session could not disable `features.{}`: {err}","messagePattern":"guardian review session could not disable `features\\.(.+?)`: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/core/src/guardian/review_session.rs","lineNumber":1450,"sourceCode":"            .map(|network| network.value.clone());\n        guardian_config.permissions.network = Some(NetworkProxySpec::from_config_and_constraints(\n            live_network_config,\n            network_constraints,\n            guardian_config.permissions.permission_profile(),\n        )?);\n    }\n    for feature in [\n        Feature::Collab,\n        Feature::MultiAgentV2,\n        Feature::GuardianV2,\n        Feature::CodexHooks,\n        Feature::Apps,\n        Feature::Plugins,\n        Feature::WebSearchRequest,\n        Feature::WebSearchCached,\n    ] {\n        guardian_config.features.disable(feature).map_err(|err| {\n            anyhow::anyhow!(\n                \"guardian review session could not disable `features.{}`: {err}\",\n                feature.key()\n            )\n        })?;\n        if guardian_config.features.enabled(feature) {\n            warn!(\n                \"guardian review session could not disable `features.{}`; continuing with the feature enabled\",\n                feature.key()\n            );\n        }\n    }\n    Ok(guardian_config)\n}\n\nasync fn run_before_review_deadline<T>(\n    deadline: tokio::time::Instant,\n    external_cancel: Option<&CancellationToken>,\n    future: impl Future<Output = T>,","sourceCodeStart":1432,"sourceCodeEnd":1468,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/core/src/guardian/review_session.rs#L1432-L1468","documentation":"During guardian review session hardening, disabling one of the forbidden features (Collab, MultiAgentV2, GuardianV2, CodexHooks, Apps, Plugins, web search variants) on the cloned config failed. The feature name and error are interpolated; the session cannot start unless all are disabled.","triggerScenarios":"Thrown at codex-rs/core/src/guardian/review_session.rs:1450 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the feature flag name and why disabling it failed; see the reported error."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}