openai/codex · error · PermissionProfileResolutionError

failed to serialize permissions profile while resolving inhe

Error message

failed to serialize permissions profile while resolving inheritance: {source}

What it means

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

Source

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

        "permissions profile `{profile_name}` extends undefined profile `{parent_profile_name}`"
    )]
    UndefinedParent {
        profile_name: String,
        parent_profile_name: String,
    },
    #[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

View on GitHub (pinned to 339751715c)

Solutions

  1. Fix the permissions profile so it serializes; if it persists with valid config, report it as an internal error.

When it happens

Trigger: Thrown at codex-rs/config/src/permissions_toml.rs:144 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/b5ca58357655f795. Report an issue: GitHub.