Skip to content

[Bug] codex app-server crashes on macOS inside Claude Code sandbox (SCDynamicStore NULL panic) #141

Open

Description

@ainosuke2021x

Environment

  • Claude Code: v2.1.91 (native)
  • Codex CLI: v0.118.0
  • codex-plugin-cc: v1.0.2
  • OS: macOS (Apple Silicon)
  • IDE: Google Antigravity (VS Code-based)

Problem

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

  1. Install codex-plugin-cc in Claude Code
  2. Run /codex:review — fails with "codex app-server exited unexpectedly (exit 101)"
  3. 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.

Activity

  1. D2758695161 commented on Apr 5, 2026

    @D2758695161

    🦀 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.

  2. D2758695161 commented on Apr 5, 2026

    @D2758695161

    Test comment - ignore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions