Skip to content

[Bug]: macOS LaunchAgent generated by 2026.5.22 uses env-wrapper and missing gateway run, causing EX_CONFIG / Permission denied on external home volumes #87199

Description

@joshdaynard

Bug type

Crash (process/app exits or hangs)

Beta release blocker

No

Summary

Steps to reproduce

Run macOS Tahoe 26.5
Use an external USB drive as your $HOME drive (must be configured in system settings -> users & groups (advanced settings)
note that gateway won't start on openclaw 2026.5.22 - generated wrapper script exits with above mentioned permission denied

Expected behavior

Generated wrapper script should not be pooped upon by silly macOS

Actual behavior

aforementioned aromatic behavior leading to inability to run the gateway in the background under launchd

OpenClaw version

2026.5.22

Operating system

macOS Tahoe 26.5 (25F71)

Install method

npm global

Model

openai-codex

Provider / routing chain

openclaw -> gateway

Additional provider/model setup details

No response

Logs, screenshots, and evidence

│  Runtime: stopped (state active)                                                        │
│  Service is loaded but not running (likely exited immediately).     

{"0":"Gateway restart failed after 13s: service stayed stopped and health checks never came up.","_meta":{"runtime":"node","runtimeVersion":"25.8.1","hostname":"unknown","name":"openclaw","date":"2026-05-27T04:52:38.051Z","logLevelId":5,"logLevelName":"ERROR","path":{"fullFilePath":"file:///opt/homebrew/lib/node_modules/openclaw/dist/console-BAPPAj56.js:151:68","fileName":"console-BAPPAj56.js","fileNameWithLine":"console-BAPPAj56.js:151","fileColumn":"68","fileLine":"151","filePath":"/opt/homebrew/lib/node_modules/openclaw/dist/console-BAPPAj56.js","filePathWithLine":"/opt/homebrew/lib/node_modules/openclaw/dist/console-BAPPAj56.js:151","method":"console.error"}},"time":"2026-05-26T21:52:38.052-07:00","hostname":"Joshs-Mac-mini.local","message":"Gateway restart failed after 13s: service stayed stopped and health checks never came up."}

Impact and severity

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.bugSomething isn't workingbug:crashProcess/app exits unexpectedly or hangsclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions