openai/codex · error · PermissionProfileResolutionError
failed to serialize permissions profile while resolving…
Error message
failed to serialize permissions profile while resolving inheritance: {source} What it means
Resolving permissions profile inheritance merges profiles by round-tripping them through TOML: the merged profile table failed to serialize ({source} is the toml::ser::Error). This indicates a profile containing values that cannot round-trip through TOML — an internal invariant break, not bad user syntax.
Solutions
- Fix the permissions profile so it serializes; if it persists with valid config, report it as an internal error.
Defensive patterns
Strategy: try-catch
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.
Appendix: 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 = parentView on GitHub (pinned to 339751715c)