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
spacetime publish panics in system_configuration when run from Codex tool context on macOS #10482
What terminal emulator and version are you using (if applicable)?
No response
What issue are you seeing?
Title spacetime publish panics in system_configuration when run from Codex tool context on macOS
Summary
Running spacetime publish from the Codex app tool context on macOS panics with Attempted to create a NULL object in system_configuration::dynamic_store::SCDynamicStoreBuilder::build, while the same command works fine in a regular terminal.
Environment
OS: macOS
Command context: Codex app tool execution
Working directory: /Users/pziersch/code/spacetimedb-connector/my-spacetime-app
SpacetimeDB CLI: installed locally (same binary used successfully in normal terminal)
Clearing proxy env vars (HTTP_PROXY, HTTPS_PROXY, NO_PROXY) did not help.
Full backtrace available (included below if needed).
Suggest investigating environment/entitlements differences or proxy detection in reqwest/system_configuration when run from tool context.
What steps can reproduce the bug?
Running spacetime publish from the Codex app tool context on macOS panics with Attempted to create a NULL object in system_configuration::dynamic_store::SCDynamicStoreBuilder::build, while the same command works fine in a regular terminal.
What is the expected behavior?
Expected
Module publishes successfully (same as running in a normal terminal).
Actual
Panic with Attempted to create a NULL object.
Codex isn't panicking, correct? If I understand you correctly, one of the tools that the agent is calling is panicking when it's run within the Codex sandbox. It's probably not correctly handling an error condition that arises from the sandbox policy. You will probably need to work with the maintainers of the tool to get that fixed.
I've updated the Seatbelt policy to allow access to SystemConfiguration and mDNS services. This should fix the panic in spacetime publish and the DNS resolution errors. Give it a shot on the latest build.
• Root cause confirmed: this is a sandbox/runtime issue on my side, not your local Moon install.
What I verified:
- Inside default Codex sandbox:
- moon query projects panics with system-configuration... Attempted to create a NULL object.
- scutil --dns returns No DNS configuration available.
- Outside sandbox (escalated run):
- moon query projects works and lists all projects correctly.
- scutil --dns returns normal resolver entries.
Conclusion:
- The Codex sandbox environment doesn’t expose macOS SystemConfiguration data (DNS/proxy store).
- Moon/proto command paths that initialize HTTP/proxy detection hit that missing API and panic.
- This is environment-specific to my restricted execution context.
Activity
etraut-openai commentedon Feb 3, 2026
Codex isn't panicking, correct? If I understand you correctly, one of the tools that the agent is calling is panicking when it's run within the Codex sandbox. It's probably not correctly handling an error condition that arises from the sandbox policy. You will probably need to work with the maintainers of the tool to get that fixed.
corrylc commentedon Feb 3, 2026
This may be related to the panic seen in uv, as the library and error are pretty much identical.
Which means spacetime may just need to update the system_configuration library, as
uvdid.Ashutosh0x commentedon Feb 4, 2026
I've updated the Seatbelt policy to allow access to SystemConfiguration and mDNS services. This should fix the panic in spacetime publish and the DNS resolution errors. Give it a shot on the latest build.
Fix critical issues: MCP thread storm (openai#10581), Windows Sandbox…
Fix critical issues: MCP thread storm (openai#10581), Windows Sandbox…
Hebilicious commentedon Feb 13, 2026
I'm having the same issue with
codex-cli 0.101.0and the latest codex app as well, for similar binaries https://moonrepo.dev/moon and https://moonrepo.dev/proto (https://github.com/moonrepo).I've asked codex to debug and this is the output
@Ashutosh0x did you publish the fix ?