From e6d6f62da6c7dd3b08120679d5ac716c89ecb5fc Mon Sep 17 00:00:00 2001 From: techartdev Date: Wed, 4 Feb 2026 16:49:58 +0200 Subject: [PATCH] Update Dockerfile and configuration for OpenClaw Assistant - Added vim and nano to the Dockerfile for improved editing capabilities. - Bumped version to 0.5.33 in config.yaml. - Set OpenClaw directories in run.sh to ensure persistence across updates. --- openclaw_assistant/Dockerfile | 2 ++ openclaw_assistant/config.yaml | 2 +- openclaw_assistant/run.sh | 12 ++++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/openclaw_assistant/Dockerfile b/openclaw_assistant/Dockerfile index 4f1f967..b9c8d59 100644 --- a/openclaw_assistant/Dockerfile +++ b/openclaw_assistant/Dockerfile @@ -22,6 +22,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ gnupg \ build-essential \ sudo \ + vim \ + nano \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* diff --git a/openclaw_assistant/config.yaml b/openclaw_assistant/config.yaml index 36eb0f5..56453d7 100644 --- a/openclaw_assistant/config.yaml +++ b/openclaw_assistant/config.yaml @@ -1,5 +1,5 @@ name: OpenClaw Assistant -version: "0.5.32" +version: "0.5.33" 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 7afee67..b252207 100644 --- a/openclaw_assistant/run.sh +++ b/openclaw_assistant/run.sh @@ -43,6 +43,13 @@ set +x # HA add-ons mount persistent storage at /config (maps to /addon_configs/ on the host). export HOME=/config + +# Explicitly set OpenClaw directories to ensure they persist across add-on updates +# This prevents loss of installed skills, configuration, and workspace state +export OPENCLAW_CONFIG_DIR=/config/.openclaw +export OPENCLAW_WORKSPACE_DIR=/config/clawd +export XDG_CONFIG_HOME=/config + mkdir -p /config/.openclaw /config/clawd /config/keys /config/secrets # Back-compat: some docs/scripts assume /data; point it at /config. @@ -185,6 +192,11 @@ cfg = { "mode": "token", "token": secrets.token_urlsafe(24) } + }, + "agents": { + "defaults": { + "workspace": "/config/clawd" + } } }