Unhandled promise rejection: Error: Agent listener invoked outside active run
at Agent.processEvents (file:///opt/homebrew/lib/node_modules/openclaw/node_modules/@mariozechner/pi-agent-core/src/agent.ts:533:10)
at emitUpdate (file:///opt/homebrew/lib/node_modules/openclaw/dist/exec-defaults-uj0McX2k.js:1524:8)FATAL ERROR: v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath
Allocation failed - JavaScript heap out of memory401 Incorrect API key provided: $(securi...null)openclaw message send$(security find-generic-password ...) syntax which doesn't execute in plist context/Users/davidproctor/.openclaw/bin/gateway-wrapper.sh:#!/bin/bash
set -euo pipefail
# Export environment variables explicitly
export ANTHROPIC_API_KEY="${ANTHROPIC_API_KEY:-}"
export PERSONAL_OPENAI_API_KEY="${PERSONAL_OPENAI_API_KEY:-}"
# ... other keys ...
# Launch with increased heap limit
exec /opt/homebrew/opt/node/bin/node --max-old-space-size=8192 \
/opt/homebrew/lib/node_modules/openclaw/dist/index.js gateway --port 18789ProgramArguments
/Users/davidproctor/.openclaw/bin/gateway-wrapper.sh# Disable BrainLift plugin in openclaw.json
# Set plugins.entries.brainlift.enabled: false
# Disable all 128 scheduled jobs
cat ~/.openclaw/cron/jobs.json | jq '.jobs |= map(.enabled = false)' \
/tmp/jobs.json && mv /tmp/jobs.json ~/.openclaw/cron/jobs.jsonKeepAlive setting means when the exec lifecycle bug hits, gateway auto-restarts within seconds.dp-pcs/ogp:OpenClaw_Stability_Fix_Summary.md — Full technical detailsCRASH_RESOLUTION_20260407.md — Quick reference guidecrash_observations.md — Original investigation notesOpenClaw_Hermes_Status_Report_20260407.md — Broader context