openai/codex · error · PermissionProfileResolutionError

failed to deserialize merged permissions profile while resol

Error message

failed to deserialize merged permissions profile while resolving inheritance: {source}

What it means

Error "failed to deserialize merged permissions profile while resolving inheritance: {source}" thrown in openai/codex.

Source

Thrown at codex-rs/config/src/permissions_toml.rs:149

    },
    #[error(
        "permissions profile `{profile_name}` cannot extend unsupported built-in profile `{parent_profile_name}`"
    )]
    UnsupportedBuiltInParent {
        profile_name: String,
        parent_profile_name: String,
    },
    #[error(
        "permissions profile inheritance cycle detected: {}",
        cycle.join(" -> ")
    )]
    Cycle { cycle: Vec<String> },
    #[error("failed to serialize permissions profile while resolving inheritance: {source}")]
    SerializeProfileToml {
        #[source]
        source: toml::ser::Error,
    },
    #[error(
        "failed to deserialize merged permissions profile while resolving inheritance: {source}"
    )]
    DeserializeProfileToml {
        #[source]
        source: toml::de::Error,
    },
}

fn merge_permission_profiles(
    mut parent: PermissionProfileToml,
    mut child: PermissionProfileToml,
) -> Result<PermissionProfileToml, PermissionProfileResolutionError> {
    let merges_network_domains = parent
        .network
        .as_ref()
        .and_then(|network| network.domains.as_ref())
        .is_some()
        && child

View on GitHub (pinned to 339751715c)

Solutions

  1. Fix the inherited permissions profiles so their merge produces a valid profile.

When it happens

Trigger: Thrown at codex-rs/config/src/permissions_toml.rs:149 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of openai/codex@339751715c (2026-08-25). Data as JSON: /api/errors/9d9e62cd998db99c. Report an issue: GitHub.