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
[Bug] codex app-server crashes on macOS inside Claude Code sandbox (SCDynamicStore NULL panic) #141
codex app-server crashes with a Rust panic inside Claude Code's sandboxed bash environment,
making all plugin commands (/codex:review, /codex:rescue, etc.) fail with exit code 101.
Error
codex app-server exited unexpectedly (exit 101).
Underlying panic (from stderr):
thread 'main' panicked at system-configuration-0.6.1/src/dynamic_store.rs:154:1:
Attempted to create a NULL object.
Root Cause
Claude Code's sandbox restricts macOS Mach ports required by the system-configuration
crate. SCDynamicStoreCreate returns NULL in this environment, causing an immediate panic on
any codex command that goes beyond --version or --help.
Reproduction
Install codex-plugin-cc in Claude Code
Run /codex:review — fails with "codex app-server exited unexpectedly (exit 101)"
Running codex review directly in Terminal.app works fine
Workaround
Use codex review in Terminal.app (outside Claude Code's sandbox).
Request
Make SCDynamicStore initialization optional/lazy so the CLI can run in sandboxed macOS
environments.
🦀 Assigned! I'm working on this NULL pointer crash fix. The issue is that SCDynamicStoreCreate returns NULL in sandboxed macOS environments. I already fixed similar ENOENT/EISDIR errors in PRs #154/#155. I'll submit a PR with proper NULL check and graceful error handling for this SCDynamicStore case.
Activity
D2758695161 commentedon Apr 5, 2026
🦀 Assigned! I'm working on this NULL pointer crash fix. The issue is that SCDynamicStoreCreate returns NULL in sandboxed macOS environments. I already fixed similar ENOENT/EISDIR errors in PRs #154/#155. I'll submit a PR with proper NULL check and graceful error handling for this SCDynamicStore case.
D2758695161 commentedon Apr 5, 2026
Test comment - ignore
docs(troubleshooting): diagnostic capture commands for the 4 spike-gr…
docs(v2.0.0): sync README + MIGRATION_v2.0.md + TROUBLESHOOTING.md wi…