#Codex Harnes Failed

1 messages Β· Page 1 of 1 (latest)

loud pebble
#

hi after updating to v2026.5.9-beta.1
the chat dosent answer anymore it gives this error in console
10:54:57 [ws] ⇄ res βœ“ commands.list 196ms conn=2c029d3c…d243 id=63a5e882…2c15
10:54:57 [ws] ⇄ res βœ“ sessions.list 200ms conn=2c029d3c…d243 id=609ae0f4…33e8
10:54:57 [ws] ⇄ res βœ“ chat.history 204ms conn=2c029d3c…d243 id=3dd14ac6…f9a4
10:55:06 [agent/embedded] workspace bootstrap file MEMORY.md is 37563 chars (limit 32000); truncating in injected context
10:55:06 [agents/harness] Codex agent harness failed; not falling back to embedded PI backend
10:55:06 [diagnostic] lane task error: lane=main durationMs=1268 error="Error: unsafe native hook relay bridge directory permissions"
10:55:06 [diagnostic] lane task error: lane=session:agent:main:main durationMs=1271 error="Error: unsafe native hook relay bridge directory permissions"
Embedded agent failed before reply: unsafe native hook relay bridge directory permissions

honest kelpBOT
#

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

tepid raptorBOT
#

That error is from the new Codex native hook relay safety check, not from MEMORY.md β€” the memory line is just a warning/truncation.

OpenClaw expects this temp relay directory to be owned by the gateway user and private (0700):

ls -ld /tmp/openclaw-native-hook-relays-$(id -u)
chmod 700 /tmp/openclaw-native-hook-relays-$(id -u)
openclaw gateway restart

If ls -ld shows it’s owned by a different user/root, either change ownership or remove that temp dir and restart so OpenClaw recreates it:

sudo chown -R "$USER":"$(id -gn)" /tmp/openclaw-native-hook-relays-$(id -u)
chmod 700 /tmp/openclaw-native-hook-relays-$(id -u)
openclaw gateway restart
loud pebble
#

im hosting it locally on windows

tepid raptorBOT
#

Ah β€” if it’s truly running as native Windows, that exact directory permissions check shouldn’t normally fire. So either OpenClaw is actually running under WSL/Docker/Git-Bash-ish Linux, or this beta has a Windows-specific regression around the relay temp dir.

Can you run these from the same terminal/user that starts OpenClaw?

openclaw --version
openclaw status --all
node -p "process.platform + ' ' + require('os').tmpdir()"

Quick safe thing to try on native Windows:

openclaw gateway stop
Remove-Item -Recurse -Force "$env:TEMP\openclaw-native-hook-relays-*" -ErrorAction SilentlyContinue
openclaw gateway start
#

If node -p prints linux, then it’s WSL/Linux and the fix is the /tmp/... chmod/chown one from above. If it prints win32 and still errors, I’d treat this as a beta bug and file it here with the status --all output: https://github.com/openclaw/openclaw/issues

loud pebble
#

PS C:\Users\ibrah> openclaw --version
OpenClaw 2026.5.9-beta.1 (0d3141e)
PS C:\Users\ibrah> openclaw status --all

🦞 OpenClaw 2026.5.9-beta.1 (0d3141e)
I'm the assistant your terminal demanded, not the one your sleep schedule requested.

β”‚
OpenClaw status --all

Overview
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Item β”‚ Value β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Version β”‚ 2026.5.9-beta.1 β”‚
β”‚ OS β”‚ windows 10.0.26200 (x64) β”‚
β”‚ Node β”‚ 22.19.0 β”‚
β”‚ Config β”‚ ~.openclaw\openclaw.json β”‚
β”‚ Dashboard β”‚ http://127.0.0.1:18789/ β”‚
β”‚ Tailscale exposure β”‚ off β”‚
β”‚ Channel β”‚ beta (config) β”‚
β”‚ Update β”‚ pnpm Β· up to date Β· npm beta 2026.5.9-beta.1 β”‚
β”‚ Gateway β”‚ local Β· ws://127.0.0.1:18789 (local loopback) Β· reachable 102ms Β· auth token Β· MagicBlack (26. β”‚
β”‚ β”‚ 88.112.181) app 2026.5.9-beta.1 windows 10.0.26200 β”‚
β”‚ Security β”‚ Run: openclaw security audit --deep β”‚
β”‚ Gateway self β”‚ unknown β”‚
β”‚ Gateway service β”‚ Scheduled Task installed Β· registered Β· running β”‚
β”‚ Node service β”‚ Scheduled Task not installed β”‚
β”‚ Agents β”‚ 1 total Β· 0 bootstrapping Β· 1 active Β· 2 sessions β”‚
β”‚ Secrets β”‚ none β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Channels
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Channel β”‚ Enabled β”‚ State β”‚ Detail β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ WhatsApp β”‚ ON β”‚ OK β”‚ configured Β· accounts 1/1 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

WhatsApp accounts
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Account β”‚ Status β”‚ Notes β”‚

#

β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ default β”‚ OK β”‚ dm:allowlist Β· credential available in gateway runtime Β· allow:393281396413 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Agents
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Agent β”‚ Bootstrap file β”‚ Sessions β”‚ Active β”‚ Store β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ main β”‚ ABSENT β”‚ 2 β”‚ 5m ago β”‚ ~.openclaw\agents\main\sessions\sessions.json β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Diagnosis (read-only)

Gateway connection details:
Gateway target: ws://127.0.0.1:18789
Source: local loopback
Config: C:\Users\ibrah.openclaw\openclaw.json
Bind: loopback

βœ“ Config: C:\Users\ibrah.openclaw\openclaw.json
βœ“ Secret diagnostics (0)
βœ“ Restart sentinel: none
! Port 18789
Port 18789 is already in use.

  • pid 101484: "C:\Program Files\nodejs\node.exe" C:\Users\ibrah\AppData\Roaming\npm\node_modules\openclaw\dist\index.js gateway --port 18789 (127.0.0.1:18789)
  • Gateway already running locally. Stop it (openclaw gateway stop) or use a different port.
    ! Tailscale exposure: off Β· daemon unknown
    βœ“ Skills: 29 eligible Β· 0 missing Β· C:\Users\ibrah\clawd
    βœ“ Plugin compatibility (none)

Gateway restart attempts (tail): C:\Users\ibrah.openclaw\logs\gateway-restart.log
[2026-04-26T23:31:38.9867808+02:00] openclaw restart log initialized
[2026-04-26T23:31:38.9927882+02:00] openclaw restart attempt source=update target=OpenClaw Gateway
[2026-04-26T23:31:40.0438629+02:00] SUCCESS: The scheduled task "OpenClaw Gateway" has been terminated successfully.
[2026-04-26T23:31:41.6167561+02:00] SUCCESS: Attempted to run the scheduled task "OpenClaw Gateway".
[2026-04-26T23:31:41.6202677+02:00] openclaw restart done source=update
… 14 lines omitted …
[2026-04-27T21:53:31.7519781+02:00] openclaw restart done source=update
[30/04/2026 20:04:31.46] openclaw restart log initialized
[30/04/2026 20:04:31.47] openclaw restart attempt source=windows-task-handoff target="OpenClaw Gateway"
[30/04/2026 20:04:35.02] openclaw restart finished source=windows-task-handoff
[30/04/2026 20:38:37.70] openclaw restart log initialized
[30/04/2026 20:38:37.70] openclaw restart attempt source=windows-task-handoff target="OpenClaw Gateway"
[30/04/2026 20:38:39.23] openclaw restart finished source=windows-task-handoff
[10/05/2026 10:46:51.05] openclaw restart log initialized
[10/05/2026 10:46:51.06] openclaw restart attempt source=windows-task-handoff target="OpenClaw Gateway"
[10/05/2026 10:46:52.31] openclaw restart finished source=windows-task-handoff
βœ“ Channel issues (none)

Pasteable debug report. Auth tokens redacted.
Troubleshooting: https://docs.openclaw.ai/troubleshooting

β—‡
PS C:\Users\ibrah> node -p "process.platform + ' ' + require('os').tmpdir()"
win32 C:\Users\ibrah\AppData\Local\Temp
PS C:\Users\ibrah>

tepid raptorBOT
#

Thanks β€” that confirms native Windows. I’m now pretty convinced this is a 2026.5.9-beta.1 Codex harness regression on Windows, because the permission check that throws that exact error is supposed to be Linux/macOS-style, not Windows.

Two useful next steps:

  1. Try clearing the relay temp dir and restarting the scheduled task:
openclaw gateway stop
Remove-Item -Recurse -Force (Join-Path ([IO.Path]::GetTempPath()) "openclaw-native-hook-relays-*") -ErrorAction SilentlyContinue
openclaw gateway start

Then start a fresh chat/session (/new or /reset) and test again.

  1. Please also run this and paste the output:
node -p "process.platform + ' tmp=' + require('os').tmpdir() + ' uid=' + (process.getuid?.() ?? 'none')"
loud pebble
#

PS C:\Users\ibrah> node -p "process.platform + ' tmp=' + require('os').tmpdir() + ' uid=' + (process.getuid?.() ?? 'none')"
win32 tmp=C:\Users\ibrah\AppData\Local\Temp uid=none

tepid raptorBOT
#

Yep, this output is clean aside from the actual Codex harness crash. The Port 18789 is already in use warning is normal here β€” it’s just saying the gateway is already running on that port.

Since process.platform is win32, this looks like a beta regression in the native Codex hook relay on Windows.

Try the temp cleanup first:

openclaw gateway stop
Remove-Item -Recurse -Force (Join-Path ([IO.Path]::GetTempPath()) "openclaw-native-hook-relays-*") -ErrorAction SilentlyContinue
openclaw gateway start

Then in the chat, run /new or /reset and send a test message.

If it still fails, quickest workaround is to leave beta for now:

#

Perfect, that confirms it’s native Windows (win32, no uid), so the Linux-style permission failure is almost certainly a Windows bug in 2026.5.9-beta.1’s Codex harness path.

Do this next:

openclaw gateway stop
Remove-Item -Recurse -Force (Join-Path ([IO.Path]::GetTempPath()) "openclaw-native-hook-relays-*") -ErrorAction SilentlyContinue
openclaw gateway start

Then /new or /reset in the chat and test again.

If it still fails, I’d downgrade to stable for now:

openclaw update --channel stable