#Add agent fails on latest OpenClaw – “unsettled top‑level await”

1 messages · Page 1 of 1 (latest)

low mantle
#

"Environment

  • OS: macOS 24.6.0 (x64)
  • Node: v22.22.2
  • OpenClaw version: latest (installed via npm i -g openclaw@latest on 2026‑05‑08)
  • Workspace: /Users/apple/.openclaw/workspace
  • Agent files:
    ~/.openclaw/agents/AGENT_DUNG_CONTENT/agent.yaml
    ~/.openclaw/agents/AGENT_PHONG/agent.yaml
    ~/.openclaw/agents/AGENT_TAX_REAL_ESTATE/agent.yaml

Steps to reproduce

  1. Install the latest OpenClaw (npm i -g openclaw@latest).
  2. Restart the gateway (openclaw gateway restart).
  3. Create a valid agent.yaml (as above) in ~/.openclaw/agents/<agent>.
  4. Run openclaw agents add ~/.openclaw/agents/AGENT_DUNG_CONTENT.
  5. The command exits with code 13 and prints:
  6. Repeat step 4 for the other two agents – same outcome.

Expected behaviour

  • The agent should be added successfully and appear in openclaw agents list.

Actual behaviour

  • Process exits with code 13 and the “unsettled top‑level await” warning; the agent is not registered.

Additional notes

  • The same error occurs with the previous version (2026.5.5) and with the newest version (latest at time of writing).
  • Configuration files were untouched; the issue appears to be in the core runtime (openclaw.mjs).

Please investigate and release a fix or a temporary workaround. Thank you! "