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
Windows: codex CLI crashes on ls -R . & sandbox initialization failure #248
🐛 Steps to Reproduce
Open a PowerShell prompt in your project folder.
Run codex.
At the codex> prompt, enter:
powershell
Copy
Edit
ls -R .
🤔 What Happens
Error: spawn ls ENOENT
The tool attempts to execute ls, which isn’t available on Windows.
Sandbox error:
vbnet
Copy
Edit
Error: Sandbox was mandated, but no sandbox is available!
at Q3e (cli.js:439:254)
The mandatory sandbox step then crashes the process.
Three.js warnings & errors (from my project code):
THREE.OrbitControls is not a constructor
Deprecation: build/three.min.js removed in r160 (r150+ warn).
✅ Expected Behavior
Fall back to a Windows‐compatible directory listing (e.g. dir) or use Node’s fs.readdir.
If sandbox can’t be initialized, continue in “no‑sandbox” mode rather than exit.
Example snippets should load OrbitControls via ES Module path:
js
Copy
Edit
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
💡 Suggested Fixes
Cross‑Platform ls Replacement
Detect OS and run dir on Windows, or use fs.readdir internally.
Sandbox Fallback
Make sandbox optional or provide a no‑sandbox flag so the CLI remains usable.
Three.js Module Imports
Update docs and examples to use ES Modules (r150+), e.g.:
js
Copy
Edit
import * as THREE from 'three';
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
Activity
tibo-openai commentedon Apr 17, 2025
We should detect the platform and return a friendly error on windows that sandboxing / full-auto isn't supported. Will accept a PR with a fix!
fix: improve Windows compatibility for CLI commands and sandbox (#261)
fix: improve Windows compatibility for CLI commands and sandbox (open…
tibo-openai commentedon Apr 17, 2025
Fixed by ymichael@e26ccb3
LuSrodri commentedon Apr 18, 2025
Thanks @tibo-openai @liviuolos @ymichael !
Someone knows where I can read more about the Codex environments compatibility? I am fail in found this...
fix: improve Windows compatibility for CLI commands and sandbox (open…
fix(sentinel): vendor empirica openai#248 — cortex mailbox reads noet…