openai/codex · error · anyhow::Error
zsh fork feature enabled, but no packaged zsh fork is…
Error message
zsh fork feature enabled, but no packaged zsh fork is available for this install
What it means
The ShellZshFork feature flag is enabled but the packaged zsh fork binary is missing from this installation (not vendored/built for this platform), so codex cannot honor the feature and must fall back or fail configuration.
Solutions
- Disable the zsh fork feature, or install a Codex build that packages the zsh fork.
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at codex-rs/core/src/session/session.rs:1147 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/17881ac20d2e2a35.
Report an issue: GitHub.
Appendix: source
Thrown at codex-rs/core/src/session/session.rs:1147
.model_reasoning_summary
.unwrap_or(ReasoningSummaryConfig::Auto),
config.model_context_window,
config.model_auto_compact_token_limit,
config.permissions.approval_policy.value(),
config
.permissions
.legacy_sandbox_policy(session_configuration.cwd().as_path()),
mcp_server_names.iter().map(String::as_str).collect(),
);
let use_zsh_fork_shell = config.features.enabled(Feature::ShellZshFork);
let default_shell = if let Some(user_shell_override) =
session_configuration.user_shell_override.clone()
{
user_shell_override
} else if use_zsh_fork_shell {
let zsh_path = config.zsh_path.as_ref().ok_or_else(|| {
anyhow::anyhow!(
"zsh fork feature enabled, but no packaged zsh fork is available for this install"
)
})?;
if zsh_path.is_file() {
shell::Shell {
shell_type: shell::ShellType::Zsh,
shell_path: zsh_path.clone(),
}
} else {
shell::get_shell(shell::ShellType::Zsh).ok_or_else(|| {
anyhow::anyhow!(
"zsh fork feature enabled, but packaged zsh fork `{}` is not usable",
zsh_path.display()
)
})?
}
} else {
shell::default_user_shell()View on GitHub (pinned to 339751715c)