#Embedded agent failed before reply: (0 , _sandbox.resolveSandboxRuntimeStatus) is not a function

1 messages · Page 1 of 1 (latest)

tacit runeBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

sonic pumiceBOT
exotic daggerBOT
#

That stack points at a version/code mismatch in the agent runtime: something is importing resolveSandboxRuntimeStatus, but the loaded module does not export it in that running install. Most often that’s a partial/stale update or gateway still running old files.

First thing: please run and share:

openclaw --version
openclaw gateway status
openclaw status --all

Then I’d try the clean updater path:

openclaw update
openclaw gateway restart
openclaw doctor
#

This one is clearer: your Codex plugin is newer than the OpenClaw core it is loading from.

The plugin is trying to import:

openclaw/plugin-sdk/agent-harness-task-runtime

but your installed core under /home/toolupload02/.npm-global/lib/node_modules/openclaw does not have that built SDK subpath. That usually means a partial update, or plugins updated without the core update landing/restarting.

Please run:

openclaw --version
openclaw plugins list --json
openclaw update
openclaw gateway restart
openclaw doctor
feral creek
#

codex is up to date (2026.5.22).

exotic daggerBOT
# feral creek codex is up to date (2026.5.22).

That means the plugin side is current, but the core side still looks wrong.

agent-harness-task-runtime exists in OpenClaw core starting at/around 2026.5.22. Your error says the running core path is missing it:

/home/toolupload02/.npm-global/lib/node_modules/openclaw/dist/plugin-sdk/...

Can you run:

openclaw --version
node -e "console.log(require.resolve('openclaw/plugin-sdk/agent-harness-task-runtime'))"
ls /home/toolupload02/.npm-global/lib/node_modules/openclaw/dist/plugin-sdk | grep agent-harness

If openclaw --version is older than 2026.5.22, update core too:

exotic daggerBOT
feral creek
#

i want to use OpenClaw 2026.5.20 (e510042

exotic daggerBOT
# feral creek i want to use OpenClaw 2026.5.20 (e510042

Got it. Then don’t keep @openclaw/codex@2026.5.22 installed against OpenClaw 2026.5.20 - that’s the mismatch causing this. The agent-harness-task-runtime SDK export is present in 2026.5.22, not 2026.5.20.

Pin the Codex plugin back to the same line as core:

openclaw plugins update npm:@openclaw/codex@2026.5.20
openclaw gateway restart

Then verify:

openclaw --version
openclaw plugins list --json
openclaw doctor