{"record":{"id":"9bad900ddaf2fe6b","repo":"Hmbown/CodeWhale","slug":"sandbox-mode-mode-is-not-allowed-by-requiremen","errorCode":null,"errorMessage":"sandbox_mode '{mode}' is not allowed by requirements ({})","messagePattern":"sandbox_mode '(.+?)' is not allowed by requirements \\((.+?)\\)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/config.rs","lineNumber":10154,"sourceCode":"            .iter()\n            .any(|p| p.eq_ignore_ascii_case(&policy))\n        {\n            anyhow::bail!(\n                \"approval_policy '{policy}' is not allowed by requirements ({})\",\n                requirements.allowed_approval_policies.join(\", \")\n            );\n        }\n    }\n    if !requirements.allowed_sandbox_modes.is_empty()\n        && let Some(mode) = config.sandbox_mode.as_ref()\n    {\n        let mode = mode.to_ascii_lowercase();\n        if !requirements\n            .allowed_sandbox_modes\n            .iter()\n            .any(|m| m.eq_ignore_ascii_case(&mode))\n        {\n            anyhow::bail!(\n                \"sandbox_mode '{mode}' is not allowed by requirements ({})\",\n                requirements.allowed_sandbox_modes.join(\", \")\n            );\n        }\n    }\n\n    Ok(())\n}\n\nfn merge_features(\n    base: Option<FeaturesToml>,\n    override_cfg: Option<FeaturesToml>,\n) -> Option<FeaturesToml> {\n    match (base, override_cfg) {\n        (None, None) => None,\n        (Some(mut base), Some(override_cfg)) => {\n            for (key, value) in override_cfg.entries {\n                base.entries.insert(key, value);","sourceCodeStart":10136,"sourceCodeEnd":10172,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/8880682c63083a91624de936797efa3ce9e498fd/crates/tui/src/config.rs#L10136-L10172","documentation":"Error \"sandbox_mode '{mode}' is not allowed by requirements ({})\" thrown in Hmbown/CodeWhale.","triggerScenarios":"Thrown at crates/tui/src/config.rs:10154 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8880682c63083a91624de936797efa3ce9e498fd","analyzedAt":"2026-08-16T11:31:27.956Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}