You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Panic: plugin cache root resolution fails when running in a git worktree #16637
Codex panics immediately after the SessionStart hook completes.
Expected behavior
Codex should resolve its plugin cache root to ~/.codex/plugins/cache/ (absolute) regardless of the current working directory.
Actual behavior
The plugin cache root is resolved relative to CWD. When CWD is a worktree under /tmp/, the path doesn't exist and Codex panics. On macOS, /tmp is a symlink to /private/tmp, which may compound the issue.
Plugin cache location: ~/.codex/plugins/cache/openai-curated/ (exists and populated)
Context
This blocks using Codex in isolated worktree workflows (e.g., Claude Code's Codex plugin dispatching work to a temp worktree). The workaround is disabling all plugins before running in a worktree, but that shouldn't be necessary.
Activity
github-actions commentedon Apr 3, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Fix plugin cache panic when cwd is unavailable (#18499)
Fix plugin cache panic when cwd is unavailable (openai#18499)
Fix plugin cache panic when cwd is unavailable (openai#18499)