app-server panics in sandboxed environments (SCDynamicStore NULL object)
Resolved 💬 1 comment Opened Apr 1, 2026 by shimakazuhito-prog Closed Apr 1, 2026
Description
When running codex app-server inside a sandboxed environment (e.g., Claude Code sandbox on macOS), the process panics with the following error:
nice(5) failed: operation not permitted
thread 'main' panicked at system-configuration-0.6.1/src/dynamic_store.rs:154:1:
Attempted to create a NULL object.
Steps to Reproduce
- Install Claude Code CLI and the Codex plugin
- Run Claude Code inside Cursor IDE (or any sandboxed environment on macOS)
- Invoke a Codex command (e.g.,
/codex:rescue) which triggerscodex app-server
Expected Behavior
app-server should gracefully handle restricted system API access (e.g., SCDynamicStore, nice()) instead of panicking, or provide a clear error message indicating sandbox incompatibility.
Actual Behavior
The process panics due to SCDynamicStore returning NULL when system configuration access is restricted by the sandbox. The nice(5) call also fails with "operation not permitted".
Environment
- codex-cli 0.117.0
- macOS Darwin 25.3.0 (Apple Silicon)
- Running inside Claude Code (Cursor IDE integration) with sandbox enabled
- Node.js v22.17.1
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗