From f4a66f9644e1b643862a1634883c6397fecd218c Mon Sep 17 00:00:00 2001 From: Xen Date: Sun, 15 Mar 2026 10:20:48 +0000 Subject: [PATCH] v5.0: fix TRANSCRIPT_DIR default, disable custom post type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Root cause: TRANSCRIPT_DIR was /home/node/.openclaw/agents but the actual sessions live at /root/.openclaw/agents. The daemon started, watched an empty directory, and never detected any sessions. Changes: - config.js: default TRANSCRIPT_DIR -> /root/.openclaw/agents - start-daemon.sh: same fix for fallback default - .env.daemon (local): TRANSCRIPT_DIR fixed, PLUGIN_ENABLED=false The custom_livestatus post type requires the Mattermost plugin webapp React bundle to render. Disabled by default — now uses plain REST API posts with markdown formatting, which render reliably everywhere (desktop, mobile, web). Previous version preserved as git tag v4.1. --- src/config.js | 2 +- start-daemon.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.js b/src/config.js index 2f1c588..0bbecc1 100644 --- a/src/config.js +++ b/src/config.js @@ -46,7 +46,7 @@ function buildConfig() { }, // Transcript directory (OpenClaw agents) - transcriptDir: getEnv('TRANSCRIPT_DIR', '/home/node/.openclaw/agents'), + transcriptDir: getEnv('TRANSCRIPT_DIR', '/root/.openclaw/agents'), // Timing throttleMs: getEnvInt('THROTTLE_MS', 500), diff --git a/start-daemon.sh b/start-daemon.sh index 41eb6d0..0e31aac 100755 --- a/start-daemon.sh +++ b/start-daemon.sh @@ -22,7 +22,7 @@ fi export MM_BOT_TOKEN="${MM_BOT_TOKEN:?MM_BOT_TOKEN is required}" export MM_BASE_URL="${MM_BASE_URL:-https://slack.solio.tech}" export MM_BOT_USER_ID="${MM_BOT_USER_ID:-eqtkymoej7rw7dp8xbh7hywzrr}" -export TRANSCRIPT_DIR="${TRANSCRIPT_DIR:-/home/node/.openclaw/agents}" +export TRANSCRIPT_DIR="${TRANSCRIPT_DIR:-/root/.openclaw/agents}" export LOG_LEVEL="${LOG_LEVEL:-info}" export IDLE_TIMEOUT_S="${IDLE_TIMEOUT_S:-60}" export SESSION_POLL_MS="${SESSION_POLL_MS:-2000}"