openai/codex · error · WorkloadIdentitySessionError
the workload identity process-session registry is…
Error message
the workload identity process-session registry is unavailable
What it means
WorkloadIdentitySessionError variant indicating the process-wide session registry itself could not be accessed — typically a poisoned or missing global slot holding the active session. The session subsystem is unusable regardless of configuration.
Solutions
- Treat the process state as broken and restart it so the registry is re-initialized
- Look for an earlier panic that poisoned the global registry lock and address its root cause
- Report as a bug if it recurs without a preceding panic
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at codex-rs/login/src/auth/workload_identity.rs:117 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/d1a1b3b98d1e0fc3.
Report an issue: GitHub.
Appendix: source
Thrown at codex-rs/login/src/auth/workload_identity.rs:117
}
}
#[derive(Clone, PartialEq, Eq)]
struct WorkloadIdentityFingerprint {
assertion_file: PathBuf,
environment: WorkloadIdentityEnvironment,
federation_rule_id: String,
token_url: String,
workload_identity_context: Option<String>,
}
#[derive(Debug, Error)]
pub(super) enum WorkloadIdentitySessionError {
#[error(transparent)]
Exchange(#[from] WorkloadIdentityError),
#[error("a different workload identity configuration is already active in this process")]
ConflictingConfiguration,
#[error("the workload identity process-session registry is unavailable")]
RegistryUnavailable,
#[error("{0}")]
InvalidConfiguration(String),
}
/// Returns whether workload identity was selected through process configuration.
///
/// Either marker selects workload identity. Partial configuration then fails validation rather
/// than falling back to another credential source.
pub fn is_workload_identity_selected() -> bool {
ProcessEnvironment::read().has_marker()
}
fn resolve_config(
chatgpt_base_url: &str,
environment: ProcessEnvironment,
chatgpt_login_allowed: bool,
auth_route_config: AuthRouteConfig,View on GitHub (pinned to 339751715c)