diff --git a/openclaw_assistant/config.yaml b/openclaw_assistant/config.yaml index 0dfada3..db65014 100644 --- a/openclaw_assistant/config.yaml +++ b/openclaw_assistant/config.yaml @@ -1,5 +1,5 @@ name: OpenClaw Assistant -version: "0.5.2" +version: "0.5.3" slug: openclaw_assistant description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on. url: https://github.com/techartdev/OpenClawHomeAssistant diff --git a/openclaw_assistant/run.sh b/openclaw_assistant/run.sh index ef5b0f6..03534c6 100644 --- a/openclaw_assistant/run.sh +++ b/openclaw_assistant/run.sh @@ -155,6 +155,10 @@ def env(name): v = os.environ.get(name, '') return v if v != '' else None +# Ensure gateway.mode is set so `openclaw gateway run` can start. +# Safe default for the add-on. +set_path(cfg, ['gateway', 'mode'], 'local') + # gateway bind/port/token bind_ = env('GW_BIND') if bind_: @@ -265,7 +269,8 @@ if ! command -v openclaw >/dev/null 2>&1; then fi echo "Starting OpenClaw Assistant gateway (openclaw)..." -openclaw gateway run & +# Allow starting even if user hasn't completed onboarding / config wizard yet. +openclaw gateway run --allow-unconfigured & GW_PID=$! # Start web terminal (optional)