openai/codex · error · ExecPolicyUpdateError
failed to join blocking rules update task: {source}
Error message
failed to join blocking rules update task: {source} What it means
Error "failed to join blocking rules update task: {source}" thrown in openai/codex.
Source
Thrown at codex-rs/core/src/exec_policy.rs:264
#[error("failed to read rules file {path}: {source}")]
ReadFile {
path: PathBuf,
source: std::io::Error,
},
#[error("failed to parse rules file {path}: {source}")]
ParsePolicy {
path: String,
source: codex_execpolicy::Error,
},
}
#[derive(Debug, Error)]
pub enum ExecPolicyUpdateError {
#[error("failed to update rules file {path}: {source}")]
AppendRule { path: PathBuf, source: AmendError },
#[error("failed to join blocking rules update task: {source}")]
JoinBlockingTask { source: tokio::task::JoinError },
#[error("failed to update in-memory rules: {source}")]
AddRule {
#[from]
source: ExecPolicyRuleError,
},
}
pub(crate) struct ExecPolicyManager {
policy: ArcSwap<Policy>,
update_lock: Semaphore,
}
pub(crate) struct ExecApprovalRequest<'a> {
pub(crate) command: &'a [String],
pub(crate) approval_policy: AskForApproval,
pub(crate) permission_profile: PermissionProfile,View on GitHub (pinned to 339751715c)
Solutions
- Retry the rules update; the blocking task failed to join, which indicates an internal runtime problem.
When it happens
Trigger: Thrown at codex-rs/core/src/exec_policy.rs:264 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/86771c9fd5fefee1.
Report an issue: GitHub.