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
The production sandbox image (lightspeed-agentic-sandbox) crashes with exit code 1 when launched via OpenShell gateway. Two issues:
catatonit ENTRYPOINT conflicts with OpenShell supervisor — OpenShell manages container lifecycle and PID 1. Having catatonit as the entrypoint creates a conflict that crashes the container immediately.
CMD auto-starts uvicorn — The spawner separately starts uvicorn via start_server() (exec_stream). If the image CMD also starts uvicorn, they'd conflict on port 8080.
Summary: Production sandbox image crashes under OpenShell due to catatonit ENTRYPOINT conflict and CMD auto-starting uvicorn (which the spawner already manages via exec_stream).
Fix is in the sandbox image repo (jameswnl/lightspeed-agentic-sandbox), not this repo
Verified:
✅ start_server() at L827 starts uvicorn via exec_stream — confirmed the image CMD should NOT also start uvicorn
✅ _DEFAULT_SERVER_COMMAND at L39 includes "uvicorn" — the spawner owns server lifecycle
✅ The fix (CMD ["sleep", "infinity"]) is correct for OpenShell-managed containers
Assessment: This is a sandbox image issue, not a cloud-agents code issue. The spawner code is correct — it expects to manage the server lifecycle via exec_stream. The fix belongs in jameswnl/lightspeed-agentic-sandbox.
No code changes needed in this repo. Consider closing after the sandbox image fix lands, or keep open as a tracking issue with a cross-repo reference.
catatonit ENTRYPOINT — OpenShell overrides the image entrypoint with its own supervisor (/opt/openshell/bin/openshell-sandbox). Having catatonit as well caused a conflict.
Missing sandbox JWT — Supervisor needs a JWT to authenticate back to the gateway for policy fetch. Without gateway_jwt config, supervisor exits with "no sandbox token source available".
Image CMD used correctly — OpenShell reads the image CMD and passes it to the supervisor as OPENSHELL_SANDBOX_COMMAND. With sleep infinity, the sandbox stays alive for exec commands.
Activity
beesarmy commentedon Aug 24, 2026
Triage
Summary: Production sandbox image crashes under OpenShell due to catatonit ENTRYPOINT conflict and CMD auto-starting uvicorn (which the spawner already manages via
exec_stream).Affected components:
src/cloud_agents/spawner/openshell_spawner.py— L417:start_server()already handles uvicorn startup viaexec_stream; L827:start_server()definitionjameswnl/lightspeed-agentic-sandbox), not this repoVerified:
start_server()at L827 starts uvicorn viaexec_stream— confirmed the image CMD should NOT also start uvicorn_DEFAULT_SERVER_COMMANDat L39 includes"uvicorn"— the spawner owns server lifecycleCMD ["sleep", "infinity"]) is correct for OpenShell-managed containersAssessment: This is a sandbox image issue, not a cloud-agents code issue. The spawner code is correct — it expects to manage the server lifecycle via
exec_stream. The fix belongs injameswnl/lightspeed-agentic-sandbox.No code changes needed in this repo. Consider closing after the sandbox image fix lands, or keep open as a tracking issue with a cross-repo reference.
Related:
Suggested labels:
area/spawner,external-fix🤖 Triaged by beesarmy via Claude Code
jameswnl commentedon Aug 24, 2026
E2E test results — sandbox image fix VERIFIED
What was done
Sandbox image fix (PR Make sandbox image compatible with OpenShell supervisor jameswnl/lightspeed-agentic-sandbox#8):
catatonitENTRYPOINTsleep infinity— spawner starts uvicorn viaexec_streamContainerfile.devwith same fix for fast local buildsGateway JWT setup was also needed:
gateway_jwtsection with signing keysTest flow (all passed)
Gateway dev setup
Generate JWT signing keys:
Gateway config (
gateway.toml):Run gateway:
Root causes found
catatonitENTRYPOINT — OpenShell overrides the image entrypoint with its own supervisor (/opt/openshell/bin/openshell-sandbox). Havingcatatonitas well caused a conflict.Missing sandbox JWT — Supervisor needs a JWT to authenticate back to the gateway for policy fetch. Without
gateway_jwtconfig, supervisor exits with "no sandbox token source available".Image CMD used correctly — OpenShell reads the image CMD and passes it to the supervisor as
OPENSHELL_SANDBOX_COMMAND. Withsleep infinity, the sandbox stays alive for exec commands.